Mealie MCP Server
v0.6.0MCP server for Mealie, the self-hosted recipe manager and meal planner
Values you need
| Variable | What it is | |
|---|---|---|
MEALIE_URL | required | Base URL of the Mealie instance, e.g. https://mealie.example.com |
MEALIE_API_TOKEN | required secret | API token created in Mealie under Settings → API Tokens |
MEALIE_READ_ONLY | optional | Exactly 'true' registers only the 18 read tools |
MEALIE_ACCEPT_LANGUAGE | optional | Accept-Language header, e.g. de-DE; localises unit and label names |
MEALIE_INSECURE_TLS | optional | Exactly 'true' accepts a self-signed certificate, scoped to this connection |
MEALIE_ALLOW_TOOLS | optional | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
MEALIE_DENY_TOOLS | optional | Comma-separated tool names or list_* prefixes to remove from whatever MEALIE_ALLOW_TOOLS left |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mealie-mcp -e 'MEALIE_API_TOKEN=<MEALIE_API_TOKEN>' -e 'MEALIE_URL=<MEALIE_URL>' -- npx -y @ni-c/mealie-mcp@0.6.0Add to
claude_desktop_config.json{
"mcpServers": {
"mealie-mcp": {
"args": [
"-y",
"@ni-c/mealie-mcp@0.6.0"
],
"command": "npx",
"env": {
"MEALIE_API_TOKEN": "<MEALIE_API_TOKEN>",
"MEALIE_URL": "<MEALIE_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mealie-mcp": {
"args": [
"-y",
"@ni-c/mealie-mcp@0.6.0"
],
"command": "npx",
"env": {
"MEALIE_API_TOKEN": "<MEALIE_API_TOKEN>",
"MEALIE_URL": "<MEALIE_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "MEALIE_API_TOKEN",
"id": "mealie-api-token",
"password": true,
"type": "promptString"
},
{
"description": "MEALIE_URL",
"id": "mealie-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"mealie-mcp": {
"args": [
"-y",
"@ni-c/mealie-mcp@0.6.0"
],
"command": "npx",
"env": {
"MEALIE_API_TOKEN": "${input:mealie-api-token}",
"MEALIE_URL": "${input:mealie-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mealie-mcp]
command = "npx"
args = ["-y", "@ni-c/mealie-mcp@0.6.0"]
env = { "MEALIE_API_TOKEN" = "<MEALIE_API_TOKEN>", "MEALIE_URL" = "<MEALIE_URL>" }Docker
Requires Docker
Run in a terminal
claude mcp add mealie-mcp -e 'MEALIE_API_TOKEN=<MEALIE_API_TOKEN>' -e 'MEALIE_URL=<MEALIE_URL>' -- docker run -i --rm -e MEALIE_API_TOKEN -e MEALIE_URL ghcr.io/ni-c/mealie-mcp:0.6.0Add to
claude_desktop_config.json{
"mcpServers": {
"mealie-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"MEALIE_API_TOKEN",
"-e",
"MEALIE_URL",
"ghcr.io/ni-c/mealie-mcp:0.6.0"
],
"command": "docker",
"env": {
"MEALIE_API_TOKEN": "<MEALIE_API_TOKEN>",
"MEALIE_URL": "<MEALIE_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mealie-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"MEALIE_API_TOKEN",
"-e",
"MEALIE_URL",
"ghcr.io/ni-c/mealie-mcp:0.6.0"
],
"command": "docker",
"env": {
"MEALIE_API_TOKEN": "<MEALIE_API_TOKEN>",
"MEALIE_URL": "<MEALIE_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "MEALIE_API_TOKEN",
"id": "mealie-api-token",
"password": true,
"type": "promptString"
},
{
"description": "MEALIE_URL",
"id": "mealie-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"mealie-mcp": {
"args": [
"run",
"-i",
"--rm",
"-e",
"MEALIE_API_TOKEN",
"-e",
"MEALIE_URL",
"ghcr.io/ni-c/mealie-mcp:0.6.0"
],
"command": "docker",
"env": {
"MEALIE_API_TOKEN": "${input:mealie-api-token}",
"MEALIE_URL": "${input:mealie-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mealie-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "MEALIE_API_TOKEN", "-e", "MEALIE_URL", "ghcr.io/ni-c/mealie-mcp:0.6.0"]
env = { "MEALIE_API_TOKEN" = "<MEALIE_API_TOKEN>", "MEALIE_URL" = "<MEALIE_URL>" }For AI agents
- Ask the user for: MEALIE_URL, MEALIE_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_about, search_recipes, get_recipe, suggest_recipes, list_recipe_comments, list_recipe_timeline, list_organizers, list_foods, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json