io.github.AndrewVG23/grocery-mcp
A dedicated MCP and REST service that searches grocery retailers directly and returns reviewable product links, enabling users to find products and create handoffs without adding to carts or placing orders.
README
Grocery MCP
<!-- mcp-name: io.github.AndrewVG23/grocery-mcp -->
A dedicated MCP and REST service that searches grocery retailers directly and returns reviewable product links. It starts with:
- Kettle Range Meat Co. — Milwaukee and Elm Grove
- Outpost Natural Foods — Capitol Drive, State Street, Bay View, and Mequon
This service does not add products to carts, place orders, store retailer
credentials, or handle payment. Every response explicitly reports
cart_prefilled: false; the user opens the links, adds products, and checks out
on the retailer's own site.
Setup
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Run
python -m grocery_mcp.server
python -m grocery_mcp.server --http
HTTP endpoints:
- MCP:
http://localhost:8080/mcp - Health:
http://localhost:8080/health - OpenAPI:
http://localhost:8080/docs - Retailers:
http://localhost:8080/v1/retailers - Product search:
http://localhost:8080/v1/products/search - Handoffs:
POST http://localhost:8080/v1/handoffs
When DATABASE_URL is configured, handoffs and OAuth dynamic client
registrations are persisted in PostgreSQL. Without it, local development uses
process memory.
MCP tools
find_grocery_retailerssearch_grocery_productscreate_grocery_handoffget_grocery_handoffcreate_grocery_order_templatelist_grocery_order_templatescreate_handoff_from_template
Example handoff input:
{
"retailer": "kettle_range",
"location_id": "milwaukee",
"items": [
{"name": "boneless chicken thighs", "quantity": 2, "unit": "lb"},
{"name": "ground beef", "quantity": 1, "unit": "lb"}
]
}
Data behavior
Product names, prices, availability, and links come from each retailer's public customer storefront at request time. These storefront interfaces are not formal partner APIs and can change without notice. Responses include match confidence, alternatives, and observation timestamps so clients can make this uncertainty visible.
Matching requires strong token overlap, rejects obvious cross-category substitutions, and prefers available products. If no safe result exists, the item is explicitly unmatched rather than replaced with a loosely related item.
Reusable templates persist the retailer, location, and normalized grocery items. Running a template always performs fresh catalog searches and creates a new review-only handoff.
Tests
ruff check .
pytest
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.