JUHE API Marketplace
rldiao avatar
MCP Server

Mealie MCP Server

Enables AI assistants to interact with Mealie recipe databases through MCP clients like Claude Desktop.

49
GitHub Stars
3/2/2026
Last Updated
MCP Server Configuration
1{
2 "name": "mealie-mcp-server",
3 "command": "uv",
4 "args": [
5 "--directory",
6 "/path/to/repo/src",
7 "run",
8 "server.py"
9 ],
10 "env": {
11 "MEALIE_BASE_URL": "https://your-mealie-instance.com",
12 "MEALIE_API_KEY": "your-mealie-api-key"
13 }
14}
JSON14 lines
  1. Home
  2. MCP Servers
  3. mealie-mcp-server

README Documentation

MseeP.ai Security Assessment Badge

Mealie MCP Server

A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with your Mealie recipe database through clients like Claude Desktop.

✨ Features

šŸ½ļø Recipe Management

  • CRUD Operations: Create, read, update, patch, duplicate, and delete recipes
  • Advanced Search: Filter by text, categories, tags, and tools with AND/OR logic
  • Image Management: Upload images or scrape from URLs
  • Asset Uploads: Attach documents and files to recipes
  • Metadata Tracking: Mark recipes as made, track last made dates

šŸ›’ Shopping Lists

  • List Management: Create, update, and delete shopping lists
  • Item Operations: Add, update, check off, and remove items
  • Bulk Operations: Create, update, or delete multiple items at once
  • Recipe Integration: Automatically add recipe ingredients to shopping lists

šŸ·ļø Organization

  • Categories: Organize recipes with categories (Breakfast, Dinner, etc.)
  • Tags: Tag recipes for easy filtering (Quick, Healthy, Family Favorite)
  • Advanced Filtering: Search and filter with full pagination support
  • Empty Detection: Find unused categories and tags

šŸ“… Meal Planning

  • Meal Plans: View and manage meal plans
  • Bulk Creation: Add multiple meals at once
  • Today's Menu: Quick access to today's planned meals

šŸš€ Quick Start

Prerequisites

  • Python 3.12+
  • Running Mealie instance with API key
  • Package manager uv

Installation

Option 1: Using fastmcp (Recommended)

Install the server directly with the fastmcp command:

fastmcp install src/server.py \
  --env-var MEALIE_BASE_URL=https://your-mealie-instance.com \
  --env-var MEALIE_API_KEY=your-mealie-api-key
Option 2: Manual Configuration

Add the server to your claude_desktop_config.json:

{
  "mcpServers": {
    "mealie-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/repo/src",
        "run",
        "server.py"
      ],
      "env": {
        "MEALIE_BASE_URL": "https://your-mealie-instance.com",
        "MEALIE_API_KEY": "your-mealie-api-key"
      }
    }
  }
}

Restart Claude Desktop to load the server.

šŸ“– Usage Examples

Recipe Operations

"Search for chicken recipes"
"Create a new recipe for pasta carbonara"
"Duplicate my lasagna recipe"
"Mark the meatloaf recipe as made today"
"Upload an image for the chocolate cake recipe"

Shopping Lists

"Create a shopping list for this week"
"Add eggs and milk to my shopping list"
"Add all ingredients from the lasagna recipe to my shopping list"
"Check off milk on my shopping list"
"Delete all checked items from my shopping list"

Organization

"Show me all my recipe categories"
"Create a new tag called 'Quick Meals'"
"Find all recipes tagged with 'healthy'"
"Show me categories that have no recipes"

Advanced Filtering

"Find recipes that have both 'quick' AND 'healthy' tags"
"Search for breakfast recipes containing 'eggs'"
"Show me all vegetarian dinner recipes"

šŸŽÆ Available Tools

Recipe Tools (13 operations)

  • get_recipes - List/search recipes with advanced filtering
  • get_recipe_detailed - Get complete recipe details
  • get_recipe_concise - Get recipe summary
  • create_recipe - Create new recipe
  • update_recipe - Update recipe (full replacement)
  • patch_recipe - Update specific fields only
  • duplicate_recipe - Clone a recipe
  • mark_recipe_last_made - Update last made timestamp
  • set_recipe_image_from_url - Set image from URL
  • upload_recipe_image_file - Upload image file
  • upload_recipe_asset_file - Upload document/asset
  • delete_recipe - Delete recipe

