关于 Edamam
Edamam 是整合 Edamam 营养分析、食谱搜索和食物数据库 API 的 MCP 服务,适用于需要营养数据、食谱结果或食物宏量营养数据的应用。
主要功能
- 01分析食材和食谱营养
- 02按饮食条件筛选食谱
- 03搜索食物及每 100 克宏量营养
适用场景
- 01计算食谱或食材的营养值
- 02按关键词和饮食需求查找食谱
- 03查询食物热量和宏量营养数据
MCP 相关
向 MCP 客户端提供营养分析、食谱搜索和食物搜索工具,可通过 stdio 本地运行,也可经 Pipeworx 网关连接。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/edamam/mcpclaude mcp add --transport http pipeworx-io-edamam https://gateway.pipeworx.io/edamam/mcp{"mcpServers":{"pipeworx-io-edamam":{"type":"http","url":"https://gateway.pipeworx.io/edamam/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-edamam":{"type":"http","url":"https://gateway.pipeworx.io/edamam/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-edamam":{"type":"http","url":"https://gateway.pipeworx.io/edamam/mcp"}}}{"mcpServers":{"pipeworx-io-edamam":{"serverUrl":"https://gateway.pipeworx.io/edamam/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
mcp-edamam
Edamam MCP — 将三个 Edamam API 封装在一个工具包中:- Nutrition Analysis API (nutrition_analysis) - Recipe Search API v2 (search_recipes) - Food Database API v2 (search_food)
属于 Pipeworx — 一个将 AI Agent 连接到 1878+ 个实时数据源的 MCP 网关。这是一个独立的非官方集成,与上游提供商无关联、未经其认可,也未由其发布。
工具
| 工具 | 描述 |
|---|---|
nutrition_analysis | 分析食物食材或菜谱条目的营养成分,并返回卡路里、重量、饮食/健康标签以及宏量营养素明细。示例:nutrition_analysis({ ingredient: "1 cup rice and 10 oz chickpeas" }) |
search_recipes | 按关键词搜索 Edamam 的菜谱数据库,并可选用饮食、健康和菜系筛选条件。返回菜谱的卡路里、用时、份量和食材列表。示例:search_recipes({ query: "chicken curry", health: "gluten-free", limit: 5 }) |
search_food | 在 Edamam 的食物数据库中搜索符合查询条件的食物,并返回每 100 g 的宏量营养素数据(卡路里、蛋白质、脂肪、碳水化合物)。示例:search_food({ query: "cheddar cheese", limit: 10 }) |
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"edamam": {
"url": "https://gateway.pipeworx.io/edamam/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/edamam/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 共享元工具——ask_pipeworx、
discover_tools、search_within、remember/recall 和网关范围内的其他工具。因此,你看到的工具数量会多于此表:目前,单工具包端点除了该工具包自身的工具外,还会列出大约 30 个共享工具。连接的 initialize 响应会说明其确切范围,是当天有效范围的权威信息。
这是有意设计的,并非意外的多路复用。元工具可让限定范围的连接通过 ask_pipeworx(它会跨整个目录进行路由),回答此工具包无法处理的问题,而无需添加第二个 MCP 服务。目前无法挂载不含这些元工具的工具包端点;如果额外的架构消耗的上下文超过了路由带来的价值,请连接一次完整网关,而不是连接多个工具包端点。
你也可以连接完整的 Pipeworx 网关,直接获取所有工具包列出的工具,而不只是此工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都会连接到同一个网关和相同的 1878+ 个数据源。唯一的区别是直接列出哪个工具包的工具;从任一端点都可以通过 ask_pipeworx 访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/nutrition_analysis \
-H 'Content-Type: application/json' \
-d '{"ingredient":"1 large apple"}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/nutrition_analysis。查找工具包:使用 {"query":"..."} 调用 POST https://gateway.pipeworx.io/v1/tools/search_packs。
独立运行(无需网关账户)
此软件包也可作为本地 stdio MCP 服务运行,无需 Pipeworx 账户,也无需通过网关往返:
{
"mcpServers": {
"edamam": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-edamam"]
}
}
}
也可以直接运行以确认其已启动:
npx -y @pipeworx/mcp-edamam
它通过 stdin/stdout 使用 MCP,并响应 initialize/tools/list/tools/call,仅提供此工具包的工具——不包含上方网关连接额外提供的任何共享元工具。来源相同,工具相同,不提供 ask_pipeworx 路由。
搭配 ask_pipeworx 使用
你可以用通俗语言提问,而不必直接调用工具——此功能既适用于上方的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Edamam data" })
网关会选择合适的工具并自动填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。