Skip to main content

MCP server for Mealie

Project description

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 on your behalf.

Prerequisites

  • Python 3.14+
  • uv
  • A reachable Mealie instance (self-hosted or otherwise)
  • A Mealie API token: in Mealie, click your avatar → ProfileAPI TokensGenerate. The token inherits the issuing user's permissions, so for automation prefer a dedicated non-admin user.

Setup

uv sync

Configuration

Two environment variables are required:

Variable Purpose
MEALIE_BASE_URL Root URL of your Mealie instance, no trailing path
MEALIE_API_TOKEN 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-mealie

Tools

Diagnostics

Tool Description
get_about Mealie version / health (no auth required)
whoami Current user — confirms the token works

Recipes (full CRUD)

Tool Description
list_recipes Paginated list with optional search and ordering
get_recipe Full recipe by slug (ingredients, steps, tags, etc.)
create_recipe Create an empty recipe by name; returns the new slug
create_recipe_from_url Scrape a recipe from a URL via Mealie's scraper
update_recipe Patch common fields (name, description, times, etc.)
delete_recipe Delete a recipe by slug (permanent)

Development

uv sync
uv run pytest tests/ -x -q
uv run ruff check src/ tests/
uv run pyright src/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_mealie-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_mealie-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_mealie-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_mealie-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_mealie-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a065f5b5ca0ffb59d7ca94ba2abbc308f51949606169b43182d2e4e5155bb433
MD5 a62c1611a3064334badbf422c13e56e7
BLAKE2b-256 6523e7ccd14ecff5c0c5fa2c4d02e8682b9aeef3f038aeaf22e95ca330bd9588

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_mealie-0.1.0.tar.gz:

Publisher: release.yml on obrien-matthew/mcp-mealie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_mealie-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_mealie-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_mealie-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58e9ec31a9656e7ee4f733c704d17455ce1907280321f81cbfa582a22b6d8a2c
MD5 889c3d7ca3783bff43059e4014587c92
BLAKE2b-256 3e549291351efa147e6014855dc2eedc481a10c8e95c9ddf0a221c925b22043e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_mealie-0.1.0-py3-none-any.whl:

Publisher: release.yml on obrien-matthew/mcp-mealie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page