doordash-mcp
Enables AI agents to search restaurants, browse menus, manage carts, and place orders on DoorDash programmatically. It utilizes a headless browser to interact with DoorDash's GraphQL API and bypass anti-bot protections for the full delivery lifecycle.
README
doordash-mcp
An MCP server that lets AI agents order food, groceries, and more through DoorDash. Search restaurants, browse menus, build carts, and place orders — all programmatically.
Built with Bun, Patchright, and the Model Context Protocol SDK.
Why
DoorDash doesn't have a consumer API. The existing community MCPs use brittle scraping or outdated endpoints. This one reverse-engineers DoorDash's GraphQL API by running fetch() inside a real Chromium browser context, bypassing Cloudflare's TLS fingerprinting.
How it works
This MCP runs a headless Patchright (undetected Playwright) browser and executes all DoorDash API calls via page.evaluate(fetch(...)) inside the browser's JavaScript context. GraphQL queries were captured from real DoorDash browser sessions and are stored as .graphql files.
Setup
# Install
git clone https://github.com/anthropics/doordash-mcp.git
cd doordash-mcp
bun install
bunx patchright install chromium
# Configure
mkdir -p ~/.doordash-mcp
echo '{ "doordash": { "email": "your@email.com" } }' > ~/.doordash-mcp/config.json
# Initial login (headed browser — required once to earn Cloudflare clearance)
bun run login
# Add to your MCP client
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"doordash": {
"command": "bun",
"args": ["/path/to/doordash-mcp/src/server.ts"]
}
}
}
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"doordash": {
"command": "bun",
"args": ["/path/to/doordash-mcp/src/server.ts"]
}
}
}
Tools
21 tools covering the full DoorDash lifecycle:
Discovery
| Tool | Description |
|---|---|
doordash_search |
Search restaurants and stores by name, cuisine, or food type |
doordash_menu |
Get a restaurant's full menu with items, prices, and option flags |
doordash_convenience_search |
Search items within grocery/convenience/alcohol stores |
doordash_item_options |
Get customization options for menu items (sides, extras, sizes) |
Cart
| Tool | Description |
|---|---|
doordash_add_to_cart |
Add items to cart (restaurants by name, convenience stores by ID) |
doordash_cart |
View all active carts with items and subtotals |
doordash_modify_cart |
Update item quantity or remove items |
doordash_delete_cart |
Delete a cart |
Checkout
| Tool | Description |
|---|---|
doordash_checkout |
Preview fees, delivery time, and total |
doordash_place_order |
Place an order (charges the account) |
doordash_order_status |
Check payment and delivery status |
Group Orders
| Tool | Description |
|---|---|
doordash_create_group_order |
Create a group order and get a share link |
doordash_group_order_status |
View each person's items and finalization status |
Account
| Tool | Description |
|---|---|
doordash_login |
Automated login (email + OTP) |
doordash_verify |
Enter OTP verification code |
doordash_orders |
View order history |
doordash_addresses |
List saved delivery addresses |
doordash_set_address |
Set active delivery address |
doordash_add_address |
Add a new delivery address |
doordash_payment_methods |
List saved payment methods |
doordash_add_card |
Add a payment card (tokenized via Stripe) |
Authentication (WIP)
Auth is a work in progress. Fully automated headless login is not yet reliable due to Cloudflare's anti-bot protections. The current approach requires a one-time manual login.
DoorDash requires a browser session. On first use:
- Run
bun run login— opens a headed Chromium browser - Log into DoorDash manually (Google, email+OTP, etc.)
- Close the browser — session is saved to
~/.doordash-mcp/profile/
After the initial login, the MCP server runs headless. The session persists across tool calls within the same server process. If the session expires or the server restarts, you may need to run bun run login again.
The doordash_login / doordash_verify tools attempt automated re-authentication via email + OTP, but this depends on having a valid Cloudflare session from a prior headed login.
Architecture
src/
├── server.ts # MCP entrypoint (stdio transport)
└── services/doordash/
├── index.ts # 21 tool definitions
├── browser.ts # Patchright browser manager + in-page GraphQL
├── login.ts # Headed login script
└── queries/ # GraphQL queries captured from real sessions
├── storepageFeed.graphql
├── addCartItem.graphql
├── createOrderFromCart.graphql
├── convenienceSearchQuery.graphql
└── ... (19 total)
Key design decisions:
- In-page fetch: All API calls run inside the browser via
page.evaluate(fetch(...))to inherit the correct TLS fingerprint - Persistent profile: Chromium profile at
~/.doordash-mcp/profile/preserves cookies and session across restarts - Captured queries: GraphQL queries are stored as files, captured from real browser sessions by intercepting network requests
- Schema discovery: DoorDash has introspection disabled — schemas were discovered by sending invalid queries and reading error messages
Store types
DoorDash has two types of storefronts with different APIs:
| Restaurants | Convenience (grocery, alcohol, pharmacy) | |
|---|---|---|
| Menu | storepageFeed (full menu upfront) |
convenienceSearchQuery (search-based) |
| Tool | doordash_menu |
doordash_convenience_search |
| Add to cart | By item name | By item ID |
The doordash_menu tool auto-detects convenience stores and directs agents to use doordash_convenience_search.
Known limitations
- Cloudflare session: CF clearance may not survive MCP server restarts. A headed login (
bun run login) re-earns it. - VCC cards: Virtual credit cards are blocked by DoorDash's fraud detection. PayPal works.
- updateCartItemV2: DoorDash's quantity update mutation is broken server-side. The tool works around it via remove + re-add.
- Scheduled orders: Only ASAP delivery is supported. Scheduled time slot selection is not yet implemented.
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 模型以安全和受控的方式获取实时的网络信息。