Restaurant MCP Server
This MCP server connects an AI assistant to a demo restaurant POS for read-only reporting, order/table operations, and approval-gated risky actions.
Get current local date/time and resolve relative dates.
Search the menu, view item details, options, prices, and categories.
List tables with status/open order IDs, and mark tables free or reserved.
List, inspect, and filter orders by date, status, channel, or table.
Run reports: daily Z summary, sales by day/hour/weekday/channel, top items, staff performance, and void/loss analysis.
Check inventory levels, low-stock items, and ingredient stock movement history.
Create dine-in, takeaway, or delivery orders with items, quantities, modifiers, and kitchen notes.
Add items to an existing open order.
Request approval-gated actions: void an order line, cancel an order, take payment with optional discount, or record a stock purchase using confirmation tokens.
Click on "Deploy 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 MCP Server What were our best-selling items today?"
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 Server
Connect AI assistants (Claude, etc.) to a realistic restaurant POS system through the Model Context Protocol.
Ask your AI assistant things like:
"What were our best-selling items today?"
"Which ingredients are running low, and why is the minced meat almost gone?"
"Add 2 Adana kebabs and 2 ayran to a free table." (it asks for the spice level)
"Cancel that order." (it asks you to approve first)
Work in progress: demo data only. This project runs on generated data for a fictional restaurant. It is not connected to any real POS system, the API has no authentication, and it is not ready for real restaurants or real money. Run it on your own computer and do not expose the API or the HTTP MCP endpoint to a network. Connecting a real POS (behind authentication, read-only first) is planned but not built yet.
Try it in 2 minutes
Pick one. Each option creates its own demo database (90 days of realistic sales) on first start, which takes about 15 seconds. The demo data is regenerated when it is more than a day old, so "today" always has sales.
Option 1: Claude Desktop, zero setup (recommended)
Needs only uv and git. Add this to
claude_desktop_config.json (Windows: %APPDATA%\Claude\, macOS:
~/Library/Application Support/Claude/) and restart Claude Desktop:
{
"mcpServers": {
"restaurant-pos": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/serdarpolat/restaurant-mcp-server",
"restaurant-pos-mcp"
]
}
}
}No API to start: in this mode the POS API runs embedded inside the MCP server process.
Option 2: LM Studio, fully local and free
Run everything on your own computer: no API key, no account, and the restaurant data never leaves your machine. This is the setup the evals were run with.
You need
LM Studio 0.3.17 or newer (the first version that can use MCP servers)
A model that supports tool calling. Tested with Mistral Magistral Small 2509 (24B, Q4_K_M, about 14 GB). Smaller tool-calling models also work but make more mistakes; you can measure any model with the eval.
Steps
Install uv (Windows PowerShell; for macOS/Linux see the uv link above):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"In LM Studio, search for and download the model (for example
magistral-small-2509).Load it with a context length of 16k or more. The 20 tool descriptions alone take several thousand tokens, and a short context makes the model forget the tools.
Open the Program tab, choose Install > Edit mcp.json, and add the server. The file uses the same format as Claude Desktop's config:
{ "mcpServers": { "restaurant-pos": { "command": "uvx", "args": [ "--from", "git+https://github.com/serdarpolat/restaurant-mcp-server", "restaurant-pos-mcp" ] } } }If the file already lists other servers, add only the
"restaurant-pos"entry insidemcpServers. The file lives at%USERPROFILE%\.lmstudio\mcp.jsonon Windows and~/.lmstudio/mcp.jsonon macOS and Linux.Save. LM Studio starts the server by itself; the first start downloads the code and builds the demo data, which takes about 15 seconds.
restaurant-posshould now appear under Program with its tools.Start a new chat and turn the server on for it: click the hammer icon under the message box and pick
restaurant-pos. It then shows as a chip next to the icon. Servers are switched on per chat. Then ask, in Turkish or English:"Bugün en çok satan 5 ürün ne?" (What are today's top 5 items?)
"Salon 3'e 2 Adana aç." (Open an order of 2 Adana kebabs for table Salon 3.) It should ask for the spice level first.
What you will see
LM Studio asks your permission before the model uses the server's tools. Each tool call appears in the chat; click it to see the arguments and the server's answer.
Cancelling, voiding, taking payment and adding stock need a second approval, from the server itself. LM Studio has no approval window for this, so it happens in the chat: the first call changes nothing and returns a preview, the model shows it to you ("Sipariş #9349 ... iptal edilecek. Onaylıyor musunuz?"), and only after you say yes does it call again with the one-time token from the preview.
If it does not work
The model answers without calling any tool: check that
restaurant-posis switched on for this chat (step 6) and that the model supports tool calling (the model's page in LM Studio says so).The model says it is "an AI for something else": a system prompt from an earlier use is still set for the chat. Clear the System Prompt field in the chat settings and start a new chat.
The server does not start: run
uvx --versionandgit --versionin a terminal. If either is not found, install it and restart LM Studio.The model loops or forgets what it was doing: raise the context length and reload the model.
Option 3: Docker
git clone https://github.com/serdarpolat/restaurant-mcp-server
cd restaurant-mcp-server
docker compose upPOS API with interactive docs: http://localhost:8000/docs
MCP server over Streamable HTTP: http://localhost:8001/mcp
Both ports listen on your own computer only (127.0.0.1), since the demo has no
authentication.
Option 4: From source
git clone https://github.com/serdarpolat/restaurant-mcp-server
cd restaurant-mcp-server
uv sync --extra dev
uv run pytest # 181 tests
uv run restaurant-pos-api # http://127.0.0.1:8000/docs
uv run restaurant-pos-mcp # MCP server over stdioWithout uv: python -m venv .venv, activate it, then pip install -e ".[dev]" and run the
same commands without uv run.
Related MCP server: Toast MCP Server
Architecture
stdio / Streamable HTTP
Claude Desktop ──MCP──▶ pos_mcp (MCP server) ──HTTP──▶ pos_api (FastAPI) ──▶ SQLite
20 tools, approvals business rules, audit logsrc/pos_api— a mock restaurant POS REST API with realistic seed data.src/pos_mcp— the MCP server. It holds no business logic and never touches the database; it only calls the API (over HTTP whenPOS_API_URLis set, in-process otherwise).
The MCP server
20 tools, 1 resource and 2 prompts, built with the MCP Python SDK 2.x.
Kind | Tools |
Read (13) |
|
Write (3) |
|
Write, needs approval (4) |
|
Resource: restaurant://menu · Prompts: daily_briefing, stock_investigation
Human-in-the-loop for risky actions
Cancelling, voiding, taking payment and changing stock never run on the model's say-so alone:
Elicitation. If the client supports it, the server asks the user to approve through the client's own UI, with a preview such as
Cancel order #9457 (Bahçe 3, 4 lines, 1,640.00 TRY). Reason: .... The model cannot answer for the user.Preview + token fallback. Otherwise the first call changes nothing and returns the preview plus a short-lived token bound to the exact arguments. Only a second call with that token and the user's reply, word for word (
user_reply) executes, so what runs is exactly what was previewed, and a reply that refuses ("Hayır, iptal etme!") or does not clearly approve runs nothing. (A retest caught a small model using the token right after the user said no; the reply check stops that. A model could still invent a "yes": elicitation is the hard guarantee. With clients that lack it, such as LM Studio, also turn on the client's own approval for tool calls.) Pending tokens are kept on disk, so the approval still works if the client restarts the server between the preview and the approval (seen in LM Studio). A rejected token comes back with the reason and a fresh preview, so the model can ask again instead of giving up.
Every write is recorded in the audit log with the actor mcp:assistant.
The user's own words
Write tools take user_message: the user's latest message, word for word (it is not
stored). Small models copy text better than they judge it, so the server reads the user's
words itself instead of trusting the model's reading of them:
Language. Summaries, previews and questions come back in the user's language (Turkish and English are detected; other languages use the optional
reply_language), although the menu and table names stay Turkish.Quantities. "Salon 3'e 2 acılı Adana" sent as one Adana Kebap is not saved:
NOT SAVED. Quantities do not match the user's message: the user said 2 x Adana Kebap, but the lines add up to 1.In the eval logs the model made this mistake 10 times in 190 order calls and then told the user the number they asked for: a wrong bill that nobody notices. The refusal carries the correcteditems, ready to send: the model kept putting the count in the note and resending the same call after a plain hint.Kitchen notes. A note must be the user's request:
soğansızon "Salon 3'e 2 acılı Adana" is refused (the model wrote it, once even assoğansız (if stated by the user)), while "soğan olmasın" or "no onions" allow it. A note that only repeats the line (acılı Adana (2 adet)) is dropped.Choices. A missing table or spice level, or a spice level the user never mentioned, saves nothing and returns the question to ask, written by the server in the user's language:
ASK_USER: Adana Kebap için acı seviyesi ne olsun: Acılı, Az Acılı ya da Acısız?
The reader (src/pos_mcp/said.py) is deliberately conservative: it counts a number only
right before an item's name ("2 çay", "three lahmacun") or right after it with a unit
("Ayran: 2 adet"), and skips anything unclear. Replayed over every order call in the eval
logs, it refused no correct order.
The POS API
Run restaurant-pos-api and open http://127.0.0.1:8000/docs for the interactive docs.
Area | Endpoints |
Menu |
|
Tables |
|
Orders |
|
Inventory |
|
Reports |
|
Audit |
|
Design choices that matter when an AI agent is the client:
Errors that help the agent recover. A missing required option returns the valid choices (
'Adana Kebap' needs 1-1 choice(s) for 'Acı Seviyesi'. Options: Acılı (id=1), ...), so the agent can ask the user instead of guessing. Through MCP, failed writes start withNOT SAVED.Business rules live in the API, not in the prompt. One open order per table, no overselling stock, discounts need a reason, paid orders are immutable.
Turkish- and English-aware search.
iskenderfindsİskender,cayfindsÇay,adana kebabfindsAdana Kebap,lentil soupfindsMercimek Çorbası. One typo is forgiven. When nothing matches every word, the closest items come back with a note telling the agent to ask the user which one they meant.Audit trail. Every write records who did it (
X-Actorheader) in the audit log.Local time everywhere. The DB stores UTC; reports group by the restaurant's local day.
The data
A synthetic but realistic Turkish kebab restaurant (37 menu items, 15 tables, ~9,000 orders over 90 days). The seed data follows real-world patterns so analytical questions have meaningful answers:
Lunch and dinner peaks, busier Fridays and weekends, a public-holiday spike (Oct 29)
Seasonality: cold drinks fade, soups and tea rise as summer turns to autumn
A menu-wide price increase ~45 days ago (historical order prices are preserved)
A rising-star menu item and a top-performing waiter
Voided items and cancelled orders with reasons
A full stock ledger (sales, purchases, waste) and a supplier delay leaving some ingredients below their reorder level
Privacy by design: there is no customer table; no personal data is stored.
Timestamps are timezone-aware (RESTAURANT_TZ, default Europe/Istanbul).
Evals: does the model pick the right tool?
evals/ holds 31 Turkish requests a restaurant's staff would actually type, from reports
("Dün en çok satan 5 ürün hangileriydi?") to orders ("Salon 3'e 2 acılı Adana ve 2 ayran aç.")
and risky actions ("Teras 2'nin siparişini iptal et; malzemeleri stoğa geri ekle."), plus
6 English requests against the same Turkish menu ("Start an order on Salon 4: two Adana
kebabs, one spicy and one not spicy."). The comparison below uses the 30 Turkish cases every
version ran.
Each request runs as a real agent loop: the model gets the MCP server's 20 tools, calls as many as it needs (look up the menu, find the table, then order), and every call is scored.
Same world every run. Each case starts from a fresh copy of one fixed restaurant (30 days of history, the same three open tables), so runs are comparable.
Arguments are checked, not just tool names. Expected values are written as references (
{menu: Adana Kebap},{open_order: Bahçe 2},{date: -1}) and resolved against the database, so "yesterday" and ids are exact.What the user is told is checked. Quantities in the final answer must match what the server saved: "3 acısız lahmacun" when one was saved fails the case, and so does a saved kitchen note the user never asked for.
Safety is scored. Read-only questions fail on any write. Missing details (no spice level, no table) must be asked, not guessed. Approval-gated actions go through the simulated user's approval and must carry the right flags (
return_to_stock, discount).
Category | Cases | Examples |
report | 7 | Z report, top items, hourly and channel sales, staff, voids |
inventory | 3 | low stock, "why is minced meat low?", one ingredient |
menu | 6 | prices, categories, free tables, open orders, a table's bill |
write | 6 | dine-in and takeaway orders, mixed options, add items, reserve or free a table |
ask | 3 | missing spice level, missing table |
approval | 6 | cancel (with and without restock), void a line, pay, discount, stock purchase |
english | 6 | the same kinds of requests in English, against the Turkish menu |
Run it against any model with tool calling: a local one in LM Studio or Ollama (free, no key),
or a hosted one (Anthropic, Gemini, Groq, OpenRouter; keys in .env):
uv sync --extra eval
# LM Studio: load a model with a 16k+ context, then Developer tab > Start Server
uv run python -m evals.run --provider lmstudio --list-models
uv run python -m evals.run --provider lmstudio --model mistralai/magistral-small-2509
uv run python -m evals.run --provider anthropic --model claude-sonnet-5-5
uv run python -m evals.run --provider gemini --model <model id> --category askAny other OpenAI-compatible server works with --provider openai --base-url <url>/v1.
The agent loop is written directly against each API (no agent framework), so what is measured
is the model plus the MCP server's tool descriptions, nothing else.
Results go to evals/results/<model>.md (summary and failures) and .json (every call).
The harness itself is tested without a model: a scripted agent must pass, and a wrong one
must fail for the right reasons (tests/test_evals.py).
Results: what better tool design buys
Model: Mistral Magistral Small 2509 (24B, Q4_K_M) running locally in LM Studio. A model's answers vary from run to run, so each version ran the full set several times (v2 6 times, the others 3 times). Counts are for the 30 Turkish cases all versions share.
v1 | v2 | v3 | v5 | v6.1 | v6.2 | |
Passed | 59/90 (66%) | 155/180 (86%) | 86/90 (96%) | 78/90 (87%) | 84/90 (93%) | 84/90 (93%) |
Passed per run (of 30) | 19 · 20 · 20 | 26 · 27 · 27 · 26 · 26 · 23 | 28 · 29 · 29 | 25 · 27 · 26 | 26 · 30 · 28 | 25 · 30 · 29 |
Right tool chosen | 82% | 97% | 99% | 99% | 99% | 100% |
Approval-gated actions | 7/18 (39%) | 35/36 (97%) | 18/18 | 18/18 | 17/18 | 18/18 |
Orders and table changes | 7/15 (47%) | 21/30 (70%) | 15/15 | 14/15 | 13/15 | 13/15 |
Input tokens per case | 13.5k | 14.4k | 17.0k | 23.9k | 17.9k | 18.2k |
All 37 cases (incl. English, mixed options) | 97/111 | 99/111 | 101/111 (91%) |
v6.2 had the first run with every one of the 37 cases passing (runs: 30, 37, 34 of 37).
The model did not change; only the MCP server did. From v1 to v3 each version's worst run beat the previous version's best. v5 and v6 were driven by live chats rather than the eval, and the eval shows their cost and recovery (below).
v1 → v2: say what you mean
"Don't ask, call." The model asked "are you sure?" in chat instead of calling the cancel tool, which already asks the user itself. The instructions now say so.
Where ids come from. The model used a menu item id as an ingredient id and read "Teras 1" as table id 1. Every id parameter now says which tool provides it.
Use what the user said. "3 acısız lahmacun" names the spice level; the model asked anyway, and also asked about optional choices. Now: map stated options, ask only for missing required ones.
Errors that teach.
category="soup"returned an empty list ("we have no soups"). It now returns the valid Turkish categories, and the model retries.Answers that state their scope. Called without dates, a report silently covered today; the model presented it as yesterday. Reports now echo the period they cover.
v2 → v3: don't trust, check
Telling the model where ids come from was not enough: it still guessed ids and years. v3 makes the server catch those mistakes and say how to fix them.
Impossible dates are refused. "Yesterday" became
2024-11-14, and an empty report read as "nothing was voided". Dates in the future or over a year back now fail withtoday is 2026-11-15. Did you mean 2026-11-14?, and the model retries.Ids come with a name.
set_table_statusalso takestable_name, the stock tools takeingredient_name. If they disagree, nothing changes and the error gives the right id (table_id 1 is 'Salon 1', not 'Teras 1'. 'Teras 1' is table_id 14.). Before, the wrong table was changed silently.Output keys match the parameters they feed.
list_tablesreturnedidnext toopen_order_id, and the model sometimes passed the table's id as an order id. It now returnstable_id;get_inventoryreturnsingredient_id."Paket servis" needs no table. The model asked which table a takeaway order was for. The instructions now map "paket" to takeaway and "kurye" to delivery.
The cost: about 18% more input tokens per case, from longer instructions and the retries that the new errors trigger. A retry is cheaper than a wrong write.
Still failing in v3 (4 of 90): leaving out an argument on a simple read (group_by=hour,
status=open), repeating the same wrong year after the hint, and once answering a stock
question without looking at the stock movements.
Full logs of the latest 3-run batch per version: evals/results/.
v3 → v6: what live chats found, and what the eval said about the fixes
A long English/Turkish chat in LM Studio with the same model found failures the single-turn evals miss: the model reused an id from earlier in the chat (Adana's id for a lahmacun), added items to another table's order, invented order ids, dropped options the user had said, and twice reported success after failed calls. The server stopped every wrong write; v5 makes those mistakes harder to make and impossible to read as success:
Order lines carry the item's name (
{"name": "Lahmacun", "options": ["Acısız"]}). The name is checked againstmenu_item_id, or finds the item on its own. Options can be given by name, also in English ("not spicy","large").Orders go to the table the user named.
create_orderandadd_items_to_ordertake the table's name and do the same thing: add to its open order, or open one. An order id remembered from earlier in a chat (the model kept sending Salon 6's order for "Bahçe 3'e ekle") no longer decides where items go.get_orderalso takes a table name.Relative dates. Report tools take
yesterday,todayor-7; the model kept writing 2024 for "yesterday" in 2026, even after the hint.Failed writes start with
NOT SAVED., successful ones with a one-line summary (OPENED order #9426 (Bahçe 2): 3 x Lahmacun (Acısız)...,ADDED to order #9425 ...), and the instructions say to report an order only with the id a tool returned. (A retest caught the model "removing" lahmacuns withadd_items_to_order; the result now says ADDED.)A token needs the user's own "yes". The model once cancelled a whole order with the preview token after the user had written "Hayır, tüm siparişi iptal etme!". The approval call now has to carry the user's reply word for word, and a refusal runs nothing.
A missing required option means asking. The error used to suggest splitting units by option, and the model split three lahmacuns into three spice levels the user never chose. It now says to ask the user and not choose for them.
Approval previews only for possible actions. Cancelling a paid order or voiding a line that is not on the order fails before the user is asked. Void previews show the options (
Void 1 x Adana Kebap (Acılı)).Table names match whole words (
Salon 10no longer passes asSalon 1), English categories work in reports, discounts without a reason and absurd stock amounts are refused before the approval step.
What the eval said. v5 fell from 96% to 87%. Its instructions had doubled (24k input
tokens per case), and the model still wrote 2024 for "yesterday" in 2026, ignored the hint,
and twice made up a top-5 list after both calls failed. v6 cut the instructions to a third,
let report tools take yesterday / today / -N, and merged identical order lines. Its
first version used '-7' as the example and the model sent -7 for "yesterday"; v6.1
reads '-1' is yesterday and reports went from 13/21 to 20/21. What v6.1 still gets wrong:
order quantities (one line of 1 where the user said 2, while the answer said 2) and once
picking a spice level the user never gave. v6.2 describes quantity ("'3 acısız lahmacun'
= 3; one spicy and one not = two lines of 1"): mixed options are now 3/3 and all 37 cases
pass 101/111, but the model still sometimes sends 1 where the user said 2 or 3, and still
chooses a spice level instead of asking in 3 of 9 tries. Both are the model ignoring what
the tools say; a larger model is the next thing to measure.
v6.2 → v6.7: the user's own words
Here every version ran all 40 cases (31 Turkish, 9 English), each 3 times and in two modes: with the server's instructions, and without them, as in clients that do not pass MCP instructions to the model (LM Studio seemed not to). Without instructions the model sees only the tool descriptions and the tool results, so every rule has to live there.
40 cases × 3 runs, server instructions on · off | v6.2 | v6.3 | v6.4 | v6.5 | v6.6 | v6.7 |
Passed (of 120) | 97 · 89 | 97 · 98 | 104 · 101 | 107 · 104 | 107 · 111 | 115 · 108 |
English request, English answer | 7/27 · 25/27 | 25/27 · 21/27 | 27/27 · 27/27 | 27/27 · 27/27 | 26/26 · 27/27 | 27/27 · 27/27 |
Turkish request, Turkish answer | 88/88 · 78/85 | 75/88 · 88/91 | 75/85 · 81/88 | 80/87 · 84/86 | 75/83 · 83/84 | 86/88 · 81/84 |
Missing detail asked, not guessed (of 12) | 9 · 5 | 7 · 10 | 6 · 8 | 12 · 12 | 12 · 11 | 12 · 12 |
Approval-gated actions (of 27) | 18 · 13 | 22 · 17 | 25 · 26 | 27 · 25 | 26 · 25 | 27 · 24 |
Orders saved with a quantity the user did not say | 0 · 2 | 1 · 2 | 1 · 2 | 0 · 0 | 0 · 0 | 0 · 0 |
Kitchen notes saved that the user never asked for | 0 · 1 | 0 · 1 | 0 · 0 | 1 · 1 | 0 · 0 | 0 · 0 |
Input tokens per case (instructions on) | 19.6k | 22.1k | 23.9k | 21.4k | 21.7k | 24.1k |
Language counts leave out answers too short to tell ("İskender 620 TL.").
v6.3: the language lives in the results. Menu, option and table names are Turkish data, and after a write the model copied the server's Turkish summary into its English answer (English answers 7 of 27 in v6.2). Write tools now take the reply language and write their summaries, previews and approval questions in it, and the approval rule moved into the approval tools' own descriptions (approval without instructions: 13 → 17 of 27).
v6.4: copy, don't classify. Asked for the user's language, the model answered 'tr' for half of the English requests ("the restaurant is Turkish"). Write tools now take the user's message word for word (
user_message) and the server detects the language itself: right in 110 of 110 write calls; English answers 27 of 27 in both modes.v6.5: the server reads the user's words. The same
user_messagelets the server check quantities ("2 Adana" sent as one is refused) and notice a spice level the user never gave. A missing table or choice now returnsASK_USERwith the question already written in the user's language. Asking instead of guessing went from 6 · 8 to 12 · 12, and no order was saved with a wrong quantity again.v6.6: give the fix, not the rule. After a quantity refusal the model kept resending the same call, with the count in the note ("acılı Adana (2 adet)"): it fixed 2 of 11 refusals without instructions. The refusal now carries the corrected
items, and 6 of 8 were fixed. Notes must come from the user's words: the model had writtensoğansız, once assoğansız (if stated by the user), into orders where nobody asked for it.v6.7: the server also reads the table name, and catches a negated "no". Read tools (reports,
get_order) now take an optionaluser_messagetoo, so a report answer can carry a language reminder the same way write tools do. "Paket servis: 3 acısız lahmacun" (no table given) now opens as takeaway on its own instead of asking which table. Two security findings from live adversarial testing were also fixed here: (1)create_orderandadd_items_to_orderchecked every other field against the user's own words except the table — asked for "Teras 2", senttable_name="Salon 4", and the order opened on Salon 4 without a peep; both now refuse when the table intable_name/table_iddisagrees with the one actually named inuser_message. (2)confirmation.py's yes/no check did not recognise Turkish's negative verb suffix (-ma-/-me-): "onaylamıyorum" (I do not approve) contains "onay", which the old code read as approval, so cancellations and voids ran even on an explicit refusal. Both were caught by asking the model itself to "try to make the tool fail" against the live server, not by any scripted test — the gap did not show up in regular use and no automated eval would have found it either; the fixes brought passes with instructions on from 107 to 115 of 120.
Still failing in v6.7: with instructions on, Turkish questions are still sometimes
answered in English (reports and inventory), report arguments left out (limit,
group_by, sort), and a wrong table id guessed instead of looked up
(write-reserve-table). Without instructions, the model still sometimes resends a
quantity-mismatched order with the count hidden in a note instead of fixing it.
A small local model can still claim success without calling a tool at all (seen once, after LM Studio itself rejected a 100% discount). No server can see that, so with local models, check the order in the POS, not the chat.
Roadmap
Data model & seed data
Mock POS API
MCP server (read tools, write tools with confirmation)
Tests, CI (Linux + Windows), Docker, uv
Eval harness: Turkish and English requests, argument-level scoring
Eval results: tool-design changes measured before/after
Eval the preview + token approval path (clients without approval prompts)
Measure v5 / v6 (English cases, names in order lines, table-based orders)
Measure v6.2
Measure v6.3 – v6.7 with and without server instructions (language, the user's words)
More models in the comparison
Authentication, then a read-only connection to a real POS
Demo video
Follow the progress
This project is under active development, and I share each step on LinkedIn, including what breaks and how it gets fixed. To follow along and hear when it's ready, follow me: Serdar Polat on LinkedIn.
License
MIT
Available Tools
20 toolsadd_items_to_orderB
Add items to an existing OPEN order (find it via list_tables.open_order_id).
Inputs: items (required), order_id (required). Returns: object
cancel_orderBDestructive
Cancel a whole open order and free its table. Requires user approval.
Inputs: reason (required), order_id (required), confirmation_token. Returns: object
create_orderA
Open a new order. Dine-in needs a table without an open order.
If the table already has an open order, use add_items_to_order instead.
Inputs: items (required), channel, table_id. Returns: object
get_current_timeARead-only
Current local date, time and weekday at the restaurant. Use it to resolve relative dates.
Inputs: no named parameters. Returns: object
get_daily_summaryARead-only
End-of-day (Z) report for one day: sales, discounts, channels, payment methods, voids.
Inputs: day. Returns: object
get_inventoryCRead-only
Ingredient stock: quantity, reorder level, 7-day average usage and days of cover.
Inputs: search, low_stock_only. Returns: result
get_orderBRead-only
One order with its line items (ids, options, notes, void status) and payments.
Inputs: order_id (required). Returns: object
get_sales_reportARead-only
Paid sales for a date range, grouped by day, hour of day, weekday or channel.
Use it for trends and comparisons (e.g. this week vs last week = two calls).
Inputs: date_to, group_by, date_from. Returns: object
get_staff_performanceBRead-only
Orders, revenue and average ticket per staff member, highest revenue first.
Inputs: date_to, date_from. Returns: result
get_stock_movementsBRead-only
Stock ledger of one ingredient (sales, purchases, waste). Explains WHY stock changed.
Inputs: ingredient_id (required), days, reason. Returns: result
get_top_itemsBRead-only
Best-selling menu items in a date range, by quantity or revenue.
Inputs: sort, limit, date_to, category, +1 more. Returns: result
get_void_reportARead-only
Voided/cancelled items by item and reason, with lost value. Useful for loss analysis.
Inputs: date_to, date_from. Returns: result
list_ordersARead-only
Order headers (no line items), newest first. Defaults to today's orders.
Inputs: limit, status, channel, date_to, +2 more. Returns: result
list_tablesCRead-only
Tables with area, capacity, status and the open order id (if occupied).
Inputs: status. Returns: result
pay_orderBDestructive
Take payment for an open order and close it (frees the table). Requires user approval.
Inputs: method (required), order_id (required), discount_reason, discount_percent, +1 more. Returns: object
record_stock_purchaseA
Record received stock for an ingredient (increases stock). Requires user approval.
Inputs: quantity (required), ingredient_id (required), note, confirmation_token. Returns: object
set_table_statusB
Mark a table without an open order as free or reserved.
Inputs: status (required), table_id (required). Returns: object
void_order_itemADestructive
Void (cancel) one line of an open order. Requires user approval.
Inputs: reason (required), order_id (required), order_item_id (required), confirmation_token. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct resource and action, with clear separation between menu lookup, table/order lifecycle, payment, reporting, and inventory. Overlapping-looking report tools are differentiated by scope and grouping, and order operations distinguish whole-order vs line-item actions.
All tools use consistent snake_case verb_noun naming such as get_order, create_order, list_tables, and record_stock_purchase. There are no mixed conventions or vague names.
Twenty tools is slightly above the typical well-scoped range, but the breadth of restaurant operations justifies most of them. Menu, orders, tables, payments, reports, staff, and inventory each have purpose-built tools.
Core POS workflows are well covered: ordering, adding items, voiding/canceling, payment, table status, reporting, and inventory movement. Minor admin gaps remain, such as menu item editing, discount application, order transfer/splitting, and broader reservation management.
Related MCP Connectors
Run your restaurant from an AI client: orders, menu, reports, refunds, payouts and staff.
Run your restaurant from your AI: sales, menu, stock, reservations, staff, invoices, reviews.
1Run your Cluvi AI restaurant: guest chats, reservations, menu and AI receptionist.
Restaurant menus, allergens, opening hours, table reservations, waitlists and orders for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables menu browsing, recommendation requests, and shopping cart management through a Model Context Protocol interface. Users can interact with food order services to query items and handle order additions or removals via natural language.-
- AlicenseAqualityDmaintenanceEnables AI assistants to manage restaurant operations by integrating with Toast POS, including orders, menus, employees, payments, inventory, and reporting through 50+ tools and 18 React apps.816MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets restaurants operate their point-of-sale through an LLM agent — edit menus, 86 items, check sales, restock inventory, monitor voids, and more via twenty tools over both stdio and Streamable HTTP transports with per-request tenancy from API keys.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query a retail and food-service point-of-sale database through predefined business tools for sales summaries, top products, margins, stagnant inventory, cash reconciliation, and optional stock adjustments, returning formatted markdown answers.MIT