
méprisant
Un serveur qui fournit des informations liées aux repas via des outils MCP
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
相关推荐
🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.
Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.
😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack
Reviews

user_7AKCuRzk
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.

user_Lv1VQBfB
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!

user_hjSy581O
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!

user_rnZieNqh
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!

user_zSt4IXun
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!