mcp-mealie
mcp-mealie
MCP server for Mealie — exposes a Mealie instance's REST API to MCP clients (Claude Desktop, Claude Code, etc.) so an LLM can read, search, scrape, edit, and delete recipes (and meal plans, shopping lists, cookbooks, taxonomy) on your behalf.
Prerequisites
Python 3.14+
A reachable Mealie instance (self-hosted or otherwise)
A Mealie API token: in Mealie, click your avatar → Profile → API Tokens → Generate. The token inherits the issuing user's permissions, so for automation prefer a dedicated non-admin user.
Setup
uv syncConfiguration
Two environment variables are required:
Variable | Purpose |
| Root URL of your Mealie instance, no trailing path |
| Long-lived bearer token from Profile → API Tokens |
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mealie": {
"command": "uvx",
"args": ["mcp-mealie"],
"env": {
"MEALIE_BASE_URL": "https://mealie.example.com",
"MEALIE_API_TOKEN": "eyJhbGc..."
}
}
}
}Claude Code
claude mcp add mealie \
-e MEALIE_BASE_URL=https://mealie.example.com \
-e MEALIE_API_TOKEN=eyJhbGc... \
-- uvx mcp-mealieTools
Diagnostics
Tool | Description |
| Server version / health (no auth path) |
| Confirm the token works |
Recipes (full CRUD + scrape + rating + content)
Tool | Description |
| Paginated list with search and ordering |
| Full recipe by slug |
| Empty recipe by name |
| Scrape from a URL |
| Patch common metadata fields |
| Replace ingredient list (raw text, no food/unit binding) |
| Replace ingredient list, parsing each line and binding food/unit IDs |
| Re-parse the recipe's existing free-text ingredients in place |
| Replace step list (JSON array of lines) |
| Replace notes (JSON array of {title,text}) |
| Per-user rating / favorite |
| Delete by slug |
Cookbooks (full CRUD)
Tool | Description |
| Saved recipe filters |
| By UUID |
| name, description, query_filter_string, public |
| Patch |
| Delete |
Meal plans (full CRUD)
Tool | Description |
| Range-filtered list |
| By id |
| date + entry_type, plus recipe_id or title/text |
| Patch |
| Delete |
Meal-plan rules (full CRUD)
Used by Mealie's random-meal generator.
Tool | Description |
| List rules |
| By UUID |
| day, entry_type, query_filter_string |
| Patch |
| Delete |
Shopping lists (CRUD + recipe attach)
Tool | Description |
| |
| Includes items |
| |
| Rename |
| |
| Add a recipe's ingredients (with scale) |
| Reverse the above |
Shopping items (full CRUD)
Tool | Description |
| Optionally filter by |
| |
| Free-form note or structured (food/unit) |
| JSON-array bulk create |
| Includes check/uncheck |
|
Parser
Tool | Description |
| One string → quantity/unit/food |
| JSON array of strings → list of parsed results |
Taxonomy (full CRUD per resource)
Categories, tags, and kitchen tools share a uniform {name} create surface.
Resource | Tools |
Categories |
|
Tags |
|
Kitchen tools |
|
Foods |
|
Units |
|
Labels |
|
Development
uv sync
uv run pytest tests/ -x -q
uv run ruff check src/ tests/
uv run pyright src/