Skip to main content
Glama
mgummich

mcp-mealie

by mgummich

mcp-mealie

An MCP server for Mealie, built for agents rather than for API coverage. Eighteen curated tools over recipes, meal plans, and cookbooks, with responses trimmed hard enough that a recipe costs a few hundred tokens instead of a few thousand.

Works with any MCP client that speaks stdio: Claude Code, Claude Desktop, Cursor, Windsurf, Zed.

Install

No clone or virtualenv needed — uvx fetches it on demand.

{
  "command": "uvx",
  "args": ["mcp-mealie"],
  "env": {
    "MEALIE_URL": "https://mealie.example.com",
    "MEALIE_API_TOKEN": "your-token"
  }
}

Create the token in Mealie under Settings → API Tokens.

Claude Code

claude mcp add mealie \
  --env MEALIE_URL=https://mealie.example.com \
  --env MEALIE_API_TOKEN=your-token \
  -- uvx mcp-mealie

Claude Desktop, Cursor, Windsurf, Zed

Add the JSON block above under mcpServers in the client's config file.

Related MCP server: Mealie MCP Server

Configuration

Variable

Required

Default

Purpose

MEALIE_URL

yes

Base URL of your Mealie instance

MEALIE_API_TOKEN

yes

Long-lived API token

MEALIE_READ_ONLY

no

false

Hide every write tool

MEALIE_VERIFY_SSL

no

true

Set false for self-signed certs (homelab only)

MEALIE_LOG_LEVEL

no

INFO

Log verbosity, to stderr

Booleans accept 1/true/yes/on and their negations. An unrecognized value is a startup error rather than a silent false.

Requires Mealie 2.0 or newer. The server checks at startup and refuses to run against 1.x, which has no /api/households endpoints.

Tools

Recipessearch_recipes, get_recipe, suggest_recipes, create_recipe, update_recipe, delete_recipe, import_recipe_from_url

Meal plansget_meal_plan, get_todays_meals, add_meal_plan_entry, delete_meal_plan_entry, random_meal_plan

Cookbookslist_cookbooks, get_cookbook_recipes, create_cookbook, delete_cookbook

Otherparse_ingredients, manage_taxonomy

With MEALIE_READ_ONLY=true, nine read tools remain.

Things it does for you

  • Ingredients as plain text. create_recipe accepts ["2 cups flour", "pinch of salt"] and runs them through Mealie's parser. Structured objects work too; the two can be mixed.

  • Tags by name. Mealie's API needs tag objects with a name and a slug. Pass ["Vegan"] and the server resolves or creates it, then tells you which ones were new.

  • Updates don't wipe tags. Mealie's PATCH replaces list fields wholesale. update_recipe merges tags and categories by default; pass replace_tags to overwrite.

  • A random week is one call. Mealie's random endpoint fills one day per request. random_meal_plan loops for you, capped at 14 days.

Safety

  • MEALIE_READ_ONLY=true prevents write tools from being registered at all.

  • delete_recipe requires the slug twice: delete_recipe(slug, confirm_slug).

  • Write requests are never retried — Mealie has no idempotency key, and a retried create would duplicate the recipe.

Bundled skill

skills/mealie/SKILL.md covers the workflows the tool list alone doesn't teach: planning a week without repeats, filing an imported recipe, and writing cookbook filters. Copy it into your agent's skills directory, or read it as documentation.

Development

uv venv --python 3.11
uv pip install -e ".[dev]"
uv run pytest

Tests run entirely offline: shape.py against captured fixtures, client.py against mocked HTTP. scripts/smoke.py hits a live instance on demand.

Knuckles-Team/mealie-mcp takes the opposite approach — it generates 247 tools from Mealie's OpenAPI spec, one per endpoint. Use it if you want complete API coverage. Use this one if you want a small tool list and short responses.

License

MIT

mcp-name: io.github.mgummich/mcp-mealie

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (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
    -
    quality
    D
    maintenance
    MCP server for MealMastery AI meal planning that enables users to manage meal plans, recipes, and grocery lists through natural language conversation with AI agents like Claude.
    61
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    A MCP server for Mealie recipe management. Exposes 43 tools and 1 prompt for AI assistants to search, create, and manage recipes, meal plans, shopping lists, categories, and tags.
    65
    6
    MIT

View all related MCP servers

Related MCP Connectors

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

  • MCP server for generating rough-draft project plans from natural-language prompts.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

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/mgummich/mcp-mealie'

If you have feedback or need assistance with the MCP directory API, please join our Discord server