MCP Server for National Park Services Data

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.


国家公园管理局数据的 MCP 服务器

此 MCP 服务器提供了一个用于检索国家公园管理局 (NPS) 数据的接口。它允许用户:

  • 检索美国某个州的国家公园列表。
  • 获取有关特定国家公园的详细信息。

它使用国家公园管理局 API 来获取数据。

要求

设置

  1. 克隆此存储库:
    git clone <repository-url> cd <repository-folder>
  2. 安装依赖项:
    npm install
  3. 在根目录中创建一个.env文件并添加您的 NPS API 密钥:
    API_KEY=your_nps_api_key_here

运行服务器

要启动 MCP 服务器:

npm run build node ./build/server.js

使用 Claude Desktop:

  1. 将此 MCP 服务器添加到claude_desktop_config.json
{ "mcpServers": { "nps": { "command": "node", "args": [ "/<Path to Server>/build/index.js" ], "env": { "API_KEY": "Your NPS API Key" } } } }
  1. 启动或重新启动 Claude Desktop
  2. 通过单击 Claude 聊天窗口底部的工具图标,确保您的 MCP 服务器已被识别并正在运行。
  3. 使用 Claude 的界面查询国家公园服务数据。

API 端点

按州获取国家公园列表

工具名称: 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.
-
security - not tested
F
license - not found
-
quality - not tested

使用 NPS API 方便检索国家公园服务数据,允许用户按州列出国家公园并访问有关特定公园的详细信息。

  1. Requirements
    1. Setup
      1. Running the Server
        1. API Endpoints
          1. Fetch List of National Parks by State
          2. Fetch Details of a National Park
        2. Prompts
          1. Retrieve Parks in a State
          2. Get Park Details
        ID: vl0vgiu3yc