nutritionix
MCP server from MCP-Forge/nutritionix-mcp-server
claude mcp add --transport stdio mcp-forge-nutritionix-mcp-server uvx nutritionix-mcp-server --app-id YOUR APP ID --app-key YOUR APP KEY \ --env APP_ID="Your Nutritionix App ID" \ --env APP_KEY="Your Nutritionix App Key"
How to use
This MCP server exposes Nutritionix functionality to AI agents via the MCP protocol. It enables natural language tooling to search for foods (including common items and branded products), parse meals into nutritional breakdowns, and estimate calories burned for common exercises. Agents can invoke tools to perform quick food lookups, retrieve detailed nutrition data (calories, macros, vitamins, etc.), and get exercise calorie estimates, all through structured MCP calls. To use it, configure your MCP client (e.g., Claude Desktop) to point at the nutritionix-mcp server, then send tool invocations that request food searches, nutrition facts, or exercise calories. The server handles API requests to Nutritionix behind the scenes and returns structured results suitable for downstream reasoning and response formatting.
How to install
Prerequisites:
- Python 3.11 or newer
- Access to install local Python packages
- Nutritionix API credentials (App ID and App Key)
Installation steps:
-
Ensure Python is installed:
- On macOS/Linux: sudo apt-get install python3.11 python3-venv
- On Windows: install Python 3.11+ from the official installer
-
Install the Nutritionix MCP server package (the server executable should be exposed when the package is installed):
- Install uv (Python package manager) if not already installed: python -m pip install uv
- Install the Nutritionix MCP server package: python -m pip install nutritionix-mcp-server
-
Run the server (with your Nutritionix App ID and App Key): uvx nutritionix-mcp-server --app-id YOUR_APP_ID --app-key YOUR_APP_KEY
-
Optional: Save configuration for your MCP client (e.g., Claude Desktop) using the example in the README and replace placeholders with your actual credentials.
Prerequisites recap:
- Python 3.11+
- uv (or uvx-capable environment) installed
- Nutritionix API credentials
- Access to install Python packages
Additional notes
Notes and tips:
- You can pass APP_ID and APP_KEY as command-line arguments or environment variables (APP_ID, APP_KEY) depending on your deployment setup.
- If you rotate API credentials, update the running server configuration or environment accordingly.
- Ensure network access to Nutritionix API is allowed from the environment running the MCP server.
- In Claude or other MCP clients, use the provided server name (nutritionix-mcp) and supply app credentials as shown in the example config.
- If you run into authentication errors, double-check that the App ID and App Key are correct and have the necessary Nutritionix plan access for the endpoints you query.
- The server can be extended with additional tools (e.g., barcode search, food logging) by contributing to the MCP server project.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP