SuperAPIAI Directory

mealie-mcp

github.com · AI images

Access a self-hosted Mealie recipe manager: recipes, website and photo imports, meal plans and shopping lists, with a read-only mode.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

mealie-mcp is a Model Context Protocol (MCP) server for Mealie (a self-hosted recipe manager and meal planner). It enables MCP clients such as Claude Code, Claude Desktop, and Codex to operate on a user's recipe collection, including searching and reading recipes along with their ingredients and steps, importing new recipes from websites, organizing tags and categories, planning meals, building shopping lists from meal plans, and recording what was actually cooked.

In terms of main capabilities, Mealie's REST API has 175 paths and 259 operations, while this server exposes only 54 tools, with the goal of completing common tasks in a single call while not exposing dangerous interfaces. The tools are divided by purpose into: recipes (search, get, recommend, create, update, parse ingredients, copy, set image, record last made time, delete, etc.), import (preview URL dry run, import from URL/HTML or JSON/image), organization (create, read, update, and delete for tags, categories, and tools), ingredients (foods, units, parsing, etc.), meal planning (list, today's meals, create entry, random meal, update, delete), shopping (create, read, update, and delete for shopping lists, add recipe to list, remove recipe from list), cookbooks (list, get, create, delete), notes and sharing (ratings, comments, timeline, share tokens), and instance information (get_about). Among these, dangerous operations that require human confirmation will pop up a dialog via MCP elicitation, which the model cannot answer on the user's behalf; if the client does not support it, it falls back to a two-call confirm_token flow.

In terms of usage, Node.js 22 or later is required, along with a Mealie instance and an API token generated from Mealie Settings -> API Tokens. Configuration can be done through environment variables: MEALIE_ALLOW_TOOLS and MEALIE_DENY_TOOLS accept comma-separated tool names, a trailing * matches an entire tool family, and essential includes 8 tools (search_recipes, get_recipe, import_recipe_from_url, create_recipe, get_todays_meals, create_mealplan_entry, list_shopping_lists, add_recipe_to_shopping_list). If an entry matches no tool, startup aborts and names it, preventing typos from silently hiding tools. MEALIE_READ_ONLY enables read-only mode. Both booleans are compared against the literal string true, so a typo results in them not being enabled; it is recommended to check the startup line on stderr to confirm the effective mode. The server also supports connecting clients that cannot spawn local processes (such as ChatGPT connectors, Claude web, Cursor, LibreChat) via mcp-hub; a single mcp-hub container can serve multiple stdio MCP servers over Streamable HTTP, with OAuth 2.1 login.

Design features include: update_recipe uses PATCH rather than PUT, because Mealie's replace route silently drops fields that are not sent; every tool declares an outputSchema and returns structuredContent alongside a text block, so clients do not need to parse natural language; most tools carry untrusted: true and source: "mealie" fields, because recipes are often scraped from arbitrary websites and comments come from other users; instance content is treated as untrusted input, and tool results are clearly marked to guide the model to treat it as data.

Regarding security restrictions, admin backend routes (backup, restore, maintenance, users, groups, household management, email, AI provider settings), API token creation, auth routes, user CRUD and passwords, webhooks, event notifications, recipe actions (all three trigger outbound HTTP from the instance), meal plan rules, migrations, seeds, invitations, bulk export, ZIP download, and asset uploads other than recipe cover images are not exposed. The import tool lets Mealie rather than this server do the fetching, URLs are restricted to http/https, loopback and link-local hosts are rejected (including cloud metadata endpoints and domains that resolve to them), addresses are compared numerically to catch IPv4-mapped literals such as [::ffff:169.254.169.254], and hostnames are also resolved on a best-effort basis. Since 0.1.2 private LAN addresses are allowed through, but Mealie itself will reject them. Confirmation prompts do not quote upstream text and contain only id, count, and flags. Responses have size limits; oversized results discard the entire entry rather than truncating the JSON, and response body reads do not exceed 8MB; redirects are rejected to prevent tokens from being resent to other hosts.

The project is MIT licensed, author Willi Thiel. The full guide, tool reference, and security notes are at mealie-mcp.ni-c.de (source in the docs/ directory). Integration tests run every tool against a disposable Mealie instance in Docker; configuration instructions are in CONTRIBUTING.md. The release process is entirely tag-driven, with no manual release steps. Note: the material does not provide complete information on specific pricing, billing models, or platform coverage.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools