Uses the US National Park Service API to list parks by state and fetch details about a specific park.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add national-park-service --env API_KEY='<API_KEY>' -- node '/<Path to Server>/build/index.js'~/.codex/config.toml
[mcp_servers.national-park-service]
command = "node"
args = ["/<Path to Server>/build/index.js"]
env = { API_KEY = "<API_KEY>" }
# codex mcp add national-park-service --env API_KEY='<API_KEY>' -- node '/<Path to Server>/build/index.js'~/.cursor/mcp.json
{
"mcpServers": {
"national-park-service": {
"command": "node",
"args": [
"/<Path to Server>/build/index.js"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"national-park-service": {
"type": "stdio",
"command": "node",
"args": [
"/<Path to Server>/build/index.js"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"national-park-service": {
"command": "node",
"args": [
"/<Path to Server>/build/index.js"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"national-park-service": {
"command": "node",
"args": [
"/<Path to Server>/build/index.js"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"national-park-service": {
"command": "node",
"args": [
"/<Path to Server>/build/index.js"
],
"env": {
"API_KEY": "<API_KEY>"
}
}
}
}需要的环境变量
API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。