Description
This MCP server provides access to the OpenNutrition food database containing 300,000+ food items with comprehensive nutritional data sourced from authoritative public databases (USDA, CNF, FRIDA, AUSNUT). The implementation offers four core tools for searching foods by name with fuzzy matching, browsing paginated food lists, retrieving detailed nutritional information by food ID, and looking up products via EAN-13 barcodes. Built with TypeScript and SQLite for local data processing, it automatically downloads and converts the OpenNutrition dataset during build, ensuring fast response times and privacy by eliminating external API calls while providing AI assistants with reliable access to accurate nutritional data for recipe analysis, dietary planning, and food composition queries.
Installation
git clone https://github.com/deadletterq/mcp-opennutrition Claude Desktop Configuration
Add this configuration to your Claude Desktop config file to enable this MCP server:
Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json
Config file location: %APPDATA%\Claude\claude_desktop_config.json
Config file location: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"opennutrition": {
"command": "node",
"args": [
"path/to/server.js"
]
}
}
}