国家公园数据助手添加福利群:解决AI开发者的「MCP实战痛点」此MCP服务器提供了一个接口来检索国家公园服务(NPS)的数据。它允许用户:
它使用国家公园服务API来获取数据。
克隆此仓库:
git clone <repository-url>
cd <repository-folder>

安装依赖项:
npm install
在根目录下创建一个.env文件,并添加您的NPS API密钥:
API_KEY=your_nps_api_key_here
要启动MCP服务器:
npm run build node ./build/server.js
使用Claude Desktop:
claude_desktop_config.json中{ "mcpServers": { "nps": { "command": "node", "args": [ "/<Path to Server>/build/index.js" ], "env": { "API_KEY": "Your NPS API Key" } } } }
工具名称: park-list
参数:
stateCode (字符串) – 两字母的美国州代码响应示例:
[
{
"fullName": "Yellowstone National Park",
"description": "First national park in the U.S.",
"parkCode": "yell"
}
]

工具名称: park-details
参数:
parkCode (字符串) – 国家公园查找代码响应示例:
[
{
"fullName": "Yellowstone National Park",
"description": "First national park in the U.S.",
"states": "WY, MT, ID"
}
]

提示名称: parks-by-state
参数:
stateCode (字符串)示例:
What National Parks are in the state of CA?
提示名称: details-for-park
参数:
park (字符串)示例:
Give me details about Yellowstone National Park.