Skip to main content
ClaudeWave

MCP server for Mealie, the self-hosted recipe manager and meal planner

MCP ServersRegistry oficial0 estrellas0 forksTypeScriptMITActualizado today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 8/19/2026
Install in Claude Code / Claude Desktop
Method: NPX · @ni-c/mealie-mcp
Claude Code CLI
claude mcp add mealie-mcp -- npx -y @ni-c/mealie-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mealie-mcp": {
      "command": "npx",
      "args": ["-y", "@ni-c/mealie-mcp"],
      "env": {
        "MEALIE_URL": "<mealie_url>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
MEALIE_URL
Casos de uso

Resumen de MCP Servers

# mealie-mcp

[![CI](https://img.shields.io/github/actions/workflow/status/ni-c/mealie-mcp/ci.yml?branch=main&label=CI)](https://github.com/ni-c/mealie-mcp/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/%40ni-c%2Fmealie-mcp)](https://www.npmjs.com/package/@ni-c/mealie-mcp)
[![downloads](https://img.shields.io/npm/dm/%40ni-c%2Fmealie-mcp)](https://www.npmjs.com/package/@ni-c/mealie-mcp)
[![container](https://img.shields.io/badge/ghcr.io-mealie--mcp-blue?logo=docker&logoColor=white)](https://github.com/ni-c/mealie-mcp/pkgs/container/mealie-mcp)
[![node](https://img.shields.io/badge/node-%E2%89%A522-brightgreen)](https://nodejs.org)
[![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
[![docs](https://img.shields.io/badge/docs-mealie--mcp.ni--c.de-4f46e5)](https://mealie-mcp.ni-c.de)

A [Model Context Protocol](https://modelcontextprotocol.io) server for
[Mealie](https://mealie.io), the self-hosted recipe manager and meal planner.

It gives a model a curated view of a Mealie instance: search and read recipes with
their ingredients and steps, import new ones from a website, keep tags and
categories tidy, plan meals, build shopping lists from those plans, and record what
was actually cooked.

📖 **[Full documentation at mealie-mcp.ni-c.de](https://mealie-mcp.ni-c.de)**

![Demo](https://mealie-mcp.ni-c.de/demo.gif)

<!-- <picture> is resolved against the colour scheme of the page showing it, so GitHub
     picks the variant that matches its own theme toggle. npm strips <picture> and
     <source> when it sanitises the README and keeps the <img>, which is why that
     fallback brings its own dark card instead of relying on a media query. -->
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://mealie-mcp.ni-c.de/architecture-dark.svg">
  <source media="(prefers-color-scheme: light)" srcset="https://mealie-mcp.ni-c.de/architecture-light.svg">
  <img src="https://mealie-mcp.ni-c.de/architecture.svg" alt="An MCP client speaks stdio to mealie-mcp, which calls the Mealie REST API over HTTPS; Mealie fetches recipe websites server-side, which is why the URL guard refuses private hosts" width="800">
</picture>

Mealie's REST API has 259 operations across 175 paths. This server exposes **52
tools**, chosen so that the common tasks are one call and the dangerous surface is
not reachable at all. Verified against **Mealie v3.22.0**; the source of truth for
every request shape is the `GET /openapi.json` of a running instance, not the
published documentation, which is out of date in several places.

## Requirements

- Node.js 22 or newer
- A Mealie instance and an API token from **Settings → API Tokens**

## Configuration

| Variable                 | Required | Description                                                                 |
| ------------------------ | -------- | --------------------------------------------------------------------------- |
| `MEALIE_URL`             | yes      | Base URL, e.g. `https://mealie.example.com`                                 |
| `MEALIE_API_TOKEN`       | yes      | Token from Settings → API Tokens. It acts as the user who created it.       |
| `MEALIE_READ_ONLY`       | no       | Exactly `true` registers the 17 read tools only                             |
| `MEALIE_ACCEPT_LANGUAGE` | no       | e.g. `de-DE`; localises unit and label names                                |
| `MEALIE_INSECURE_TLS`    | no       | Exactly `true` accepts a self-signed certificate, scoped to this connection |

The two booleans are compared against the literal string `true`, so a typo leaves
them **off** — check the startup line on stderr, which reports the mode in effect.

The token is removed from the process environment once it has been read, so child
processes cannot pick it up out of `/proc/<pid>/environ`.

## Install

Claude Desktop, or any MCP client that takes a JSON config:

```json
{
  "mcpServers": {
    "mealie": {
      "command": "npx",
      "args": ["-y", "@ni-c/mealie-mcp"],
      "env": {
        "MEALIE_URL": "https://mealie.example.com",
        "MEALIE_API_TOKEN": "…"
      }
    }
  }
}
```

```sh
claude mcp add mealie \
  -e MEALIE_URL=https://mealie.example.com \
  -e MEALIE_API_TOKEN=… \
  -- npx -y @ni-c/mealie-mcp
```

Codex (`~/.codex/config.toml`):

```toml
[mcp_servers.mealie]
command = "npx"
args = ["-y", "@ni-c/mealie-mcp"]

[mcp_servers.mealie.env]
MEALIE_URL = "https://mealie.example.com"
MEALIE_API_TOKEN = "…"
```

Or as a container:

```sh
docker run --rm -i \
  -e MEALIE_URL=https://mealie.example.com \
  -e MEALIE_API_TOKEN=… \
  ghcr.io/ni-c/mealie-mcp
```

To poke at the tools interactively:

```sh
npx @modelcontextprotocol/inspector npx -y @ni-c/mealie-mcp
```

## Tools

**Recipes** — `search_recipes`, `get_recipe`, `suggest_recipes`, `create_recipe`,
`update_recipe`, `duplicate_recipe`, `set_recipe_last_made`, `delete_recipe` 🔒

**Import** — `preview_recipe_url` (dry run, saves nothing), `import_recipe_from_url`,
`import_recipe_from_html_or_json`, `import_recipe_from_image`

**Organizing** — `list_organizers`, `create_organizer`, `update_organizer`,
`delete_organizer` 🔒 — each takes `kind: tag | category | tool`

**Ingredients** — `list_foods`, `create_food`, `merge_foods` 🔒, `list_units`,
`create_unit`, `merge_units` 🔒, `parse_ingredients`

**Meal plans** — `list_mealplans`, `get_todays_meals`, `create_mealplan_entry`,
`create_random_meal`, `update_mealplan_entry`, `delete_mealplan_entry` 🔒

**Shopping** — `list_shopping_lists`, `get_shopping_list`, `create_shopping_list`,
`delete_shopping_list` 🔒, `add_shopping_list_items`, `update_shopping_list_items`,
`delete_shopping_list_items` 🔒, `add_recipe_to_shopping_list`,
`remove_recipe_from_shopping_list`

**Cookbooks** — `list_cookbooks`, `get_cookbook`, `create_cookbook`,
`delete_cookbook` 🔒

**Notes and sharing** — `set_recipe_rating`, `add_recipe_comment`,
`delete_recipe_comment` 🔒, `list_recipe_comments`, `list_recipe_timeline`,
`create_timeline_event`, `list_share_tokens`, `create_share_token` 🔒,
`delete_share_token`

**Instance** — `get_about`

🔒 needs a confirmation token: call once to receive one, then again with it.

Recipes can be addressed by slug or by UUID everywhere — Mealie splits its
identifier space between the two, and the tools resolve whichever they are given.

## Not exposed, on purpose

Everything under `/api/admin` (backups, restore, maintenance, user, group and
household management, email, AI provider settings), `/api/users/api-tokens` (a tool
that mints API credentials is privilege-escalation surface), the authentication
routes, user CRUD and passwords, webhooks, event notifications and recipe actions
(all three trigger outbound HTTP from the instance), meal plan rules, migrations,
seeders, invitations, bulk export and ZIP download, and asset and image uploads.

`PUT /api/recipes/{slug}` is not exposed either: it replaces the entire 33-field
recipe object, so a partial update through it silently drops ingredients, steps and
tags. `update_recipe` uses `PATCH`.

## Safety

- **Instance content is untrusted input.** Recipes are routinely scraped from
  arbitrary websites and comments come from other users, so every tool result that
  can contain instance content is prefixed with an explicit marker telling the model
  to treat it as data. This matters after the import too: the text stays in the
  database and comes back through `get_recipe`.
- **The import tools make Mealie fetch, not this server.** URLs are restricted to
  public `http`/`https` addresses; loopback, private-range, link-local and
  `.lan`/`.internal`/`.local` hosts are refused.
- **Confirmation prompts quote no upstream text** — ids, counts and flags only.
- **Responses are bounded**: oversized results drop whole items rather than cutting
  the JSON mid-string, and a response body is never read past 8 MB.
- Redirects are refused so the token cannot be resent to another host.

See [SECURITY.md](SECURITY.md) for the trust model and how to report a
vulnerability.

## Development

```sh
npm install && npm test && npm run build
```

`scripts/verify-live.mjs` exercises all 52 tools against a **throwaway** Mealie
instance; the recipe for setting one up is in [CONTRIBUTING.md](CONTRIBUTING.md).

The architecture diagram and the social card are rendered from
`docs/assets/architecture.source.svg` and `docs/assets/og.json` by
`npm run assets`; CI fails if a rendered copy was edited by hand.

## Releasing

Everything is driven by a tag; there is no manual publish step.

1. Move the `[Unreleased]` section of [CHANGELOG.md](CHANGELOG.md) to the new version
   and date it. The release workflow extracts that section with `awk`, so the
   `## [x.y.z]` heading shape matters.
2. Bump `version` in `package.json`.
3. `npm run lint && npm run build && npm run test:coverage`.
4. Commit, then a **signed annotated** tag:

   ```sh
   git tag -s v0.1.1 -m "v0.1.1"
   git push origin main v0.1.1
   ```

`release.yml` then verifies the tag matches `package.json`, publishes to npm over
**Trusted Publishing** (OIDC — no npm token exists to leak) with provenance, syncs the
version into both `server.json` package entries, publishes to the MCP registry, and
cuts the GitHub release from the changelog section. `ci.yml` pushes the multi-arch
container image to GHCR in parallel.

## License

MIT
mcpmcp-servermeal-planningmealiemodel-context-protocolrecipesselfhostedshopping-listtypescript

Lo que la gente pregunta sobre mealie-mcp

¿Qué es ni-c/mealie-mcp?

+

ni-c/mealie-mcp es mcp servers para el ecosistema de Claude AI. MCP server for Mealie, the self-hosted recipe manager and meal planner Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-08-18.

¿Cómo se instala mealie-mcp?

+

Puedes instalar mealie-mcp clonando el repositorio (https://github.com/ni-c/mealie-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar ni-c/mealie-mcp?

+

Nuestro agente de seguridad ha analizado ni-c/mealie-mcp y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene ni-c/mealie-mcp?

+

ni-c/mealie-mcp es mantenido por ni-c. La última actividad registrada en GitHub es del 2026-08-18, con 0 issues abiertos.

¿Hay alternativas a mealie-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega mealie-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: ni-c/mealie-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ni-c-mealie-mcp)](https://claudewave.com/repo/ni-c-mealie-mcp)
<a href="https://claudewave.com/repo/ni-c-mealie-mcp"><img src="https://claudewave.com/api/badge/ni-c-mealie-mcp" alt="Featured on ClaudeWave: ni-c/mealie-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a mealie-mcp