Logo vun Mealie MCP 服务器

Mealie MCP 服务器

Communautéit
rldiao

MCP server that exposes Mealie APIs to MCP clients such as Claude Desktop

Editeurrldiao
Repositorymealie-mcp-server
SproochPython
Forks
74
Stären
141
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Mealie MCP 服务器 stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    141 Stären an 74 Forks aus dem verlinkte Repository.

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:

bash
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: Using uvx

Run directly from GitHub without cloning:

json
{
  "mcpServers": {
    "mealie-mcp-server": {
      "command": "uvx",
      "args": ["git+https://github.com/rldiao/mealie-mcp-server"],
      "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 (flat or structured ingredients)
  • create_recipe_full - Create a recipe with full content in one call
  • 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

Food Tools (5 operations)

  • get_foods - List/search foods (resolve ids for structured ingredients)
  • create_food - Create a new food
  • get_food - Get by ID
  • update_food - Update food
  • delete_food - Delete food

Unit Tools (5 operations)

  • get_units - List/search units
  • create_unit - Create a new unit
  • get_unit - Get by ID
  • update_unit - Update unit
  • delete_unit - Delete unit

Recipe Tool Tools (6 operations)

  • get_tools - List/search recipe tools (includes householdsWithTool)
  • create_tool - Create a new tool
  • get_tool - Get by ID
  • get_tool_by_slug - Get by slug
  • update_tool - Update tool
  • delete_tool - Delete tool

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: 62 tools providing comprehensive Mealie API coverage

🔧 Development

Setup

  1. Clone the repository:
bash
git clone <repository-url>
cd mealie-mcp-server
  1. Install dependencies:
bash
uv sync
  1. Configure environment:
bash
cp .env.template .env
# Edit .env with your Mealie instance details
  1. Run MCP inspector for testing:
bash
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

  • 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

Installatioun

TypingMind
{
  "mcpServers": {
    "mealie-mcp-server": {
      "command": "fastmcp",
      "args": [
        "install",
        "src/server.py",
        "--env-var",
        "MEALIE_BASE_URL={{config.MEALIE_BASE_URL}}",
        "--env-var",
        "MEALIE_API_KEY={{config.MEALIE_API_KEY}}"
      ],
      "env": {
        "MEALIE_BASE_URL": "<MEALIE_BASE_URL>",
        "MEALIE_API_KEY": "<MEALIE_API_KEY>"
      }
    }
  }
}

Mealie MCP 服务器 MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Mealie MCP 服务器 verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Mealie MCP 服务器 als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Mealie MCP 服务器 an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "mealie-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Mealie MCP 服务器. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Mealie MCP 服务器.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Mealie MCP 服务器?
Mealie MCP 服务器
Jo. Ech hunn et gelies.
Dat hunn ech mat Mealie MCP 服务器 fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Mealie MCP 服务器 benotzt?

Mealie MCP 服务器 ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Mealie MCP 服务器 MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Mealie MCP 服务器 mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Mealie MCP 服务器 MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Mealie MCP 服务器 verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Mealie MCP 服务器 MCP mat TypingMind?

Mealie MCP 服务器 leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Mealie MCP 服务器 MCP an TypingMind zur Verfügung?

Mealie MCP 服务器 stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Mealie MCP 服务器 MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Mealie MCP 服务器 eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