Cover image
Try Now
2025-04-14

Ein Server, der über MCP-Tools Informationen zu Mahlzeiten bietet

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Meal Server

A Python-based MCP server for accessing TheMealDB API.

About TheMealDB

TheMealDB is an open, crowd-sourced database of recipes from around the world. The database includes:

  • Detailed meal recipes with ingredients and instructions
  • Categorization by meal type, region, and ingredients
  • Images and videos for many recipes
  • Free API access for basic features

This MCP server provides a convenient interface to TheMealDB's API through Claude, Clide, or similar AI clients, allowing you to search for and retrieve meal information using natural language.

Features

Tools

  • Get meals by letter, name, ingredient, category, or area
  • Get random meals
  • Save ingredients to a file for shopping lists

Resources

  • Access meal categories (dessert, seafood, vegetarian, etc.)
  • Access cuisine areas/regions (Italian, Mexican, Indian, etc.)
  • Access common ingredients database (575+ ingredients)

Usage

To run the server:

python mealserver.py

MCP Client Integration

To use this server with Claude, Clide, or similar MCP-compatible clients, you need to add it to your client's MCP settings configuration. For example, with Cline (a VS Code extension for Claude), you would add it to your cline_mcp_settings.json file. This file is typically located at:

  • Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Add the following configuration to the mcpServers object in your settings file:

"mealserver": {
  "command": "uv",
  "args": [
    "--directory",
    "C:\\mcp\\mealserver",
    "run",
    "mealserver.py"
  ]
}

Make sure to adjust the directory path to match your installation location.

After adding this configuration, restart your MCP client or reload the window. You should then be able to use the mealserver tools in your conversations with your AI assistant.

MCP Tools

This MCP server provides several tools that allow AI assistants to interact with TheMealDB API. Each tool serves a specific purpose for retrieving or manipulating meal data.

Available Tools

  1. get_meal_by_letter

    • Retrieves meals that start with a specific letter
    • Parameter: letter (a single letter, e.g., "A", "B")
    • Returns formatted meal information including ingredients, instructions, and links
    • Useful for exploring meals alphabetically
  2. get_meal_by_name

    • Searches for meals by name or partial name
    • Parameter: name (e.g., "Arrabiata", "Spicy")
    • Returns detailed information about matching meals
    • Perfect for finding specific recipes or meals containing certain words
  3. get_random_meal

    • Retrieves a random meal from the database
    • No parameters required
    • Returns complete meal details
    • Great for meal inspiration or discovering new recipes
  4. get_meal_by_ingredient

    • Finds meals that use a specific ingredient
    • Parameter: ingredient (e.g., "chicken_breast", "tomatoes")
    • Returns meals containing the specified ingredient
    • Ideal for planning meals based on available ingredients
  5. get_meal_by_multiple_ingredients

    • Finds meals that contain multiple specified ingredients
    • Parameter: ingredients (a list of ingredients, e.g., ["beef", "potatoes"])
    • Returns meals that contain ALL of the specified ingredients
    • Perfect for finding recipes based on ingredients you have on hand
    • Useful for reducing food waste and creative cooking
  6. get_meal_by_category

    • Retrieves meals from a specific category
    • Parameter: category (e.g., "Seafood", "Vegetarian")
    • Returns meals belonging to the specified category
    • Useful for finding meals within dietary preferences or meal types
  7. get_meal_by_area

    • Finds meals from a specific cuisine or region
    • Parameter: area (e.g., "Italian", "Mexican")
    • Returns meals from the specified cuisine
    • Perfect for exploring international cuisines
  8. save_ingredients_to_file

    • Saves a meal's ingredients to a file (can be used as a shopping list)
    • Parameters:
      • meal_name: Name of the meal
      • ingredients_with_measures: List of ingredients with their measurements
      • file_path: Path where to save the ingredients file
    • Creates a formatted text file with all ingredients needed for a recipe
    • Useful for meal planning and grocery shopping

These tools can be used individually or in combination to find recipes, explore cuisines, and plan meals based on various criteria.

MCP Resources

In addition to tools, this MCP server provides several resources that can be accessed directly by AI assistants. Resources are data sources that provide context and information without requiring specific parameters.

Available Resources

  1. Meal Categories (URI: http://localhost/meal_categories)

    • Provides a comprehensive list of all 14 meal categories available in TheMealDB
    • Categories include: Beef, Chicken, Dessert, Lamb, Miscellaneous, Pasta, Pork, Seafood, Side, Starter, Vegan, Vegetarian, Breakfast, and Goat
    • Each category includes a name, description, and thumbnail image URL
  2. Cuisine Areas (URI: http://localhost/cuisine_areas)

    • Provides a list of all 29 cuisine regions/countries available in TheMealDB
    • Regions include: American, British, Canadian, Chinese, Croatian, Dutch, Egyptian, Filipino, French, Greek, Indian, Irish, Italian, Jamaican, Japanese, Kenyan, Malaysian, Mexican, Moroccan, Polish, Portuguese, Russian, Spanish, Thai, Tunisian, Turkish, Ukrainian, Uruguayan, and Vietnamese
  3. Common Ingredients (URI: http://localhost/common_ingredients)

    • Provides access to a database of 575+ common cooking ingredients
    • Each ingredient includes a name and many include detailed descriptions
    • Ingredients span various categories including meats, vegetables, fruits, grains, dairy, herbs, spices, and more

These resources can be used to explore the available meal options, understand different cuisine types, and discover ingredients for recipe planning.

相关推荐

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • rulego
  • ⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.

  • sigoden
  • Erstellen Sie einfach LLM -Tools und -Argarten mit einfachen Bash/JavaScript/Python -Funktionen.

  • hkr04
  • Leichtes C ++ MCP (Modellkontextprotokoll) SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / diskord / telegram / slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Diffy 、 Claude 、 Gemini 、 xai 、 ppio 、 、 ulama 、 lm Studio 、阿里云百炼、火山方舟、 siliconflow 、 qwen 、 mondshot 、 chatglm 、 sillytraven 、 mcp 等 llm 的机器人 / agent | LLM-basierte Instant Messaging Bots-Plattform, unterstützt Zwietracht, Telegramm, Wechat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • On-Premise-Konversationslappen mit konfigurierbaren Behältern

  • modelscope
  • Bauen Sie LLM-Multi-Agent-Anwendungen auf einfachere Weise auf.

  • paulwing
  • Ein Test -Repository, das mit MCP -Dienst erstellt wurde

    Reviews

    2.4 (5)
    Avatar
    user_7AKCuRzk
    2025-04-24

    Mealserver by D-C2211 is a phenomenal application for meal planning and management. It offers an intuitive and user-friendly interface that makes it easy to navigate and use. The variety of recipes and meal ideas is impressive, catering to different tastes and dietary needs. I highly recommend Mealserver for anyone looking to streamline their meal prep process and enjoy delicious, healthy meals.

    Avatar
    user_Lv1VQBfB
    2025-04-24

    Mealserver by D-C2211 has significantly enhanced my meal planning experience. The intuitive interface and efficient functionality make it easy to organize meals and save time in the kitchen. A must-have for anyone seeking to simplify their culinary routines!

    Avatar
    user_hjSy581O
    2025-04-24

    Mealserver by D-C2211 is a game-changer for efficiently managing meal plans. The intuitive interface and seamless integration make it a must-have for anyone looking to simplify meal preparation. The user-friendly experience and welcoming instructions provided at the start are particularly impressive. Highly recommended for its practicality and ease of use!

    Avatar
    user_rnZieNqh
    2025-04-24

    Mealserver by D-C2211 is a game-changer for meal planning enthusiasts. Its user-friendly interface and seamless navigation make it easy to create, manage, and share meal plans. The integration with various services ensures you always have fresh ideas and ingredients at hand. Mealserver is truly a must-have tool for anyone looking to simplify and enhance their meal preparation process!

    Avatar
    user_zSt4IXun
    2025-04-24

    Mealserver by D-C2211 has significantly improved my meal planning and management. Its intuitive interface and seamless integration have made tracking and organizing meals a breeze. With personalized meal suggestions and easy-to-follow recipes, I no longer stress about what to cook. This app is a game-changer for anyone looking to streamline their meal prep process. Highly recommend!