MealCP MCP
Enables searching grocery product catalogs with faceted filters and retrieving price history statistics via the MealCP grocery price API.
README
MealCP MCP
Official Model Context Protocol server for MealCP — the grocery & food data layer for AI agents.
Exposes two tools over the MealCP public API:
search_products— search the grocery product catalog by keyword with faceted filtering (country, retailer, chain, brand, tag, category, city, price range, sort, pagination).get_price_history— aggregated price-history stats (min/max/avg/first/ last, net change) for one product over a date range.
Requirements
- Python 3.10+
- An API key from MealCP (each tool call consumes 1 credit)
Usage
Run directly with uv:
uvx mealcp-mcp
Or install:
pip install mealcp-mcp
mealcp-mcp
The server speaks MCP over stdio; any MCP host (Claude Desktop, opencode, Cursor, …) can spawn it.
Claude Desktop
{
"mcpServers": {
"mealcp": {
"command": "uvx",
"args": ["mealcp-mcp"],
"env": {
"MEALCP_API_URL": "https://api.mealcp.com",
"MEALCP_API_KEY": "mcp_live_your_key_here"
}
}
}
}
opencode
{
"mcp": {
"mealcp": {
"type": "local",
"command": ["uvx", "mealcp-mcp"],
"enabled": true,
"environment": {
"MEALCP_API_URL": "https://api.mealcp.com",
"MEALCP_API_KEY": "mcp_live_your_key_here"
}
}
}
}
Configuration
| Variable | Default | Description |
|---|---|---|
MEALCP_API_URL |
http://localhost:8000 |
Base URL of the MealCP API |
MEALCP_API_KEY |
(none) | X-API-Key sent with every request |
Errors
Tool errors surface the API's stable error tokens, formatted
<code>: <message> (e.g. not_found: Product not found). Branch on the code,
never the message.
Contract
Response models are generated from the API's OpenAPI spec
(contract/openapi.json, currently version 0.1.0). Refresh with:
uvx --from datamodel-code-generator datamodel-codegen \
--input contract/openapi.json \
--output src/mealcp_mcp/models.py \
--output-model-type pydantic_v2.BaseModel \
--target-python-version 3.10 --disable-timestamp
Development
uv sync
uv run pytest
uv run ruff check .
License
MIT
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.
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.
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.
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.
E2B
Using MCP to run code via e2b.