Food402 MCP Server

Order food from TGO Yemek via AI assistants

README.md

Food402 MCP Server

An MCP (Model Context Protocol) server that enables AI assistants to order food from TGO Yemek. Simply chat with your AI assistant to browse restaurants, build your order, and complete checkout. Works with Claude, ChatGPT (Developer Mode), and Codex CLI via MCP.


Clawdbot / OpenClaw (AgentSkills)

Food402 is also available as an AgentSkill on ClawHub for use with Clawdbot (OpenClaw), Claude Code, Cursor, Codex, Gemini CLI, and other AgentSkills-compatible tools.

Install via ClawHub:

clawhub install rersozlu/food402

Or manually: Copy the skill/ folder to ~/.openclaw/skills/food402/ and configure your credentials in ~/.openclaw/openclaw.json.


Local MCP Server (npm package)

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "food402": {
      "command": "npx",
      "args": ["-y", "food402"],
      "env": {
        "TGO_EMAIL": "your-email@example.com",
        "TGO_PASSWORD": "your-password",
        "GOOGLE_PLACES_API_KEY": "your-google-api-key"
      }
    }
  }
}

Replace credentials with your own. GOOGLE_PLACES_API_KEY is optional (see Optional Features).

Claude Code

For project-specific installation with Claude Code:

npm install food402

This automatically adds food402 to your .mcp.json. Open the file and update your credentials:

{
  "mcpServers": {
    "food402": {
      "command": "node",
      "args": ["./node_modules/food402/dist/src/index.js"],
      "env": {
        "TGO_EMAIL": "your-email@example.com",
        "TGO_PASSWORD": "your-password",
        "GOOGLE_PLACES_API_KEY": "your-google-api-key"
      }
    }
  }
}

GOOGLE_PLACES_API_KEY is optional (see Optional Features).

Codex CLI (Terminal)

Codex reads MCP servers from your global config at ~/.codex/config.toml.

Option A: Via CLI

codex mcp add food402 --env TGO_EMAIL=your-email@example.com --env TGO_PASSWORD=your-password --env GOOGLE_PLACES_API_KEY=your-google-api-key -- npx -y food402

Option B: Manual config

Add to ~/.codex/config.toml:

[mcp_servers.food402]
command = "npx"
args = ["-y", "food402"]

[mcp_servers.food402.env]
TGO_EMAIL = "your-email@example.com"
TGO_PASSWORD = "your-password"
GOOGLE_PLACES_API_KEY = "your-google-api-key"  # Optional

Prerequisites

Account Setup Required

Before using this MCP server, you must have a TGO Yemek account with:

  1. TGO Yemek account - Create one at tgoyemek.com if you don't have one
  2. Payment card saved to your account - The checkout process requires a saved card; you cannot enter card details during ordering
  3. At least one delivery address saved (recommended) - You can add addresses through the MCP, but having one pre-configured makes ordering faster

Quick Start: Ordering Flow

Here's the typical workflow when ordering food through the AI assistant:

1. Select Delivery Address

"Show me my saved addresses"
"Select my home address for delivery"

2. Find Restaurants

"What restaurants are near me?"
"Search for pizza restaurants"
"Find places that serve lahmacun"

3. Browse Menu & Add Items

"Show me the menu for [restaurant name]"
"Add 2 lahmacun to my cart"
"What customization options are available for this item?"

4. Review & Checkout

"Show me my basket"
"Remove the drink from my order"
"I'm ready to checkout"

5. Place Order

"Place my order using my saved card"

Note: A browser window will open for 3D Secure verification. Complete the verification to finalize your order.

6. Track Order

"What's the status of my order?"
"Show me my recent orders"

Available Tools

Tool Description Parameters
get_addresses Get user's saved delivery addresses None
select_address Select delivery address (must call before ordering) addressId
get_restaurants Search restaurants near a location latitude, longitude, page?
search_restaurants Search restaurants and products by keyword searchQuery, latitude, longitude, page?
get_restaurant_menu Get restaurant's full menu restaurantId, latitude, longitude
get_product_details Get product customization options restaurantId, productId, latitude, longitude
get_product_recommendations Get "goes well with" suggestions restaurantId, productIds[]
add_to_basket Add items to cart storeId, items[], latitude, longitude, etc.
get_basket Get current cart contents

Tools 9

get_addressesGet user's saved delivery addresses
select_addressSelect delivery address
get_restaurantsSearch restaurants near a location
search_restaurantsSearch restaurants and products by keyword
get_restaurant_menuGet restaurant's full menu
get_product_detailsGet product customization options
get_product_recommendationsGet goes well with suggestions
add_to_basketAdd items to cart
get_basketGet current cart contents

Environment Variables

TGO_EMAILrequiredEmail address for TGO Yemek account
TGO_PASSWORDrequiredPassword for TGO Yemek account
GOOGLE_PLACES_API_KEYOptional API key for location services

Try it

Find restaurants near me that serve pizza.
Show me the menu for the nearest burger place.
Add 2 cheeseburgers to my cart.
What is the status of my current order?
I'm ready to checkout my basket.

Frequently Asked Questions

What are the key features of Food402?

Browse restaurants and menus via natural language. Manage shopping cart items and customizations. Select saved delivery addresses. Complete order checkout with saved payment methods. Track order status and history.

What can I use Food402 for?

Ordering lunch quickly without navigating food delivery apps. Hands-free food ordering while working in an IDE. Automating repetitive food orders through AI agents.

How do I install Food402?

Install Food402 by running: npx -y food402

What MCP clients work with Food402?

Food402 works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Food402 docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare