grubhub-mcp
Allows searching restaurants, browsing menus, building carts, inspecting checkout state, attaching payment, and placing orders. Also supports retrieval of campus card balances for USC/CarolinaCard when available.
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., "@grubhub-mcp search for vegan restaurants near me"
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.
grubhub-mcp
an mcp server for grubhub. it can search restaurants, browse menus, build carts, inspect checkout state, attach payment, and place orders.
this also has campus dining helpers for usc/carolinacard. it can pull the same campus-card balances the grubhub mobile app shows, including meals, retail meals, meal plan dollars, and carolina cash when grubhub returns them.
python 3.11+ is required. dependencies: mcp, httpx, pydantic
setup
python -m venv .venv
source .venv/bin/activate
pip install -e .
python -m grubhub_mcpon windows:
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e .
python -m grubhub_mcpby default the server runs over stdio, which is what most local mcp clients want.
{
"mcpServers": {
"grubhub": {
"command": "/path/to/grubhub-mcp/.venv/bin/python",
"args": ["-m", "grubhub_mcp"]
}
}
}Related MCP server: FoodDash
env vars
MCP_TRANSPORT=stdio | http | streamable-http | sse
HOST=127.0.0.1
PORT=8001
MCP_PATH=/mcp
MCP_ALLOWED_HOSTS=comma,separated,hosts
MCP_ALLOWED_ORIGINS=comma,separated,origins
MCP_JSON_RESPONSE=1
GRUBHUB_SESSION_DIR=~/.grubhub-mcp
GRUBHUB_USER_AGENT="Grubhub/2026.24.2 (Android; Android 15)"GRUBHUB_SESSION_DIR is where login state is stored. keep that directory private.
the session file contains grubhub auth tokens.
undocumented endpoints (yay genymotion!)
this talks to grubhub's private/mobile api. some endpoints were mapped from the android app, including the campus-card balance call:
/tapingo/payments/{diner_udid}/campus-cards/v2/cards-balancesreverse engineering is EPIC!
Available Tools
47 toolsadd_addressA
add a new delivery address. (AUTH'D)
Args: street_address: Street address line city: City name state: State abbreviation (e.g. NY, CA) zip_code: ZIP code apt_suite: Apartment/suite number delivery_instructions: Special delivery instructions label: Label for the address (e.g. Home, Work)
Inputs: street_address (required), city (required), state (required), zip_code (required), +3 more. Returns: result
add_campus_card_paymentB
attach the linked campus card, such as CarolinaCard, to a cart.
Args: cart_id: The cart ID payment_id: Campus-card payment ID; default is campus_card amount_cents: Optional amount in cents; omit to cover remaining balance
Inputs: cart_id (required), payment_id, amount_cents. Returns: result
add_favoriteC
add a restaurant to favorites. (AUTH'D)
Args: restaurant_id: The restaurant ID to favorite
Inputs: restaurant_id (required). Returns: result
add_payment_to_cartA
attach a saved payment method to a cart.
Args: cart_id: The cart ID payment_type: Grubhub payment type, such as CREDIT_CARD or CAMPUS_CARD payment_id: Payment method ID amount_cents: Optional amount in cents; omit to cover remaining balance
Inputs: cart_id (required), payment_type (required), payment_id (required), amount_cents. Returns: result
add_to_cartA
add an item to an existing cart.
Args: cart_id: The cart ID to add to restaurant_id: The restaurant ID for the item menu_item_id: The menu item ID to add quantity: Number of this item (default 1) special_instructions: Special preparation instructions options: List of selected options/add-ons, each with {id, quantity}
Inputs: cart_id (required), restaurant_id (required), menu_item_id (required), quantity, +2 more. Returns: result
apply_gift_cardC
apply a gift card to a cart.
Args: cart_id: The cart ID card_number: Gift card number pin: Gift card PIN
Inputs: cart_id (required), card_number (required), pin (required). Returns: result
apply_promo_codeB
apply a promotion code to the cart.
Args: cart_id: The cart ID promo_code: The promotion code to apply
Inputs: cart_id (required), promo_code (required). Returns: result
autocomplete_searchB
get autocomplete suggestions for a search query.
Args: query: The partial search text latitude: Latitude for location context longitude: Longitude for location context location_mode: DELIVERY or PICKUP (default DELIVERY)
Inputs: query (required), latitude (required), longitude (required), location_mode. Returns: result
change_passwordB
change account password. (AUTH'D)
Args: current_password: Current password new_password: New password
Inputs: current_password (required), new_password (required). Returns: result
create_accountC
Create a new Grubhub account.
Inputs: email (required), password (required), first_name (required), last_name (required). Returns: result
create_cartB
create a new cart with the first item.
Args: restaurant_id: The restaurant ID to order from menu_item_id: The menu item ID to add quantity: Number of this item (default 1) special_instructions: Special preparation instructions options: List of selected options/add-ons, each with {id, quantity} latitude: Delivery latitude longitude: Delivery longitude is_delivery: True for delivery, False for pickup
Inputs: restaurant_id (required), menu_item_id (required), quantity, special_instructions, +4 more. Returns: result
estimate_usc_retail_swipe_valueA
estimate whether a USC retail meal swipe is a good payment choice.
Args: cart_total_cents: Cart total in cents from get_cart_payment_options meal_period: breakfast, lunch, dinner, or late_night swipes_remaining: optional known remaining retail swipes meal_plan_dollars_cents: optional known Meal Plan Dollars balance carolina_cash_cents: optional known CarolinaCash balance
Inputs: cart_total_cents (required), meal_period (required), swipes_remaining, meal_plan_dollars_cents, +1 more. Returns: result
get_addressesA
get saved delivery addresses. (AUTH'D)
Inputs: no named parameters. Returns: result
get_campus_card_balancesA
get live CarolinaCard/campus-card balances from Grubhub.
Args: cart_id: Optional cart ID for checkout-context tender eligibility restaurant_id: Optional restaurant ID for checkout-context tender eligibility selected_payment_id: Optional selected campus tender/payment ID include_raw: Include Grubhub's raw campus-card balance response
Inputs: cart_id, restaurant_id, selected_payment_id, include_raw. Returns: result
get_cartB
get the current state of a cart including items, totals, and fees.
Args: cart_id: The cart ID
Inputs: cart_id (required). Returns: result
get_cart_billB
get the calculated bill for a cart, including checkout validation.
Inputs: cart_id (required). Returns: result
get_cart_payment_optionsC
get cart-scoped payment options, including campus-card availability.
Inputs: cart_id (required). Returns: result
get_favoritesB
get favorite/saved restaurants. (AUTH'D)
Inputs: no named parameters. Returns: result
get_gift_card_balanceA
check the balance of a Grubhub gift card.
Args: card_number: Gift card number pin: Gift card PIN
Inputs: card_number (required), pin (required). Returns: result
get_orderC
get details for a specific order.
Args: order_id: The order ID
Inputs: order_id (required). Returns: result
get_order_historyB
get past order history. (AUTH'D)
Args: page_size: Number of orders per page (default 10) page_num: Page number (default 0)
Inputs: page_size, page_num. Returns: result
get_ordering_guideA
get the recommended Grubhub ordering workflow and safety rules.
call this before building an order, especially for campus-card orders.
Inputs: no named parameters. Returns: result
get_payment_methodsA
get account-level saved payment methods. (AUTH'D)
campus cards are cart-scoped on Grubhub. use get_cart_payment_options after creating a cart to see whether CAMPUS_CARD is available.
Inputs: no named parameters. Returns: result
get_profileA
get the current user's profile information (AUTH'D)
Inputs: no named parameters. Returns: result
get_restaurantA
get restaurant details including menu, hours, ratings, and delivery info.
Args: restaurant_id: The Grubhub restaurant ID latitude: Optional latitude for delivery estimates longitude: Optional longitude for delivery estimates order_type: Order type - standard, catering (default standard)
Inputs: restaurant_id (required), latitude, longitude, order_type. Returns: result
get_session_infoA
Get current authentication state and session info.
Inputs: no named parameters. Returns: result
get_usc_meal_plan_rulesB
get USC CarolinaCard meal-swipe rules used by optimizer tools.
Inputs: no named parameters. Returns: result
loginC
Log in to Grubhub with email and password. Returns session info on success.
Inputs: email (required), password (required). Returns: result
logoutA
Log out of the current Grubhub session.
Inputs: no named parameters. Returns: result
place_orderB
place an order from a cart. (AUTH'D)
Args: cart_id: The cart ID to submit as an order payment_method_id: Optional payment method ID to attach before checkout payment_type: Payment type for payment_method_id, such as CREDIT_CARD or CAMPUS_CARD tip_amount: Optional tip amount in dollars
Inputs: cart_id (required), payment_method_id, payment_type, tip_amount. Returns: result
post_delivery_tipB
add or update the tip after delivery.
Args: order_id: The order ID tip_amount: Tip amount in dollars
Inputs: order_id (required), tip_amount (required). Returns: result
remove_favoriteB
remove a restaurant from favorites. (AUTH'D)
Args: restaurant_id: The restaurant ID to unfavorite
Inputs: restaurant_id (required). Returns: result
remove_from_cartB
remove an item from the cart.
Args: cart_id: The cart ID line_item_id: The line item ID to remove
Inputs: cart_id (required), line_item_id (required). Returns: result
reorderB
create a new cart from a previous order for easy reordering.
Args: order_id: The order ID to reorder
Inputs: order_id (required). Returns: result
search_campus_restaurantsA
search Grubhub campus/onsite restaurants near a campus location.
use this for campus-card dining. it sets Grubhub locationMode=CAMPUS.
Args: latitude: Latitude of the campus pickup/delivery location longitude: Longitude of the campus pickup/delivery location query: Optional restaurant or dish query page_size: Number of results per page (default 20) page_num: Page number for pagination (1-based, default 1)
Inputs: latitude (required), longitude (required), query, page_size, +1 more. Returns: result
search_restaurantsB
search for restaurants near a location.
Args: latitude: Latitude of the delivery address longitude: Longitude of the delivery address query: Optional search query (cuisine, restaurant name, dish) page_size: Number of results per page (default 20) page_num: Page number for pagination (1-based, default 1) sort_type: Optional sort; leave empty for default relevance location_mode: DELIVERY, PICKUP, CAMPUS, ONSITE, or PICKUP_CAMPUS (default DELIVERY)
Inputs: latitude (required), longitude (required), query, page_size, +3 more. Returns: result
send_login_otpB
Send a one-time passcode to the given email for login.
Inputs: email (required). Returns: result
send_password_resetC
Send a password reset OTP to the given email.
Inputs: email (required). Returns: result
set_incomplete_delivery_locationB
mark a cart for delivery with coordinates before full address is set.
Args: cart_id: The cart ID latitude: Delivery latitude longitude: Delivery longitude
Inputs: cart_id (required), latitude (required), longitude (required). Returns: result
set_pickup_infoB
set pickup contact information on a cart before checkout.
Args: cart_id: The cart ID name: Pickup contact name phone: Pickup contact phone number email: Pickup contact email address pickup_instructions: Optional pickup instructions
Inputs: cart_id (required), name (required), phone (required), email (required), +1 more. Returns: result
set_tipC
set the tip amount on the cart.
Args: cart_id: The cart ID tip_amount: Tip amount in dollars
Inputs: cart_id (required), tip_amount (required). Returns: result
track_orderB
get real-time tracking info for an active order.
Args: order_id: The order ID to track
Inputs: order_id (required). Returns: result
update_cart_itemA
update the quantity of an item in the cart.
Args: cart_id: The cart ID line_item_id: The line item ID to update quantity: New quantity (0 to remove)
Inputs: cart_id (required), line_item_id (required), quantity (required). Returns: result
update_profileB
update user profile information. (AUTH'D)
Args: first_name: New first name last_name: New last name phone: New phone number
Inputs: first_name, last_name, phone. Returns: result
verify_login_otpA
Verify a one-time passcode and complete login.
Inputs: email (required), code (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 47 tools
Most tools have clear distinct purposes, but get_menu and get_restaurant are described as identical, and search_campus_restaurants overlaps with search_restaurants using CAMPUS location_mode, causing minor ambiguity.
All tools use a consistent verb_noun pattern (e.g., add_address, create_cart, place_order) with descriptive names, making them predictable and easy to understand.
47 tools is high, bordering on too many for a single server, but the breadth of Grubhub's ordering, account, and campus-card features justifies the count. Still, it feels heavy for an agent to manage.
The tool set covers the full ordering lifecycle from search to payment and tracking, including campus-specific features. Missing only minor items like canceling an order or updating a cart's delivery address.
Related MCP Connectors
An MCP server that exposes functionalities to use Zomato's services.
Hosted MCP server to manage a restaurant menu from AI agents - 39 tools over the DuckHub API.
Per-restaurant MCP servers: menu, hours, delivery terms; live example below
Public MCP server for discovering open jobs. Search, filter, and get application links.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to order food from TGO Yemek by browsing restaurants, managing carts, and completing checkouts. It allows users to handle address selection and order tracking directly through natural language interactions.9 npm12MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server and app that enables users to browse restaurants, view menus, manage shopping carts, and place food orders with live status tracking. It serves as a reference implementation for MCP Apps SDK patterns like tool visibility, lifecycle hooks, and structured content.-
- FlicenseNot gradedqualityDmaintenanceEnables users to search restaurants, view menus, place orders, and check order status via a local MCP server using Firestore.2-
- AlicenseNot gradedqualityDmaintenanceAn MCP server for grocery shopping at Kroger-owned stores, enabling product search, store finder, cart management, and more through AI assistants.11 npmMIT