mcpField
🍽
🍽️ MCP Restaurant Ordering API Server

🍽️ MCP Restaurant Ordering API Server

Local
github.com/sachnarorDeveloper Tools0Updated 73w ago

About 🍽️ MCP Restaurant Ordering API Server

MCP Restaurant Ordering API Server is a sample restaurant-ordering API built with Django REST Framework, intended for testing API and MCP integrations. It supports order creation, lookup, updates, and status tracking for a dummy menu.

Key features

  1. 01Create and manage orders
  2. 02Retrieve order details and history
  3. 03Filter recent orders by time range
  4. 04Track success or failure status

Use cases

  1. 01Test restaurant-order API integrations
  2. 02Review orders from a chosen time window
  3. 03Simulate successful and failed orders

MCP support

The project describes its RESTful API as an example following the MCP pattern, but the README does not specify tools exposed to MCP clients or a connection method.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

🍽️ MCP Restaurant Ordering API Server

Python Django License Build

Welcome to the MCP-compatible Restaurant API built with Django + Django REST Framework.

Simulate customer orders from a dummy restaurant menu and track their status in real-time . Ideal for integration with any MCP server.


🧠 Why MCP Server?

We call this an MCP server because it follows the Model-Context-Protocol pattern:

  • Model β†’ The Order model defines the data structure (items, status, time).
  • Context β†’ Recent queries like /recent/?hours=2 give contextual insights (e.g., last 2 hours).
  • Protocol β†’ RESTful APIs define a structured communication protocol.

Think of it like a food court AI assistant:

πŸ” Model = What's on the menu

⏰ Context = What's trending now

πŸ“‘ Protocol = How it communicates with you (API)

This makes it ideal for plugging into larger AI/automation pipelines where structured data, temporal context, and clean APIs matter.

πŸ“ Project Directory

β”œβ”€β”€ mcp_server/
β”‚   β”œβ”€β”€ requirements.txt
β”‚   β”œβ”€β”€ db.sqlite3
β”‚   β”œβ”€β”€ README.md
β”‚   β”œβ”€β”€ .env
β”‚   β”œβ”€β”€ manage.py
β”‚   β”œβ”€β”€ orders/
β”‚   β”‚   β”œβ”€β”€ models.py
β”‚   β”‚   β”œβ”€β”€ serializers.py
β”‚   β”‚   β”œβ”€β”€ apps.py
β”‚   β”‚   β”œβ”€β”€ admin.py
β”‚   β”‚   β”œβ”€β”€ tests.py
β”‚   β”‚   β”œβ”€β”€ urls.py
β”‚   β”‚   └── views.py
β”‚   β”œβ”€β”€ mcp_server/
β”‚   β”‚   β”œβ”€β”€ asgi.py
β”‚   β”‚   β”œβ”€β”€ settings.py
β”‚   β”‚   β”œβ”€β”€ urls.py
β”‚   β”‚   └── wsgi.py

πŸš€ Quickstart

# 1. Clone the repo
git clone https://github.com/sachnaror/restaurant-mcp-server.git
cd restaurant-mcp-server

# 2. Setup environment
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# 3. Add secrets to `.env`
echo "SECRET_KEY=your_django_secret_key" > .env
echo "DEBUG=True" >> .env

# 4. Run DB & server
python manage.py migrate
python manage.py runserver


πŸ§ͺ Example Usage (cURL)


# Create a new order
curl -X POST http://localhost:8000/api/orders/ \
     -H "Content-Type: application/json" \
     -d '{"item_name": "Biryani", "status": "success"}'

# Get recent orders in last 2 hours
curl http://localhost:8000/api/orders/recent/?hours=2


πŸ”Œ API Endpoints

Base URL: http://localhost:8000/api/

MethodEndpointDescriptionSample Payload
POST/api/orders/πŸ“ Place a new order{ "item_name": "Pizza", "status": "success" }
GET/api/orders/πŸ“‹ List all orders–
GET/api/orders/{id}/πŸ” Get single order by ID–
PUT/api/orders/{id}/✏️ Update an order{ "item_name": "Burger", "status": "failed" }
DELETE/api/orders/{id}/πŸ—‘οΈ Delete an order–
GET/api/orders/recent/?hours=2⏱️ Get orders from last 2 hours–

🧠 Tech Stack

  • 🐍 Python 3.11+
  • 🧱 Django 5.x
  • 🌐 Django REST Framework
  • πŸ“ SQLite (Dev DB)
  • πŸ“¦ python-dotenv

🏁 Roadmap (Ideas)

  • πŸ” Token-based user authentication (optional)
  • πŸ“Š Dashboard for order analytics
  • πŸ“₯ Webhook or async order processing simulation
  • 🧠 OpenAI GPT integration for dynamic menu or chat

πŸ“Έ Screenshots

README image README image

πŸ“© Contact

NameDetails
πŸ‘¨β€πŸ’» DeveloperSachin Arora
πŸ“§ Email[email protected]
πŸ“ LocationNoida, India
πŸ“‚ GitHubgithub.com/sachnaror
🌐 Websitehttps://about.me/sachin-arora
πŸ“± Phone+91 9560330483

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.