Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Restaurant Ordering API Server

БесплатноНе проверен

Enables simulating customer orders from a dummy restaurant menu and tracking their status in real-time via RESTful APIs.

GitHubEmbed

Описание

Enables simulating customer orders from a dummy restaurant menu and tracking their status in real-time via RESTful APIs.

README

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/

Method Endpoint Description Sample 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


📩 Contact

Name Details
👨‍💻 Developer Sachin Arora
📧 Email [email protected]
📍 Location Noida, India
📂 GitHub github.com/sachnaror
🌐 Website https://about.me/sachin-arora
📱 Phone +91 9560330483

from github.com/sachnaror/mcp-restaurant-server

Установка Restaurant Ordering API Server

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/sachnaror/mcp-restaurant-server

FAQ

Restaurant Ordering API Server MCP бесплатный?

Да, Restaurant Ordering API Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Restaurant Ordering API Server?

Нет, Restaurant Ordering API Server работает без API-ключей и переменных окружения.

Restaurant Ordering API Server — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Restaurant Ordering API Server в Claude Desktop, Claude Code или Cursor?

Открой Restaurant Ordering API Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Restaurant Ordering API Server with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development