restaurant-mcp
Provides tools to query a SQLite database for restaurant data including orders, inventory, tables, and sales.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@restaurant-mcpWhich menu item is most popular?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
restaurant-mcp
MCP server for Spice Garden, a demo restaurant, with an optional OpenRouter-powered chat client. The assistant queries a live SQLite database for orders, inventory, tables, and sales data.
Prerequisites
Node.js 20.6+ (required for
--env-file)An OpenRouter API key (for the chat client only)
Related MCP server: mcp-chinookdb-server
Quick start
npm install
cp .env.example .env # Windows: copy .env.example .env
# Edit .env — add your OPENROUTER_API_KEY and pick a tool-capable model
npm run seed
npm run chatExample questions:
How many orders today?Which is our most popular dish?What's running low in inventory?How many tables are occupied?
Type exit to quit.
Scripts
Command | Description |
| Create and populate |
| Start the interactive OpenRouter assistant |
| Run the MCP server directly (stdio) |
Environment variables
Copy .env.example to .env:
Variable | Required | Description |
| For chat | Your OpenRouter API key |
| For chat | Model ID — must support tool calling |
| No | Set to |
Choosing a model
The chat client sends tools with every request, so the model must support function/tool calling. Browse compatible models at:
https://openrouter.ai/models?supported_parameters=tools
Free-tier examples that work:
meta-llama/llama-3.3-70b-instruct:freeqwen/qwen3-coder:freeopenai/gpt-oss-20b:free
MCP server tools
Tool | Description |
| Order count, revenue, and pending orders for a date |
| Current stock levels for all items |
| Items below their reorder threshold |
| Best-selling menu items by quantity |
| Table occupancy and capacity |
Use with Cursor (or any MCP client)
Add to your MCP config:
{
"mcpServers": {
"restaurant": {
"command": "node",
"args": ["/absolute/path/to/restaurant-mcp/server.js"]
}
}
}Run npm run seed first. The server exits with a clear message if the database is missing or empty.
Project structure
restaurant-mcp/
├── server.js # MCP server (stdio)
├── client.js # OpenRouter chat client
├── db/
│ ├── seed.js # Database schema + sample data
│ └── restaurant.db # Generated (gitignored)
├── lib/
│ ├── db.js # Database bootstrap check
│ └── paths.js # Shared paths and version
└── .env # Your secrets (gitignored)License
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rick001/restaurant-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server