Shopping List Tools (14 operations)

  • get_shopping_lists - List all shopping lists
  • create_shopping_list - Create new list
  • get_shopping_list - Get list by ID
  • delete_shopping_list - Delete list
  • add_recipe_to_shopping_list - Add recipe ingredients
  • remove_recipe_from_shopping_list - Remove recipe ingredients
  • get_shopping_list_items - List all items
  • get_shopping_list_item - Get item by ID
  • create_shopping_list_item - Create single item
  • create_shopping_list_items_bulk - Create multiple items
  • update_shopping_list_item - Update item (preserves fields)
  • update_shopping_list_items_bulk - Update multiple items
  • delete_shopping_list_item - Delete single item
  • delete_shopping_list_items_bulk - Delete multiple items

Category Tools (7 operations)

  • get_categories - List/search categories
  • get_empty_categories - Find unused categories
  • create_category - Create new category
  • get_category - Get by ID
  • get_category_by_slug - Get by slug
  • update_category - Update category
  • delete_category - Delete category

Tag Tools (7 operations)

  • get_tags - List/search tags
  • get_empty_tags - Find unused tags
  • create_tag - Create new tag
  • get_tag - Get by ID
  • get_tag_by_slug - Get by slug
  • update_tag - Update tag
  • delete_tag - Delete tag

Meal Plan Tools (4 operations)

  • get_all_mealplans - List meal plans
  • create_mealplan - Create meal plan entry
  • create_mealplan_bulk - Create multiple entries
  • get_todays_mealplan - Get today's meals

Total: 45 tools providing comprehensive Mealie API coverage

šŸ”§ Development

Setup

  1. Clone the repository:
git clone <repository-url>
cd mealie-mcp-server
  1. Install dependencies:
uv sync
  1. Configure environment:
cp .env.template .env
# Edit .env with your Mealie instance details
  1. Run MCP inspector for testing:
uv run mcp dev src/server.py

Project Structure

mealie-mcp-server/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ mealie/              # API client mixins
│   │   ā”œā”€ā”€ client.py        # Base HTTP client
│   │   ā”œā”€ā”€ recipe.py        # Recipe operations
│   │   ā”œā”€ā”€ shopping_list.py # Shopping list operations
│   │   ā”œā”€ā”€ categories.py    # Category operations
│   │   ā”œā”€ā”€ tags.py          # Tag operations
│   │   ā”œā”€ā”€ mealplan.py      # Meal plan operations
│   │   └── __init__.py      # MealieFetcher aggregator
│   ā”œā”€ā”€ tools/               # MCP tool definitions
│   │   ā”œā”€ā”€ recipe_tools.py
│   │   ā”œā”€ā”€ shopping_list_tools.py
│   │   ā”œā”€ā”€ categories_tools.py
│   │   ā”œā”€ā”€ tags_tools.py
│   │   ā”œā”€ā”€ mealplan_tools.py
│   │   └── __init__.py
│   ā”œā”€ā”€ models/              # Pydantic models
│   ā”œā”€ā”€ server.py            # MCP server entry point
│   └── prompts.py           # Server prompts
ā”œā”€ā”€ CHANGELOG.md             # Version history
└── README.md

šŸ“š Important Notes

Filtering by Tags/Categories

When filtering recipes, you must use slugs or UUIDs, not display names:

āœ… Correct:

"Get recipes with tags=['quick-meals', 'healthy']"

āŒ Incorrect:

"Get recipes with tags=['Quick Meals', 'Healthy']"

Use get_tags() or get_categories() first to find the correct slugs.

Field Preservation

When updating shopping list items, the server automatically preserves all existing fields. You only need to specify the fields you want to change:

# Only updates 'checked' field, preserves note, quantity, etc.
update_shopping_list_item(item_id="...", checked=True)

šŸ› Known Issues

None currently! All features have been tested end-to-end with Claude Desktop.

šŸ”„ Changelog

See CHANGELOG.md for a detailed list of changes and version history.

šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ™ Credits

  • Based on the original mealie-mcp-server by @rldiao
  • Mealie - The recipe management system
  • FastMCP - The MCP framework

šŸ“ž Support

For issues and questions:

  • Check the CHANGELOG.md for recent updates
  • Review the Mealie API documentation
  • Open an issue on GitHub

šŸ”— Related Links

  • Mealie Documentation
  • MCP Protocol Specification
  • Claude Desktop

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright Ā© 2026 JUHEDATA HK LIMITED - All rights reserved