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 → Profile → API Tokens → Generate. 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a065f5b5ca0ffb59d7ca94ba2abbc308f51949606169b43182d2e4e5155bb433
|
|
| MD5 |
a62c1611a3064334badbf422c13e56e7
|
|
| BLAKE2b-256 |
6523e7ccd14ecff5c0c5fa2c4d02e8682b9aeef3f038aeaf22e95ca330bd9588
|
Provenance
The following attestation bundles were made for mcp_mealie-0.1.0.tar.gz:
Publisher:
release.yml on obrien-matthew/mcp-mealie
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_mealie-0.1.0.tar.gz -
Subject digest:
a065f5b5ca0ffb59d7ca94ba2abbc308f51949606169b43182d2e4e5155bb433 - Sigstore transparency entry: 1429450817
- Sigstore integration time:
-
Permalink:
obrien-matthew/mcp-mealie@555c0de9356eba6afdebd5ae3b07ae9a8e365490 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/obrien-matthew
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@555c0de9356eba6afdebd5ae3b07ae9a8e365490 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58e9ec31a9656e7ee4f733c704d17455ce1907280321f81cbfa582a22b6d8a2c
|
|
| MD5 |
889c3d7ca3783bff43059e4014587c92
|
|
| BLAKE2b-256 |
3e549291351efa147e6014855dc2eedc481a10c8e95c9ddf0a221c925b22043e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_mealie-0.1.0-py3-none-any.whl -
Subject digest:
58e9ec31a9656e7ee4f733c704d17455ce1907280321f81cbfa582a22b6d8a2c - Sigstore transparency entry: 1429450824
- Sigstore integration time:
-
Permalink:
obrien-matthew/mcp-mealie@555c0de9356eba6afdebd5ae3b07ae9a8e365490 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/obrien-matthew
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@555c0de9356eba6afdebd5ae3b07ae9a8e365490 -
Trigger Event:
push
-
Statement type: