Enables AI agents to search for restaurants and stores, browse menus, manage shopping carts, and place orders programmatically through the DoorDash platform.
Click on "Install 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., "@doordash-mcpfind sushi nearby and show me the menu for the highest-rated restaurant"
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.
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 clientCursor
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 |
| Search restaurants and stores by name, cuisine, or food type |
| Get a restaurant's full menu with items, prices, and option flags |
| Search items within grocery/convenience/alcohol stores |
| Get customization options for menu items (sides, extras, sizes) |
Cart
Tool | Description |
| Add items to cart (restaurants by name, convenience stores by ID) |
| View all active carts with items and subtotals |
| Update item quantity or remove items |
| Delete a cart |
Checkout
Tool | Description |
| Preview fees, delivery time, and total |
| Place an order (charges the account) |
| Check payment and delivery status |
Group Orders
Tool | Description |
| Create a group order and get a share link |
| View each person's items and finalization status |
Account
Tool | Description |
| Automated login (email + OTP) |
| Enter OTP verification code |
| View order history |
| List saved delivery addresses |
| Set active delivery address |
| Add a new delivery address |
| List saved payment methods |
| 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 browserLog 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 fingerprintPersistent profile: Chromium profile at
~/.doordash-mcp/profile/preserves cookies and session across restartsCaptured 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 |
|
|
Tool |
|
|
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
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.