国家公园服务数据
STDIO国家公园服务数据检索接口
国家公园服务数据检索接口
This MCP Server provides an interface to retrieve National Park Services (NPS) data. It allows users to:
It uses the National Park Service API to obtain the data.
Clone this repository:
git clone <repository-url> cd <repository-folder>
Install dependencies:
npm install
Create a .env
file in the root directory and add your NPS API key:
API_KEY=your_nps_api_key_here
To start the MCP server:
npm run build node ./build/server.js
Using Claude Desktop:
claude_desktop_config.json
{
"mcpServers": {
"nps": {
"command": "node",
"args": [
"/<Path to Server>/build/index.js"
],
"env": {
"API_KEY": "Your NPS API Key"
}
}
}
}
Tool Name: park-list
Parameters:
stateCode
(string) – Two-letter U.S. state codeResponse Example:
[ { "fullName": "Yellowstone National Park", "description": "First national park in the U.S.", "parkCode": "yell" } ]
Tool Name: park-details
Parameters:
parkCode
(string) – National Park lookup codeResponse Example:
[ { "fullName": "Yellowstone National Park", "description": "First national park in the U.S.", "states": "WY, MT, ID" } ]
Prompt Name: parks-by-state
Parameters:
stateCode
(string)Example:
What National Parks are in the state of CA?
Prompt Name: details-for-park
Parameters:
park
(string)Example:
Give me details about Yellowstone National Park.