home / mcp / foodguidesouschef mcp server
Provides a nutrition analysis platform by linking Canada’s Food Guide with CNF, DRI, and EER data to drive recipe and nutrition insights.
Configuration
View docs{
"mcpServers": {
"aryan-jhaveri-mcp-foodguidecanada": {
"command": "/opt/homebrew/bin/python3",
"args": [
"path/to/mcp-foodguidecanada/src/server.py"
]
}
}
}You can run a focused nutrition analysis MCP server that integrates Canada's Food Guide with Health Canada's CNF, DRI, and EER data. This server exposes 42+ specialized tools across six categories to help you discover recipes, analyze nutrition, manage sessions, and perform precise calculations for meal planning.
You interact with the server via an MCP client. Start the local server using the provided runtime command, then configure your MCP client to connect to the local stdio service. Once connected, load recipes, parse and extract ingredients, and run nutrition analyses using the built-in tools. You can search for recipes, fetch full recipe details, manage favorites, scale recipes for different servings, perform bulk calculations, and evaluate your intake against Health Canada’s DRI and CNF data. For example, you can search for Canadian CNF foods, retrieve complete macronutrient profiles, and convert units automatically in supported workflows.
# Prerequisites
python3 --version
pip3 --version
# Prerequisites check if you plan to run locally
# (these steps assume a fresh environment)
# 1) Clone the project repository
git clone https://github.com/Aryan-Jhaveri/mcp-foodguidecanada
cd mcp-foodguidecanada
# 2) Install dependencies
pip3 install -r requirements.txt
# 3) Run the MCP server locally (example using the server.py entry)
# The following is the typical local start command used for MCP clients:
python3 src/server.pyConfiguration notes: a ready-to-use MCP configuration snippet is shown for connecting via a local stdio server. This config runs the server as a local process and points the MCP client to the correct script path. If you are running on macOS with Homebrew Python, you may adjust the Python path accordingly. When starting the server locally, ensure your working directory contains the project root so the server can locate its internal modules and data.
- The CNF database is rate-limited for macronutrient lookups. If you fetch macronutrient data in bulk, consider splitting requests into smaller batches to avoid incomplete results.
- If the server does not respond in your MCP client, verify your Python 3.8+ environment, ensure dependencies are installed, and confirm the server process is running in the expected directory.
Search Canada's Food Guide with advanced filtering by ingredients, meals, appliances, and collections to discover suitable recipes.
Extract complete recipe details from a URL, including ingredients, instructions, prep time, and tips.
Save recipes to persistent SQLite storage for quick access later.
Store parsed recipes in virtual memory sessions for analysis without bloating the database.
Transfer, parse, and prepare a recipe for nutrition analysis in a single workflow.
Scale all ingredients in a recipe to a target number of servings.
Process multiple arithmetic calculations in a single operation for efficiency.
Safe arithmetic evaluator for on-the-fly calculations with variable support.
Compare two or more recipes by servings, complexity, or nutritional content.
Query Health Canada’s CNF database to retrieve complete macronutrient profiles for foods.
Analyze unit matching and conversion for recipes, with conversion recommendations.
Process multiple CNF foods in one operation to reduce tool calls.
Fetch live Energy Expenditure Equations from Health Canada DRI tables.
Create and manage user profiles for repeated EER calculations.
Fetch complete DRI tables for macronutrient recommendations.
Assess nutritional adequacy by comparing intake against Health Canada DRI standards.