MealCP MCP
OfficialMealCP MCP
Официальный сервер Model Context Protocol для MealCP — слоя данных о продуктах и питании для ИИ-агентов.
Предоставляет два инструмента через публичный API MealCP:
search_products— поиск по каталогу продуктов по ключевому слову с фильтрацией по фасетам (страна, ритейлер, сеть, бренд, тег, категория, город, диапазон цен, сортировка, пагинация).get_price_history— агрегированная статистика истории цен (мин/макс/среднее/первое/ последнее, чистое изменение) для одного продукта за диапазон дат.
Требования
Python 3.10+
API-ключ от MealCP (каждый вызов инструмента расходует 1 кредит)
Related MCP server: market-fiyatlari-mcp-server
Использование
Запуск напрямую с помощью uv:
uvx mealcp-mcpИли установка:
pip install mealcp-mcp
mealcp-mcpСервер работает по протоколу MCP через stdio; любой MCP-хост (Claude Desktop, opencode, Cursor, …) может его запустить.
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"
}
}
}
}Конфигурация
Переменная | По умолчанию | Описание |
|
| Базовый URL API MealCP |
| (нет) |
|
Ошибки
Ошибки инструментов возвращают стабильные токены ошибок API в формате
<code>: <message> (например, not_found: Product not found). Ориентируйтесь на код,
а не на сообщение.
Контракт
Модели ответов генерируются из OpenAPI-спецификации API
(contract/openapi.json, текущая версия 0.1.0). Обновление:
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Разработка
uv sync
uv run pytest
uv run ruff check .Лицензия
MIT
Available Tools
2 toolsget_price_historyA
Get aggregated price-history stats for one product over a date range.
Returns min/max/avg/first/last price plus the net change over the window,
pooled across every store carrying the product. Pair with search_products
first and pass a hit's id here verbatim.
Args:
product_id: Opaque product id from a search hit (e.g.
rp_550e8400e29b41d4a8b2c3d1e9f7a6c8).
from_date: ISO date, inclusive lower bound (e.g. "2026-01-01").
to_date: ISO date, inclusive upper bound; defaults to today.
Returns: Aggregated price-history stats.
Raises: mcp.server.mcpserver.exceptions.ToolError: If the API is unavailable or the product is not found; the message starts with the API's stable error token.
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | No | ||
| from_date | Yes | ||
| product_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| id | Yes | |
| name | Yes | |
| brand | No | |
| change | No | |
| to_date | Yes | |
| currency | No | |
| avg_price | No | |
| from_date | Yes | |
| max_price | No | |
| min_price | No | |
| change_pct | No | |
| last_price | No | |
| first_price | No | |
| store_count | No | |
| retailer_slug | Yes | |
| last_observed_at | No | |
| first_observed_at | No | |
| observation_count | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses error behavior (ToolError with stable token), the aggregation scope ('pooled across every store'), and the inclusive date semantics. It implies a read-only operation via 'get' but does not explicitly state idempotency or lack of side effects. Given the absence of annotations, the description is thorough, though a brief note on read-only nature would make it fully transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with a leading one-sentence purpose, then a compact Args/Returns/Raises layout. Every sentence adds value—examples for product_id and dates, explicit defaults, and error detail—without redundancy. It is front-loaded with the core function and avoids fluff, making it easy to scan.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is an output schema, so the minimal 'Returns: Aggregated price-history stats' is acceptable since the schema provides structure. The description covers the usage prerequisite (search first), parameter details, aggregation behavior, and error conditions. The only minor gap is a lack of mention of any range limits or rate limiting, but that's not essential given the tool's simplicity and the existence of an output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% description coverage, so the description must fully explain each parameter. It does this exceptionally: product_id is defined as 'Opaque product id from a search hit' with a concrete example; from_date and to_date are described with format and inclusiveness, plus a default for to_date. This far exceeds what the bare schema provides and gives the agent all necessary context.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb+resource ('Get aggregated price-history stats') and clearly scopes it to 'one product over a date range'. It enumerates the exact statistics returned (min/max/avg/first/last price and net change), which distinguishes it from the sibling tool search_products, which is about discovering products rather than analyzing history. This is unambiguous and actionable.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly instructs the agent to 'Pair with search_products first and pass a hit's id here verbatim', establishing a clear workflow and the prerequisite. It also clarifies the required input source. While it doesn't state 'when not to use', the pair-with guidance and the fact that it's for a single product implies the alternative use case, making the routing clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_productsA
Search the grocery product catalog by keyword with faceted filtering.
Returns matching products with name, brand, price, unit price, retailer and a URL, plus facet counts for retailers, brands and countries.
Args:
q: Free-text query (e.g. "potatoes", "krumpli"). Empty returns all,
sorted by sort or recency.
country: ISO 3166-1 alpha-2 country code (e.g. HU, FR).
retailer: Retailer slug (e.g. tesco-hu, auchan-fr).
chain: Chain slug (e.g. tesco, auchan).
brand: Brand free-text token.
tag: Tag slug (e.g. vegan).
category: Category slug at any level (L1/L2/L3, e.g. fresh-produce,
dairy-eggs, vegetables/potatoes); matches the whole subtree.
city: City free-text token filtering stores carrying the product.
currency: ISO 4217 currency code (e.g. HUF, EUR).
min_price: Minimum latest price (inclusive).
max_price: Maximum latest price (inclusive).
sort: Stable sort token: relevance, newest, oldest, price_asc,
price_desc, unit_price_asc, unit_price_desc.
page: 1-indexed result page.
page_size: Hits per page (1-100).
Returns: A structured search response.
Raises: mcp.server.mcpserver.exceptions.ToolError: If the search API is unavailable; the message starts with the API's stable error token.
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | ||
| tag | No | ||
| city | No | ||
| page | No | ||
| sort | No | ||
| brand | No | ||
| chain | No | ||
| country | No | ||
| category | No | ||
| currency | No | ||
| retailer | No | ||
| max_price | No | ||
| min_price | No | ||
| page_size | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| hits | Yes | |
| page | Yes | |
| found | Yes | |
| query | Yes | |
| facets | Yes | |
| page_size | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full responsibility. It discloses return format, error behavior (ToolError with stable token), and sorting semantics. It does not mention rate limits or authentication, but for a read-only search tool this is a minor gap. The description adds meaningful context beyond the minimal schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured: a one-sentence summary front-loads the purpose, followed by a return summary, then a systematic Args list, and finally error/raises info. Every sentence earns its place; the long Args list is necessary for 14 parameters and is presented compactly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (14 params, no annotations, output schema exists but not shown), the description covers all essential aspects: what it returns, how to use each parameter, sorting, pagination, and error behavior. It even provides examples. Nothing critical for correct invocation is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description compensates fully with a detailed Args list. Each parameter is explained with formats, examples, constraints (ISO codes, slugs, inclusive bounds, page_size limits), and semantic nuances. This is a model of parameter documentation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: 'Search the grocery product catalog by keyword with faceted filtering.' This is a specific verb+resource combination that immediately distinguishes it from its sibling (get_price_history), which focuses on historical data. The summary line also lists return fields, reinforcing the tool's scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives clear context on how to use the tool (e.g., empty q returns all, sort options, category subtree matching), and its purpose is so distinct from the sibling that an agent can infer usage. However, it does not explicitly mention alternatives or state when not to use it, so it misses the 'explicit when/when-not' criterion for a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
v0.1.0- First observed
get_price_history - First observed
search_products
TDQS
The two tools serve clearly distinct purposes: one searches the product catalog with rich filtering, while the other retrieves price history for a specific product. There is no overlap, and each tool has a well-defined input-output contract.
Both tool names follow the same verb_noun pattern: search_products and get_price_history. The naming is predictable, descriptive, and consistent with common MCP conventions.
With only 2 tools, the server is on the thin side for its apparent domain (grocery product search and price tracking). While the tools are functional and well-designed, the count feels minimal, though it could be sufficient for a narrowly scoped use case.
The server covers the core read-only workflows of searching products and retrieving price history, which aligns with its apparent purpose. Minor gaps exist (e.g., no direct product detail endpoint or category listing), but the search tool returns comprehensive product data, making the surface reasonably complete for typical usage.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Google Shopping products, prices, sellers, and deals as structured data via a hosted MCP server.
Cross-merchant product search with real price history, comparisons, and demand signals.
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
Kroger MCP — grocery products, prices, and store locations (developer.kroger.com)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides grocery price and nutritional information search capabilities, allowing AI agents to search for food products, compare prices, and analyze nutritional content across different grocery stores.1-
- AlicenseAqualityDmaintenanceEnables querying Turkish market prices, searching products, and comparing prices across different stores using the Market Fiyatı API.31634MIT
- FlicenseNot gradedqualityFmaintenanceEnables searching and comparing grocery prices from Turkish markets via marketfiyati.org.tr.7-
- AlicenseNot gradedqualityCmaintenanceEnables searching and comparing products from Woolworths and Coles supermarkets.MIT
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MealCP/mealcp-mcp-python'
If you have feedback or need assistance with the MCP directory API, please join our Discord server