Mealie MCP Server

v0.6.0
io.github.ni-c/mealie-mcp Checked 2 days ago Published 1 month ago

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

Values you need

VariableWhat it is
MEALIE_URLrequired Base URL of the Mealie instance, e.g. https://mealie.example.com
MEALIE_API_TOKENrequired secret API token created in Mealie under Settings → API Tokens
MEALIE_READ_ONLYoptional Exactly 'true' registers only the 18 read tools
MEALIE_ACCEPT_LANGUAGEoptional Accept-Language header, e.g. de-DE; localises unit and label names
MEALIE_INSECURE_TLSoptional Exactly 'true' accepts a self-signed certificate, scoped to this connection
MEALIE_ALLOW_TOOLSoptional Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools)
MEALIE_DENY_TOOLSoptional 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.0
Add 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.0
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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