Skip to main content
Glama
Mealie MCP Server

Mealie MCP Server

Mealie MCP Server

A Model Context Protocol (MCP) server that connects your AI assistant to your Mealie self-hosted recipe manager.

Once connected, you can ask Claude things like:

  • "What recipes do I have with pasta?"

  • "Show me all my chicken recipes"

  • "Import this recipe from the URL: ..."

  • "What recipes use cream cheese?"

Prerequisites

  • Node.js 18 or later

  • A running Mealie instance (v1.0+ recommended)

  • A Mealie API key (see below)

Related MCP server: Mealie MCP Server

Getting Your Mealie API Key

  1. Open your Mealie instance in a browser

  2. Click your profile icon → Profile

  3. Scroll to the API Tokens section

  4. Click Create API Token, give it a name (e.g. claude), and click Generate

  5. Copy the token immediately — it won't be shown again

Installation

No installation required — run directly with npx:

npx @schaferandrew/mealie-mcp-server

Or install globally if you prefer:

npm install -g @schaferandrew/mealie-mcp-server

Claude Desktop Setup

Add the server to your Claude Desktop config file:

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "mealie": {
      "command": "npx",
      "args": ["-y", "@schaferandrew/mealie-mcp-server"],
      "env": {
        "MEALIE_URL": "http://your-mealie-instance:9000",
        "MEALIE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Restart Claude Desktop — you should see the Mealie tools available in Claude.

Claude Code Setup

claude mcp add mealie -- npx -y @schaferandrew/mealie-mcp-server \
  -e MEALIE_URL=http://your-mealie-instance:9000 \
  -e MEALIE_API_KEY=your-api-key-here

Add --scope global to make it available in all projects.

Available Tools

Tool

Description

search_recipes

Search recipes by name or keyword.Example: search_recipes pasta

get_recipe

Get full recipe details including ingredients & instructions.Example: get_recipe "Spaghetti Carbonara"

list_recipes

List all recipes, optionally filtered by tag or category.Example: list_recipes tag=vegetarian

add_recipe_from_url

Import a recipe by scraping a URL.Example: add_recipe_from_url https://example.com/recipe

search_by_ingredient

Find recipes containing a specific ingredient.Example: search_by_ingredient chicken

Configuration

Environment Variable

Required

Description

MEALIE_URL

Yes

Base URL of your Mealie instance (e.g. http://localhost:9000)

MEALIE_API_KEY

Yes

API token generated in your Mealie profile

Security Notes

  • API keys are never logged — credentials are redacted from all error messages

  • Never hardcode credentials; use environment variables

  • .env is gitignored — .env.example is safe to commit

Development

Clone the repo and install dependencies:

git clone https://github.com/schaferandrew/mealie-mcp-server.git
cd mealie-mcp-server
npm install
npm run build

Test your Mealie connection:

MEALIE_URL=http://your-instance MEALIE_API_KEY=your-key npm run test-connection

Releasing a New Version

Releases are published to npm automatically when a GitHub Release is published.

Step 1 — bump the version and open a PR:

# Pick one based on the nature of your changes:
npm version patch --no-git-tag-version   # 0.1.0 → 0.1.1  (bug fixes)
npm version minor --no-git-tag-version   # 0.1.0 → 0.2.0  (new features)
npm version major --no-git-tag-version   # 0.1.0 → 1.0.0  (breaking changes)

VERSION=$(node -p "require('./package.json').version")

git checkout -b release/v$VERSION
git add package.json package-lock.json
git commit -m "chore: bump version to $VERSION"
git push -u origin release/v$VERSION
gh pr create --title "chore: release v$VERSION" --body "Version bump to v$VERSION." --base main

Step 2 — after the PR is merged, create the GitHub Release:

# Make sure you're on main with the latest changes
git checkout main && git pull origin main

VERSION=$(node -p "require('./package.json').version")

gh release create "v$VERSION" \
  --title "v$VERSION" \
  --generate-notes

GitHub Actions will publish to npm automatically.

Note: NPM_TOKEN must be set in your repo under Settings → Secrets and variables → Actions. Requires the GitHub CLI (gh).

License

MIT

Available Tools

5 tools
add_recipe_from_urlA

Import a recipe into Mealie by scraping a URL. Mealie will automatically extract the recipe name, ingredients, instructions, and metadata from the page. Works best with sites that use structured recipe data (most major recipe sites).

Inputs: url (required), includeTags, includeCategories.

get_recipeA

Get complete details for a specific recipe including ingredients, step-by-step instructions, nutrition information, notes, and tags. Use the recipe ID or slug from search results.

Inputs: recipe_id (required).

list_recipesA

List all recipes in Mealie, optionally filtered by tags or categories. Supports pagination for large recipe collections.

Inputs: tags, limit, offset, categories.

search_by_ingredientA

Find recipes that contain a specific ingredient. Searches through recipe names, descriptions, and ingredient lists.

Inputs: ingredient (required), limit.

search_recipesA

Search for recipes in Mealie by name, keyword, or description. Optionally filter by tags. Returns a list of matching recipes with basic info.

Inputs: query (required), tags, limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation4/5

    search_recipes, list_recipes, and search_by_ingredient have some conceptual overlap, especially since search_by_ingredient also searches names and descriptions, which duplicates part of search_recipes. Descriptions do clarify intent (keyword vs. browse-all vs. ingredient-driven), so an agent can mostly pick correctly, but the boundary between the two search tools is soft.

    Naming Consistency5/5

    All names follow a clean verb_noun snake_case pattern: search_recipes, get_recipe, list_recipes, search_by_ingredient, add_recipe_from_url. The one longer name (add_recipe_from_url) is still a predictable verb_noun extension, and the noun is consistently 'recipe'.

    Tool Count4/5

    Five tools is a reasonable, well-scoped set for a recipe server and each tool earns its place. It sits slightly on the thin side given that Mealie covers meal planning, shopping lists, and full recipe management, but nothing feels redundant.

    Completeness3/5

    Read and import paths are covered (search, browse, get, URL import), but there is no update_recipe, no delete_recipe, and no manual recipe creation or tag/category management. Agents can consume recipes but cannot maintain or clean up the collection, leaving notable lifecycle gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Mealie for recipe management, meal planning, and shopping list operations. Supports searching and managing recipes, creating meal plans, and generating shopping lists from recipes or meal plans.
      9
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to manage recipes, meal plans, and shopping lists in Mealie through natural language, supporting CRUD operations and URL-based recipe imports.
      27
      8
      MIT
    • A
      license
      D
      quality
      B
      maintenance
      Provides complete access to Mealie's API for managing recipes, meal plans, shopping lists, households, and more via natural language from AI assistants.
      285
      22
      MIT