-
securityF
license-
qualityA Model Context Protocol server that allows Claude to query the Untappd beer database API for searching beers and retrieving detailed beer information.
Last updated -
JavaScript
这是一个模型上下文协议 (MCP) 服务器,用于公开对美国农业部 FoodData Central API 的API 访问。
该服务器使用 stdio 传输,这意味着它被设计为由 MCP 客户端作为子进程运行。要直接运行它:
对于使用热重载进行开发:
要将此 MCP 服务器与 Claude Desktop 一起使用:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
/path/to/food-data-central-mcp-server
替换为此存储库的绝对路径,并将<INSERT KEY HERE>
替换为您的实际 USDA API 密钥。注意:如果您使用的是 Windows,则可能需要调整 PATH 值以包含您的 npm 全局安装目录。现在,Claude 将能够通过此 MCP 服务器访问食品数据中心 API。您可以让 Claude 搜索食品、获取营养信息或检索详细的食品数据。
food://details
- 通过 ID 获取特定食物的详细信息fdcId
:食品数据中心ID(必填)format
:可选。“abridged”表示元素集的缩写,“full”表示所有元素(默认)nutrients
:可选。最多 25 个营养素编号列表(以逗号分隔)food://foods
- 使用输入的 FDC ID 获取多种食品的详细信息fdcIds
:多个 FDC ID 的列表(必需,以逗号分隔)format
:可选。“abridged”表示元素集的缩写,“full”表示所有元素(默认)nutrients
:可选。最多 25 个营养素编号列表(以逗号分隔)food://list
- 获取食物的分页列表dataType
:可选。按特定数据类型进行过滤(逗号分隔列表)pageSize
:可选。返回的最大结果数(默认值:50)pageNumber
:可选。要检索的页码(默认值:1)sortBy
: 可选。排序依据字段sortOrder
:可选。排序顺序,"asc" 或 "desc"search-foods
- 使用关键词搜索食物query
:查找食物的搜索词(必填)dataType
:可选。按特定数据类型(字符串数组)进行过滤pageSize
:可选。返回的最大结果数(默认值:50)pageNumber
:可选。要检索的页码(默认值:1)sortBy
: 可选。排序依据字段sortOrder
:可选。排序顺序,"asc" 或 "desc"brandOwner
:可选。根据食品品牌所有者筛选结果(仅适用于品牌食品)tradeChannel
:可选。过滤包含指定贸易渠道的食品startDate
:可选。过滤在此日期及之后发布的食物(格式:YYYY-MM-DD)endDate
:可选。过滤在此日期或之前发布的食物(格式:YYYY-MM-DD)使用 MCP 资源获取食物详细信息:
使用 MCP 资源获取多种食物:
使用 MCP 资源获取食物列表:
使用 MCP 工具搜索食物:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
模型上下文协议服务器使 Claude 能够从美国农业部的 FoodData Central 数据库搜索和访问详细的营养信息。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jlfwong/food-data-central-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server