National Park Service

by amysatterlee

2 stars
343 downloads
Not rated
GitHub

About

Integrates with the National Park Service API to provide structured park information for trip planning, exploration, and research applications.

Details

Author
amysatterlee
Repository
amysatterlee/nps_mcp
GitHub stars
2
Downloads
343
Categories
Cloud Service, Infrastructure, AI, Design, Developer Tools, Search, API, Project Management, Frontend, Knowledge Base

- Retrieve list of national parks by U.S. state code
- Fetch detailed information for a specific park by code
- Predefined prompts for natural language queries
- Integrates with Claude Desktop for conversational interaction
- Requires a free NPS API key for authentication

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name National Park Service
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /<Path to Server>/build/index.js
    Environment
    • API_KEY Your NPS API Key

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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

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"
            }
        }
    }
}

2. Start or Restart Claude Desktop
3. Ensure your MCP server is recognized and running by clicking on the tools icon at the bottom of Claude's chat window.
4. Use Claude's interface to query National Park Services data.

park-list

Fetch a list of national parks in a given U.S. state. Parameters: stateCode (string) – Two-letter U.S. state code.

park-details

Fetch detailed information about a specific national park. Parameters: parkCode (string) – National Park lookup code.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "national park service": {
            "env": {
                "API_KEY": "Your NPS API Key"
            },
            "args": [
                "/<Path to Server>/build/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "API_KEY": "Your NPS API Key"
    },
    "args": [
        "/<Path to Server>/build/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "API_KEY": "Your NPS API Key"
    },
    "args": [
        "/<Path to Server>/build/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "API_KEY": "Your NPS API Key"
    },
    "args": [
        "/<Path to Server>/build/index.js"
    ],
    "command": "node"
}

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

- Node.js (v18+ recommended)
- npm or yarn
- A valid NPS API key (available at https://www.nps.gov/subjects/developer/get-started.htm)
- Claude Desktop installed (for running MCP servers)

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"
            }
        }
    }
}

2. Start or Restart Claude Desktop
3. Ensure your MCP server is recognized and running by clicking on the tools icon at the bottom of Claude's chat window.
4. 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 reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.