Skip to main content

mealie-mcp-server

A Model Context Protocol server that connects any MCP client — Claude Desktop, Cursor, or anything else — to a self-hosted Mealie instance.

23 tools, all prefixed mealie_, covering:

  • Recipes — search, read (formatted ingredients/instructions/nutrition), create from scratch or by URL, update, delete
  • Meal plans — today's meals, date-range views, create/delete entries
  • Shopping lists — list, read, create, add items or a whole recipe's ingredients, check off, clear
  • Organization — categories, tags, foods, measurement units

Every tool carries MCP tool annotations (readOnly / write / destructive) so clients can warn you before anything destructive runs.

Requirements

  • Python 3.10+ (or Docker)
  • A running Mealie instance and an API token (Mealie → your profile → User Settings → API Tokens)

Environment variables

Variable Required Example value
MEALIE_URL ✅ https://mealie.example.com
MEALIE_API_KEY ✅ <your-mealie-api-key>

Placeholders only — never commit real values. The server reads them from its environment at startup.

Install

pip

The PyPI distribution is mcp-server-mealie; the command it installs is mealie-mcp-server.

pip install mcp-server-mealie
MEALIE_URL=https://mealie.example.com MEALIE_API_KEY=<token> mealie-mcp-server

uvx (no install)

uvx --from mcp-server-mealie mealie-mcp-server

From source

git clone https://github.com/margosmark/mealie-mcp-server.git
cd mealie-mcp-server
python -m venv .venv && source .venv/bin/activate
pip install -e .

Docker

git clone https://github.com/margosmark/mealie-mcp-server.git
cd mealie-mcp-server
docker build -t mealie-mcp .

The server speaks MCP over stdio — you don't run it by hand; your MCP client starts it (locally or via docker run -i --rm, see below).

Client configuration

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "mealie": {
      "command": "mealie-mcp-server",
      "env": {
        "MEALIE_URL": "https://mealie.example.com",
        "MEALIE_API_KEY": "<your-mealie-api-key>"
      }
    }
  }
}

Using Docker instead of a local Python environment:

{
  "mcpServers": {
    "mealie": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "MEALIE_URL",
        "-e", "MEALIE_API_KEY",
        "mealie-mcp"
      ],
      "env": {
        "MEALIE_URL": "https://mealie.example.com",
        "MEALIE_API_KEY": "<your-mealie-api-key>"
      }
    }
  }
}

(-e NAME with no value forwards the entry from the client's env block into the container.)

Cursor

Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json for global) with the same JSON as above:

{
  "mcpServers": {
    "mealie": {
      "command": "mealie-mcp-server",
      "env": {
        "MEALIE_URL": "https://mealie.example.com",
        "MEALIE_API_KEY": "<your-mealie-api-key>"
      }
    }
  }
}

Restart the client after editing; the mealie_* tools appear in the tool picker.

Sample session

Captured live from this server (mock Mealie backend, real MCP round-trip):

# connected — tools/list
(23 tools) mealie_search_recipes, mealie_get_recipe, mealie_list_recipes, mealie_create_recipe, mealie_create_recipe_from_url, mealie_update_recipe, mealie_delete_recipe, mealie_get_today_mealplan, mealie_list_mealplans, mealie_create_mealplan, mealie_delete_mealplan, mealie_list_shopping_lists, mealie_get_shopping_list, mealie_create_shopping_list, mealie_add_shopping_item, mealie_add_recipe_to_shopping_list, mealie_check_shopping_item, mealie_delete_shopping_item, mealie_clear_checked_items, mealie_list_categories, mealie_list_tags, mealie_list_foods, mealie_list_units

> mealie_search_recipes(query='pasta')
- **Creamy Tuscan Pasta** (slug: creamy-tuscan-pasta) — Dinner
- **Lemon Herb Chicken** (slug: lemon-herb-chicken) — Dinner

> mealie_get_recipe(slug='creamy-tuscan-pasta')
# Creamy Tuscan Pasta

Weeknight pasta with sun-dried tomatoes and spinach.

**Prep:** 00:10:00 | **Cook:** 00:20:00 | **Total:** 00:30:00
**Servings:** 4

