mcpField
S
Spoonacular

Spoonacular

远程服务
pipeworx.io健康医疗05 周前更新

关于 Spoonacular

Spoonacular 是提供食谱、食材、营养和膳食规划数据的 MCP 服务,也支持产品搜索、葡萄酒推荐和单位换算。

主要功能

  1. 01搜索并查看食谱
  2. 02获取营养与食材信息
  3. 03生成每日或每周膳食计划
  4. 04搜索食品产品和食材
  5. 05获取葡萄酒搭配与推荐
  6. 06换算食材用量

适用场景

  1. 01查找符合饮食要求的食谱
  2. 02查看食谱的营养与成本
  3. 03制定有热量目标的膳食计划
  4. 04换算食材计量单位

MCP 相关

向 MCP 客户端提供 Spoonacular Food API 工具,涵盖食谱、营养、食材、膳食规划、产品、葡萄酒和换算,可通过 Pipeworx 或本地 stdio 服务使用。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://gateway.pipeworx.io/spoonacular/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

详细介绍

@pipeworx/spoonacular

Spoonacular Food API MCP — 食谱、营养、食材和膳食规划。每天免费 150 次请求。

属于 Pipeworx — 一个将 AI Agent 连接到 1683+ 个实时数据源的 MCP 网关。

身份验证

  • 平台:PLATFORM_SPOONACULAR_KEY。自带密钥:?_apiKey=…。

工具(食谱)

  • recipe_search(query?, cuisine?, excludeCuisine?, diet?, intolerances?, includeIngredients?, excludeIngredients?, type?, instructionsRequired?, fillIngredients?, addRecipeInformation?, addRecipeNutrition?, maxReadyTime?, sort?, sortDirection?, offset?, number?, ...) — 复杂搜索
  • recipe_information(id, includeNutrition?) — 食谱详情
  • recipe_random(tags?, number?) — 随机食谱
  • recipe_summary(id) — 简短摘要
  • recipe_similar(id, number?) — 相似食谱
  • recipe_nutrition(id) — 营养成分明细
  • recipe_ingredients(id) — 食材列表
  • recipe_taste(id, normalize?) — 口味组件
  • recipe_price_breakdown(id) — 成本明细

工具(食材/产品)

  • ingredient_search(query, number?, sort?, intolerances?) — 食材搜索
  • ingredient_information(id, amount?, unit?) — 食材详情
  • product_search(query, minCalories?, maxCalories?, number?, offset?) — 品牌产品搜索
  • product_information(id) — 产品详情

工具(膳食规划 + 实用工具)

  • meal_plan_generate(timeFrame?, targetCalories?, diet?, exclude?) — 生成膳食计划
  • meal_plan_week(targetCalories?, diet?, exclude?) — 7 天计划
  • wine_pairing(food, maxPrice?) — 葡萄酒搭配
  • wine_recommendation(wine, minRating?, price?, number?) — 葡萄酒推荐
  • convert_amount(ingredientName, sourceAmount, sourceUnit, targetUnit) — 单位换算

数据源

https://api.spoonacular.com

快速开始

添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):

{
  "mcpServers": {
    "spoonacular": {
      "url": "https://gateway.pipeworx.io/spoonacular/mcp"
    }
  }
}
此端点实际提供的内容

https://gateway.pipeworx.io/spoonacular/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 都连接到同一个网关和相同的 1683+ 个数据源。唯一的区别是哪些工具包的工具会被直接列出;从任一端点都可以通过 ask_pipeworx 访问所有工具。

没有 MCP 客户端?通过 HTTP 调用

curl -X POST https://gateway.pipeworx.io/v1/tools/recipe_search \
  -H 'Content-Type: application/json' \
  -d '{"query":"pasta carbonara","number":10}'

首次调用无需账号。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/recipe_search。查找工具:使用 {"query":"..."} 向 POST https://gateway.pipeworx.io/v1/tools/search_packs 发送请求。

独立运行(无需网关账号)

此软件包也可以作为本地 stdio MCP 服务运行——无需 Pipeworx 账号,也无需经由网关转发:

{
  "mcpServers": {
    "spoonacular": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-spoonacular"]
    }
  }
}

或者直接运行,以确认它可以启动:

npx -y @pipeworx/mcp-spoonacular

它通过 stdin/stdout 使用 MCP 通信,并响应 initialize/tools/list/tools/call,仅提供此工具包的工具——不包含上述网关连接所添加的任何通用元工具。同一数据源、相同工具,但没有 ask_pipeworx 路由。

使用 ask_pipeworx

无需直接调用工具,你可以用通俗的英语提问—— 这在上方的 pack 端点和完整网关上都适用:

ask_pipeworx({ question: "your question about Spoonacular data" })

网关会选择合适的工具并自动填入参数。

更多信息

许可证

MIT

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。