Skip to main content
Glama
MealCP

MealCP MCP

Official
by MealCP

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)

Related MCP server: Swissgroceries MCP

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

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    A Model Context Protocol server for real-time Swiss grocery shopping that searches and compares products across 8 major Swiss retailers (Migros, Coop, Aldi, Denner, Lidl, Farmy, Volgshop, Otto’s), normalizes per-unit prices, surfaces promotions, computes optimal multi-store shopping plans, and works with any MCP-compatible client without API keys or accounts.
    7
    95
    27
    AGPL 3.0

View all related MCP servers

Related MCP Connectors

  • Kroger MCP — grocery products, prices, and store locations (developer.kroger.com)

  • Federated commerce search across independent WooCommerce merchants. Keyless, read-only MCP server.

  • Track prices & price history on any online shop, with alerts and an API

View all MCP Connectors

Latest Blog Posts

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