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 (文字列) – 2文字の米国州コード

応答例:

[ { "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