Mealie MCP Server
Connects to a Mealie instance through its API to search and list recipes, retrieve full recipe details, import recipes by URL, and find recipes by ingredient, tag, or category.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mealie MCP Server find recipes that use cream cheese"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Open your Mealie instance in a browser
Click your profile icon → Profile
Scroll to the API Tokens section
Click Create API Token, give it a name (e.g.
claude), and click GenerateCopy the token immediately — it won't be shown again
Installation
No installation required — run directly with npx:
npx @schaferandrew/mealie-mcp-serverOr install globally if you prefer:
npm install -g @schaferandrew/mealie-mcp-serverClaude 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-hereAdd --scope global to make it available in all projects.
Available Tools
Tool | Description |
| Search recipes by name or keyword.Example: |
| Get full recipe details including ingredients & instructions.Example: |
| List all recipes, optionally filtered by tag or category.Example: |
| Import a recipe by scraping a URL.Example: |
| Find recipes containing a specific ingredient.Example: |
Configuration
Environment Variable | Required | Description |
| Yes | Base URL of your Mealie instance (e.g. |
| 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
.envis gitignored —.env.exampleis 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 buildTest your Mealie connection:
MEALIE_URL=http://your-instance MEALIE_API_KEY=your-key npm run test-connectionReleasing 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 mainStep 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-notesGitHub Actions will publish to npm automatically.
Note:
NPM_TOKENmust be set in your repo under Settings → Secrets and variables → Actions. Requires the GitHub CLI (gh).
License
MIT
Available Tools
5 toolsadd_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
Scored across 5 tools
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.
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'.
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.
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
Related MCP Connectors
Search, save, organize, cook, and share recipes with any AI assistant.
Recipe search, ingredient matching, nutrition filters and a private cookbook for any AI agent.
Your personal cookbook for AI assistants — search, save and adapt recipes, versions and notes.
Household meal planning: recipes, weekly meal plans, and grocery lists for your AI agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.9MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Mealie recipe databases, allowing users to manage and query their recipes through natural language conversations.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to manage recipes, meal plans, and shopping lists in Mealie through natural language, supporting CRUD operations and URL-based recipe imports.278MIT
- AlicenseDqualityBmaintenanceProvides complete access to Mealie's API for managing recipes, meal plans, shopping lists, households, and more via natural language from AI assistants.28522MIT