关于 food-recipe-mcp
food-recipe-mcp 是面向 AI Agent 和 LLM 的食谱语义搜索 MCP 服务,检索 Food.com 的 5 万多条食谱。它结合稠密与稀疏检索、结果融合和交叉编码器重排,并支持英语和挪威语查询。
主要功能
- 01搜索 5 万多条食谱
- 02稠密与 BM25 混合检索
- 03RRF 融合与交叉编码器重排
- 04按饮食、时长和难度筛选
- 05支持英语和挪威语查询
- 06返回营养与评分数据
适用场景
- 01按自然语言查找晚餐食谱
- 02筛选符合饮食限制的菜谱
- 03按烹饪时长和难度选食谱
- 04用挪威语搜索本地菜式
MCP 相关
该服务通过 streamable-http 提供 MCP 接口,开放食谱搜索和 ping 工具,供 MCP 客户端调用。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://recipes.aidatanorge.no/mcpclaude mcp add --transport http aidatanordic-food-recipe https://recipes.aidatanorge.no/mcp{"mcpServers":{"aidatanordic-food-recipe":{"type":"http","url":"https://recipes.aidatanorge.no/mcp"}}}在 Cursor 中打开{"servers":{"aidatanordic-food-recipe":{"type":"http","url":"https://recipes.aidatanorge.no/mcp"}}}在 VS Code 中打开{"mcpServers":{"aidatanordic-food-recipe":{"type":"http","url":"https://recipes.aidatanorge.no/mcp"}}}{"mcpServers":{"aidatanordic-food-recipe":{"serverUrl":"https://recipes.aidatanorge.no/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
2| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| name | string | 否 | 包含在响应中的任意标签,例如 'healthcheck' |
详细介绍
Food Recipe MCP
针对 50,000 多道美食食谱的语义搜索——专为 AI Agent 和大模型打造。采用两阶段混合检索(稠密 + 稀疏 BM25,通过 RRF 融合),并使用交叉编码器重排。支持挪威语和英语自然语言查询。
在线端点: https://recipes.aidatanorge.no/mcp
传输方式: streamable-http
演示: https://recipes.aidatanorge.no/
连接
添加到你的 MCP 客户端配置中:
{
"mcpServers": {
"food-recipe": {
"type": "streamable-http",
"url": "https://recipes.aidatanorge.no/mcp"
}
}
}
或使用 Claude Code:
claude mcp add --transport http food-recipe https://recipes.aidatanorge.no/mcp
快速测试
在浏览器中试用在线演示:
https://recipes.aidatanorge.no/
无需安装或配置。
MCP 工具
search_recipes
对 Food.com 上 50,000 多道食谱进行语义搜索,并采用混合检索和重排。
search_recipes(
query="quick Italian pasta for weeknight dinner",
diet="vegetarian", # vegetarian | vegan | gluten-free | dairy-free | low-carb | keto | paleo
max_minutes=30, # maximum total cooking time in minutes
difficulty="easy", # easy | medium | hard
limit=5 # default 5, max 20
)
# Returns: rerank_score, rrf_score, title, description, total_time, difficulty,
# diet, main_ingredient, servings, ingredients, instructions, nutrition,
# rating, rating_count, source, recipe_id
查询示例:
"Swedish meatballs with gravy""healthy high-protein chicken bowl""easy chocolate cake for beginners""traditional Norwegian kjøttkaker""hurtig pasta med kylling"
搜索流程: 稠密嵌入(intfloat/e5-large-v2,1024d)+ 稀疏 BM25,通过倒数排名融合(RRF)进行融合,再由 mmarco-mMiniLMv2-L12-H384-v1 重排。
ping
ping(name="world")
# Returns: "Hello world! Recipe MCP server is running."
数据
- 来源: Food.com(约 50,000 道食谱)
- 覆盖范围: 丰富的菜系、餐食类型和烹饪风格
- 营养数据: 每份的卡路里、脂肪、蛋白质、碳水化合物、钠、膳食纤维和糖含量
- 评分: 每道食谱的用户评分和评分数量
- 语言: 查询原生支持英语和挪威语
架构
Food.com recipes → Python ingest → Qdrant (recipe_data_v2 collection)
↓
Hybrid search (dense e5-large-v2 + sparse BM25)
↓
RRF fusion + cross-encoder reranking
↓
FastMCP 3.2 → MCP clients / AI agents
技术栈
- 嵌入模型:
intfloat/e5-large-v2(1024d 稠密)+Qdrant/bm25(稀疏) - 重排器:
cross-encoder/mmarco-mMiniLMv2-L12-H384-v1 - 向量数据库: Qdrant(可自托管)
- 服务: 基于 HTTP 的 FastMCP 3.2
- 基础设施: Ubuntu Server 24 LTS、Cloudflare Tunnel
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。