MCP Server for National Park Services Data

MCP Server for National Park Services Data

By amysatterlee GitHub

Model Context Protocol (MCP) Server for National Park Services data

nps national-parks
Overview

what is MCP Server for National Park Services Data?

The MCP Server provides an interface to retrieve data from the National Park Services (NPS), allowing users to access information about national parks across the United States.

how to use MCP Server?

To use the MCP Server, clone the repository, install the necessary dependencies, set up your NPS API key in a .env file, and run the server using Node.js.

key features of MCP Server?

  • Retrieve a list of national parks by state.
  • Fetch detailed information about specific national parks.
  • Utilizes the National Park Service API for data retrieval.

use cases of MCP Server?

  1. Finding national parks in a specific U.S. state.
  2. Obtaining detailed descriptions and information about individual national parks.
  3. Integrating national park data into applications or services.

FAQ from MCP Server?

  • Do I need an API key to use the MCP Server?

Yes, a valid NPS API key is required to access the data.

  • What technologies are required to run the MCP Server?

You need Node.js (v18+ recommended) and npm or yarn to run the server.

  • Can I run the MCP Server on any operating system?

Yes, as long as you have Node.js installed, you can run it on any OS.

Content

MCP Server for National Park Services Data

This MCP Server provides an interface to retrieve National Park Services (NPS) data. It allows users to:

  • Retrieve a list of national parks in a given U.S. state.
  • Fetch detailed information about a specific national park.

It uses the National Park Service API to obtain the data.

Requirements

Setup

  1. Clone this repository:

    git clone <repository-url>
    cd <repository-folder>
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file in the root directory and add your NPS API key:

    API_KEY=your_nps_api_key_here
    

Running the Server

To start the MCP server:

npm run build
node ./build/server.js

Using Claude Desktop:

  1. Add this MCP Server to the claude_desktop_config.json
{
    "mcpServers": {
        "nps": {
            "command": "node",
            "args": [
                "/<Path to Server>/build/index.js"
            ],
            "env": {
                "API_KEY": "Your NPS API Key"
            }
        }
    }
}
  1. Start or Restart Claude Desktop
  2. Ensure your MCP server is recognized and running by clicking on the tools icon at the bottom of Claude's chat window.
  3. Use Claude's interface to query National Park Services data.

API Endpoints

Fetch List of National Parks by State

Tool Name: park-list

Parameters:

  • stateCode (string) – Two-letter U.S. state code

Response Example:

[
  {
    "fullName": "Yellowstone National Park",
    "description": "First national park in the U.S.",
    "parkCode": "yell"
  }
]

Fetch Details of a National Park

Tool Name: park-details

Parameters:

  • parkCode (string) – National Park lookup code

Response Example:

[
  {
    "fullName": "Yellowstone National Park",
    "description": "First national park in the U.S.",
    "states": "WY, MT, ID"
  }
]

Prompts

Retrieve Parks in a State

Prompt Name: parks-by-state

Parameters:

  • stateCode (string)

Example:

What National Parks are in the state of CA?

Get Park Details

Prompt Name: details-for-park

Parameters:

  • park (string)

Example:

Give me details about Yellowstone National Park.
No tools information available.
No content found.