avasfood-mcp
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., "@avasfood-mcp show the menu for my default delivery address"
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.
AVAS Food MCP — client-agnostic food ordering
A standard Python MCP server for AVAS Food: browse menus, build and quote carts, complete bank-transfer ordering with explicit confirmation, track deliveries, and analyze delivery spending.
The server uses standard MCP over stdio and has no Hermes runtime dependency. It works with Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, OpenCode, VS Code/Copilot, Windsurf, Hermes Agent, and other MCP-compatible clients.
Quick start
git clone https://github.com/Rayyan011/avasfood-mcp.git
cd avasfood-mcp
./scripts/setup.shThen choose a client configuration from docs/CLIENTS.md. Configuration templates live in configs/.
Related MCP server: agentbank-merchant-mcp
Remotion demo
The repository includes a 36-second, 1080p Remotion product demo under demo/.
cd demo
npm install
npm run renderThe rendered MP4 is written to demo/out/avasfood-mcp-demo.mp4.
Tools
Existing tools:
get_client_metadatalist_restaurantsget_restaurantsearch_menu_itemsaccount_status,start_phone_login,verify_phone_loginlist_delivery_addresses
Ordering tools:
get_menu— authenticated merchant menu with zone, coordinates, and address contextadd_to_cart,update_cart_item,remove_cart_item,view_cart,clear_cart— local-only, single-merchant canonicalCartRowstoragequote_cart— callsCalculationSalesOrderand parses totals, payment modes, and bank detailsstage_receipt— validates/copies a PNG or JPEG locally; does not uploadupload_receipt— uploads 500,000-character base64 chunks only after the exact confirmation phraseprepare_order— freezes the current cart/quote into an immutable, redacted preview and one-time tokensubmit_order— requires that exact token, validates, then callsSaveSalesOrderoncetrack_deliveries— live active-order, rider, and delivery statedelivery_spending_report— private spending totals by fees, restaurant, and inferred food type
Portable agent guidance
AGENTS.md— vendor-neutral behavior and safety rulesCLAUDE.md— Claude Code entry pointGEMINI.md— Gemini CLI entry pointMCP prompts:
food_assistantanddelivery_budget_analystOptional skills under
skills/for clients with compatible skill loaders
Hermes users may additionally install the optional skill packages:
mkdir -p ~/.hermes/skills/avasfood
cp -R skills/avas-food-assistant ~/.hermes/skills/avasfood/
cp -R skills/food-delivery-budgeting ~/.hermes/skills/avasfood/The tools do not require those skills; they improve conversational orchestration only.
Safety model
Local state is stored under
~/.avasfood-mcpwith private directory/file permissions.Carts accept only one merchant at a time.
Bank transfer is payment mode
4; a receipt GUID is required before preparation.Receipt upload requires exactly:
I CONFIRM UPLOAD OF THIS BANK TRANSFER RECEIPT.Preparing does not submit. Submission requires the exact generated token and an unchanged cart.
SaveSalesOrderis never automatically retried. Before the call, the order is marked in-flight; transport failures are persisted as ambiguous and users must inspect order history.Tool results redact addresses/names and expose only the last four phone digits. Secrets are not stored in this repository.
Spending history is written privately to
~/.avasfood-mcp/spending-history.jsononly after a successful MCP-submitted order. It does not claim to include older AVAS orders.
Typical flow
Link the account (
start_phone_login,verify_phone_login) if needed.Select an address/zone and call
get_menu.Build and inspect the local cart.
Call
quote_cart.If using bank transfer (
4), callstage_receipt, inspect the staged metadata, then separately callupload_receiptwith the exact phrase.Call
prepare_orderand carefully inspect its preview.Separately call
submit_orderwith the returned token.
Run
cd /Users/rayyu/personal/avasfood-mcp
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/python -m avasfood_mcp.serverOptional environment variables:
AVAS_ACCESS_TOKEN— approved backend token, if requiredAVAS_API_BASE— owner-approved API overrideAVAS_ENVIRONMENT— defaults toLIVEAVAS_STATE_DIR— local private state override
Tests
Tests mock _post; they do not call AVAS production calculation or write endpoints.
.venv/bin/python -m unittest discover -s tests -p 'test_*.py' -vExample stdio configuration
{
"mcpServers": {
"avasfood": {
"command": "/absolute/path/avasfood-mcp/.venv/bin/python",
"args": ["-m", "avasfood_mcp.server"]
}
}
}See docs/CLIENTS.md for client-specific locations and commands.
Available Tools
21 toolsaccount_statusA
Show whether this MCP is linked to an AVAS customer account.
Inputs: no named parameters. Returns: object
add_to_cartC
Add a canonical CartRow locally; a cart may contain only one merchant.
Inputs: code (required), tax_id (required), product_id (required), unit_price (required), +11 more. Returns: object
clear_cartA
Clear local cart and checkout artifacts; no network request is made.
Inputs: no named parameters. Returns: object
delivery_spending_reportC
Summarize recorded AVAS spending by restaurant, food type, and delivery fees.
Inputs: days. Returns: object
get_client_metadataA
Return verified AVAS client/API metadata and MCP safety mode.
Inputs: no named parameters. Returns: object
get_restaurantB
Get public details for one AVAS restaurant by merchant ID.
Inputs: merchant_id (required), zone_id. Returns: object
list_delivery_addressesA
List saved delivery addresses for the linked AVAS account.
Inputs: no named parameters. Returns: result
list_restaurantsC
List AVAS restaurants in a Maldives delivery zone; optionally filter by name.
Inputs: limit, query, zone_id, open_only. Returns: result
prepare_orderC
Freeze the current quote and order details into an immutable confirmation preview.
Inputs: phone (required), dine_type (required), payment_mode (required), customer_name (required), +6 more. Returns: object
quote_cartB
Calculate an authenticated cart quote. This calls CalculationSalesOrder but never saves.
Inputs: zone_id, dine_type, address_id, coordinates, +1 more. Returns: object
remove_cart_itemC
Remove one local cart row.
Inputs: line_id (required). Returns: object
stage_receiptA
Validate and privately copy a PNG/JPEG receipt locally. Does not upload.
Inputs: image_path (required). Returns: object
start_phone_loginC
Send an AVAS login OTP to an existing customer's Maldives phone number.
Inputs: phone_number (required). Returns: object
submit_orderA
Validate then place the frozen order exactly once. Ambiguous saves are never retried.
Inputs: confirmation_token (required). Returns: object
track_deliveriesB
List and track the linked customer's active AVAS orders and delivery state.
Inputs: no named parameters. Returns: result
update_cart_itemB
Update local cart quantity; use remove_cart_item to delete.
Inputs: qty (required), line_id (required). Returns: object
upload_receiptC
Upload the staged receipt only with the exact displayed confirmation phrase.
Inputs: confirmation (required). Returns: object
verify_phone_loginB
Verify the AVAS OTP previously sent by start_phone_login.
Inputs: otp_code (required). Returns: object
view_cartA
View the persisted local cart.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Each tool targets a distinct action or resource, such as cart operations, login steps, order management, and receipt handling, with no overlapping purposes.
Most tools follow a verb_noun pattern (e.g., add_to_cart, list_restaurants), though a few like account_status and delivery_spending_report deviate slightly, but the overall pattern is clear.
21 tools cover the full ordering lifecycle—login, restaurants, menu, cart, orders, receipts, deliveries—slightly above the ideal range but still well-scoped for a comprehensive food delivery service.
Core workflows are covered: login, restaurant browsing, menu search, cart management, quoting, order submission, delivery tracking, and receipt handling. Minor gaps like address management are absent but not critical.
Maintenance
Related MCP Connectors
Per-restaurant MCP servers: menu, hours, delivery terms; live example below
MCP server for Autumn — read customers, plans, balances & invoices; track usage and attach plans.
MCP server for Modern Treasury — payment orders, transactions, counterparties and ledgers.
An MCP server that exposes functionalities to use Zomato's services.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceRemote MCP Server for listing and getting the menus of the official mensas in munichMIT
- AlicenseAqualityCmaintenanceMerchant-side MCP server for agentbank that lets merchants read their own orders and live Curless wallet balance from an MCP client such as Claude Desktop.8200 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP server for operating a fictional restaurant, providing tools to consult the menu, manage active orders, view shift summaries, update dish availability, and advance order statuses. Includes a playground that teaches JSON-RPC by showing live protocol interactions.1-
- FlicenseNot gradedqualityCmaintenanceMCP server exposing tools for a small food business: catalog, booking capacity, stock, catering quotes, and orders. Enables natural-language interaction with these operations via any MCP client, including a LangGraph agent.-