Nutrition Value for LangChain
org.nutritionvalue/nutrition
Nutrition facts for 1.9M foods, plus your food diary, recipes, custom foods and goals.
client:LangChain
transport:streamable-http
tools:29
Install Nutrition Value in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"nutrition": {
"transport": "streamable_http",
"url": "https://api.nutritionvalue.org/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- usage
- search_foods
- lookup_barcode
- get_food
- calculate_nutrition
- get_diary
- get_diary_range
- set_diary_item
- log_diary_meal
- search_saved_items
- list_recipes
- get_recipe
- save_recipe
- set_recipe_item
- list_custom_foods
- get_custom_food
- save_custom_food
- list_favorites
- save_favorite
- get_goals
- set_goal
- review_diary_removal
- review_favorite_removal
- review_recipe_remove