2 v0.2.0 更新于 2026-10-25
fatsecret-mcp MCP Server
Unofficial, self-hosted MCP server for logging food into a FatSecret food diary through Claude.
适用客户端
本地客户端
Claude Desktop、Claude Code、Cursor、Cline 等支持本地 MCP 的客户端
安装配置
本地运行(pypi)
{
"mcpServers": {
"fatsecret-mcp-7887ae": {
"command": "uvx",
"args": [
"fatsecret-mcp"
]
}
}
}将上方 JSON 加入 MCP 客户端配置(如 Claude Desktop 的 claude_desktop_config.json 或项目的 .mcp.json)即可接入;远程接入按客户端要求填写 URL 与鉴权头。
提供的工具 接入后 Agent 可调用这 5 个工具
search_foods
在 FatSecret 目录中搜索可记录的食物及其份量信息。
draft_entries
根据描述或照片起草食物日记条目但不实际写入。
confirm_draft
将用户已批准的草稿条目写入 FatSecret 日记。
get_diary_day
读取某一天日记的总量及剩余的卡路里和宏量营养素目标。
get_period_summary
读取最多31天的每日总量汇总。