**Categories:** Dinner
**Tags:** quick

## Ingredients
- 340 gram penne
- 2 cup spinach fresh

## Instructions
1. Boil pasta until al dente.
2. Simmer sauce, add spinach, toss and serve.

## Nutrition
- calories: 520
- proteinContent: 18

🔗 https://mealie.example.com/g/home/r/creamy-tuscan-pasta

> mealie_get_today_mealplan()
## Today's Meals

- **dinner**: Creamy Tuscan Pasta

> mealie_add_shopping_item(list_id='list-1', food_name='parmesan', quantity=1, unit='block')
Added 1.0 block parmesan to list

Tools (23)

Tool Description Type
mealie_search_recipes Search recipes by name, ingredient, or keyword. The query is required; use mealie_list_recipes to browse all. 🟢 read
mealie_get_recipe Get full recipe details by slug. Includes ingredients, instructions, nutrition, times. 🟢 read
mealie_list_recipes List recipes with pagination. Returns recipe names and slugs. 🟢 read
mealie_create_recipe Create a new recipe. Ingredients and instructions are newline-separated strings. 🟡 write
mealie_create_recipe_from_url Import a recipe by scraping a URL. Returns the created recipe slug. 🟡 write
mealie_update_recipe Update a recipe's name and/or description. 🟡 write
mealie_delete_recipe Delete a recipe by slug. This cannot be undone. 🔴 destructive
mealie_get_today_mealplan Get today's meal plan. 🟢 read
mealie_list_mealplans List meal plans for a date range. Dates in YYYY-MM-DD format. 🟢 read
mealie_create_mealplan Create a meal plan entry. entry_type: breakfast/lunch/dinner/snack. 🟡 write
mealie_delete_mealplan Delete a meal plan entry by ID. 🔴 destructive
mealie_list_shopping_lists List all shopping lists. 🟢 read
mealie_get_shopping_list Get a shopping list with all its items. 🟢 read
mealie_create_shopping_list Create a new shopping list. 🟡 write
mealie_add_shopping_item Add an item to a shopping list. 🟡 write
mealie_add_recipe_to_shopping_list Add all ingredients from a recipe to a shopping list. 🟡 write
mealie_check_shopping_item Mark a shopping list item as checked or unchecked. 🟡 write
mealie_delete_shopping_item Remove an item from a shopping list. 🔴 destructive
mealie_clear_checked_items Remove all checked items from a shopping list. 🔴 destructive
mealie_list_categories List all recipe categories. 🟢 read
mealie_list_tags List all recipe tags. 🟢 read
mealie_list_foods List known food items/ingredients. 🟢 read
mealie_list_units List measurement units. 🟢 read

License

MIT © Mark Arslan

Metadata

Release files for mcp-server-mealie 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-mealie 1.0.1
File Size Uploaded Provenance Actions
mcp_server_mealie-1.0.1.tar.gz 13.4 kB With provenance Details for mcp_server_mealie-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-mealie 1.0.1
File Interpreter ABI Platform Actions
mcp_server_mealie-1.0.1-py3-none-any.whl Python 3 none any Details for mcp_server_mealie-1.0.1-py3-none-any.whl

Total release size: 25.3 kB

Release files / mcp_server_mealie-1.0.1.tar.gz

Download URL mcp_server_mealie-1.0.1.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b4b3c274f3b582bb318fb32554720e5faa9c150a25a96b6d809bfffbbb2a9319
BLAKE2b-256 checksum
How to use checksums
c9b47ee2e3f03d1dfd53dfc45d9411e2fecdc2b57797c10aa7166e10ec192d4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / mcp_server_mealie-1.0.1-py3-none-any.whl

Download URL mcp_server_mealie-1.0.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dfd258fd7ad1483947ae9246df9bf174c7527890abe71399f799850760224b1
BLAKE2b-256 checksum
How to use checksums
14743a21edeb8a2fa8b785a9ff22ef7980ddb766ec53de7dd3931be2a6b5e010
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for mcp-server-mealie 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_server_mealie-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page