grubhub-mcp
Provides programmatic access to Grubhub's food delivery platform, enabling restaurant search, menu browsing, cart management, order placement, and delivery tracking through MCP tools.
README
Grubhub MCP Server
An MCP (Model Context Protocol) server that provides programmatic access to Grubhub's food delivery platform. Search restaurants, browse menus, manage your cart, place orders, and track deliveries — all through MCP tools.
Features
- Search & Discovery — Find restaurants by location, cuisine, or keyword with autocomplete
- Restaurant & Menus — View restaurant details, full menus, item options and pricing
- Cart Management — Create carts, add/remove items, apply promo codes, set tips
- Order Flow — Place orders, track deliveries in real-time, reorder past meals
- Account Management — Manage profile, saved addresses, favorites, and passwords
- Payments — View saved payment methods, check gift card balances
All 36 Tools
| Category | Tools |
|---|---|
| Auth | login, logout, get_session_info, send_login_otp, verify_login_otp, create_account, send_password_reset |
| Search | search_restaurants, autocomplete_search |
| Restaurant | get_restaurant, get_menu, get_menu_item |
| Cart | create_cart, get_cart, add_to_cart, update_cart_item, remove_from_cart, apply_promo_code, set_tip |
| Order | place_order, get_order, get_order_history, track_order, reorder, post_delivery_tip |
| Account | get_profile, update_profile, get_addresses, add_address, get_favorites, add_favorite, remove_favorite, change_password |
| Payments | get_payment_methods, get_gift_card_balance, apply_gift_card |
Installation
Claude Code Plugin (Recommended)
claude plugin marketplace add aserper/grubhub-mcp
claude plugin install grubhub-mcp@grubhub-marketplace
uvx (No Installation Required)
Add to your Claude Code MCP settings (~/.claude/settings.json):
{
"mcpServers": {
"grubhub": {
"command": "uvx",
"args": ["--from", "grubhub-mcp", "grubhub"]
}
}
}
Manual / From Source
Requires Python 3.11+.
git clone https://github.com/aserper/grubhub-mcp.git
cd grubhub-mcp
uv venv && source .venv/bin/activate
uv pip install -e .
Then add to ~/.claude/settings.json:
{
"mcpServers": {
"grubhub": {
"command": "/path/to/grubhub-mcp/.venv/bin/grubhub"
}
}
}
Usage with Other MCP Clients
Run the server over stdio:
# With uvx (no install needed)
uvx --from grubhub-mcp grubhub
# Or from a local install
grubhub
# Or as a Python module
python -m grubhub_mcp
Authentication
No login required for browsing — search restaurants, view menus, and check prices without an account. The server automatically creates an anonymous session.
Login required for ordering, account management, and order history:
Use the login tool with my email and password
Supports email/password login and OTP (one-time passcode) authentication.
How It Works
The API endpoints were reverse-engineered from the Grubhub Android app (v2026.11.1) by decompiling the APK with jadx and analyzing the Retrofit service interfaces, OkHttp interceptors, and data models.
Key technical details:
- Base API:
https://api-gtm.grubhub.com - Auth: Bearer token via email/password or anonymous sessions
- Transport: REST/JSON for most endpoints, Protobuf for some BFF services
- Headers: Mimics the Android app's request headers including
x-gh-browser-id
Project Structure
src/grubhub_mcp/
├── __init__.py
├── __main__.py # python -m entry point
├── server.py # MCP server setup and tool registration
├── client.py # HTTP client with auth and header management
├── auth.py # Authentication flows (login, anonymous, OTP, refresh)
└── tools/
├── auth.py # Auth tools (login, logout, OTP, account creation)
├── search.py # Restaurant search and autocomplete
├── restaurant.py # Restaurant details, menus, menu items
├── cart.py # Cart CRUD, promo codes, tips
├── order.py # Place orders, track, reorder, order history
├── account.py # Profile, addresses, favorites, password
└── payments.py # Payment methods, gift cards
Disclaimer
This project is for educational and personal use. It is not affiliated with or endorsed by Grubhub. Use responsibly and in accordance with Grubhub's terms of service.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。