spoonacular-mcp
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., "@spoonacular-mcp search for vegan dinner recipes"
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.
Spoonacular MCP Server
A Model Context Protocol (MCP) server that provides access to the Spoonacular Food API. This server enables AI assistants to search for recipes, get nutritional information, find ingredients, and more through the MCP protocol.
Features
Recipe Search: Search for recipes by ingredients, diet, cuisine, and other criteria
Recipe Information: Get detailed recipe information including ingredients, instructions, and nutrition
Ingredient Search: Find and explore ingredient information
Nutrition Analysis: Analyze nutrition for ingredient lists
Recipe by Ingredients: Find recipes based on available ingredients
Random Recipes: Get random recipe suggestions with optional filtering
Related MCP server: mcp-spoonacular
Quick Start
Installation
npm install -g spoonacular-mcpSetup
Get a Spoonacular API key (free at https://spoonacular.com/food-api/console#Dashboard)
Set your API key as an environment variable:
# Windows (PowerShell) $env:SPOONACULAR_API_KEY="your_api_key_here" # macOS/Linux export SPOONACULAR_API_KEY="your_api_key_here"
Usage with MCP Clients
Add this configuration to your MCP client (Claude Desktop, etc.):
{
"servers": {
"spoonacular": {
"command": "spoonacular-mcp",
"env": {
"SPOONACULAR_API_KEY": "your_api_key_here"
}
}
}
}Test the Installation
# Set your API key
export SPOONACULAR_API_KEY="your_key_here"
# Test the server
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | spoonacular-mcpAvailable Tools
search_recipes
Search for recipes with various filters.
Parameters:
query(string): Search query for recipesnumber(number, 1-100): Number of results (default: 10)diet(string, optional): Diet type (vegetarian, vegan, gluten-free, etc.)intolerances(string, optional): Comma-separated intolerancesincludeIngredients(string, optional): Required ingredients (comma-separated)excludeIngredients(string, optional): Ingredients to exclude (comma-separated)type(string, optional): Meal type (main course, side dish, dessert, etc.)cuisine(string, optional): Cuisine type (italian, mexican, chinese, etc.)
get_recipe_information
Get detailed information about a specific recipe.
Parameters:
id(number): Recipe IDincludeNutrition(boolean): Include nutrition information (default: false)
search_ingredients
Search for ingredients by name.
Parameters:
query(string): Ingredient search querynumber(number, 1-100): Number of results (default: 10)metaInformation(boolean): Include meta information (default: false)
analyze_nutrition
Analyze nutrition for a list of ingredients.
Parameters:
ingredientList(string): List of ingredients, one per lineservings(number): Number of servings
find_recipes_by_ingredients
Find recipes based on available ingredients.
Parameters:
ingredients(string): Comma-separated list of available ingredientsnumber(number, 1-100): Number of recipes (default: 5)ranking(number, 1-2): Ranking strategy (1=maximize used, 2=minimize missing)
get_random_recipes
Get random recipes with optional filtering.
Parameters:
number(number, 1-100): Number of random recipes (default: 1)tags(string, optional): Comma-separated tags for filtering
Development
To run in development mode:
npm run devTo build:
npm run buildAPI Rate Limits
The free Spoonacular API plan includes:
150 requests per day
Rate limiting applies
Consider upgrading to a paid plan for production use.
License
ISC
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Available Tools
6 toolsanalyze_nutritionC
Analyze nutrition information for a list of ingredients
Inputs: servings (required), ingredientList (required).
find_recipes_by_ingredientsC
Find recipes that can be made with the ingredients you have
Inputs: ingredients (required), number, ranking.
get_random_recipesA
Get random recipes, optionally filtered by tags
Inputs: tags, number.
get_recipe_informationA
Get detailed information about a specific recipe by ID
Inputs: id (required), includeNutrition.
search_ingredientsC
Search for ingredients by name
Inputs: query (required), number, metaInformation.
search_recipesC
Search for recipes based on ingredients, diet, cuisine, and other criteria
Inputs: query (required), diet, type, number, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have distinct purposes: search_recipes vs find_recipes_by_ingredients could be confused, but descriptions clarify the different focus (general search vs. ingredient-based). Overall, the set is well-disambiguated.
All tool names use snake_case and follow a verb_noun pattern, with slight variation: find_recipes_by_ingredients includes a preposition, and get_recipe_information vs get_random_recipes differ slightly in structure. Minor inconsistencies, but overall consistent.
6 tools cover the core functionalities of a recipe service: searching, getting details, ingredient lookup, nutrition analysis, and random recipes. The count is well-scoped without being too few or too many.
The tool set covers essential operations for a recipe discovery and analysis service: search by various criteria, get detailed info, ingredient search, nutrition analysis, and random selection. There are no obvious gaps for its intended domain.
Maintenance
Related MCP Connectors
Recipe search, ingredient matching, nutrition filters and a private cookbook for any AI agent.
Search, save, organize, cook, and share recipes with any AI assistant.
Search structured recipes, scale servings, match pantry ingredients, and build shopping lists.
Persistent food journal for AI assistants. Log meals, save recipes, plan meals and track nutrition.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables querying food nutritional information, discovering recipes by ingredients or diet type, getting ingredient substitutions, and receiving personalized food recommendations based on mood and season.ISC
- AlicenseNot gradedqualityCmaintenanceProvides access to the Spoonacular food API for recipes, nutrition, ingredients, and meal plans.282 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to search recipes, compose nutritionally balanced meals, optimize weekly meal plans based on macro targets for family members, and generate consolidated grocery lists from a personal recipe database.-
- AlicenseBqualityBmaintenanceEnables AI assistants to search foods and recipes, track diet, manage weight, and log exercise using the FatSecret Platform API.44141 npm11MIT