npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

spoonacular-mcp

v1.0.0

Published

MCP server for the Spoonacular Food API - search recipes, get nutrition info, and more

Readme

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.

npm version License: ISC

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

Quick Start

Installation

npm install -g spoonacular-mcp

Setup

  1. Get a Spoonacular API key (free at https://spoonacular.com/food-api/console#Dashboard)

  2. 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-mcp

Available Tools

search_recipes

Search for recipes with various filters.

Parameters:

  • query (string): Search query for recipes
  • number (number, 1-100): Number of results (default: 10)
  • diet (string, optional): Diet type (vegetarian, vegan, gluten-free, etc.)
  • intolerances (string, optional): Comma-separated intolerances
  • includeIngredients (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 ID
  • includeNutrition (boolean): Include nutrition information (default: false)

search_ingredients

Search for ingredients by name.

Parameters:

  • query (string): Ingredient search query
  • number (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 line
  • servings (number): Number of servings

find_recipes_by_ingredients

Find recipes based on available ingredients.

Parameters:

  • ingredients (string): Comma-separated list of available ingredients
  • number (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 dev

To build:

npm run build

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