Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cyanheads avatar

National Parks Mcp Server

  • 1 repo stars
  • Updated July 16, 2026
  • cyanheads/national-parks-mcp-server

Plan US National Park Service trips - parks, alerts, campgrounds, things to do, events.

About

Plan US National Park Service trips - parks, alerts, campgrounds, things to do, events. Exposes 6 MCP tools including | Tool | Description |, |. Plan US National Park Service trips - parks, alerts, campgrounds, things to do, events. <h1>@cyanheads/national-parks-mcp-server</h1> <p><b>Plan US National Park Service trips - find parks, check alerts and closures, find campgrounds, browse things to do and events via the NPS Data API. STDIO or Streamable HTTP.</b> Install via Claude Desktop, Cursor, or any MCP-compatible client using the server manifest from the upstream repository.

  • Plan US National Park Service trips - parks, alerts, campgrounds, things to do, events.
  • 6 registered MCP tools for structured agent access.
  • Category: AI & LLM Tools with build/integrations journey placement.
  • Compatible with Claude Desktop, Cursor, and MCP clients.
  • Upstream manifest: national-parks-mcp-server.

National Parks Mcp Server by the numbers

  • Exposes 6 verified tools (MCP introspection)
  • Data as of Jul 17, 2026 (Skillselion catalog sync)
terminal
claude mcp add --env NPS_API_KEY=YOUR_NPS_API_KEY --env NPS_BASE_URL=YOUR_NPS_BASE_URL --env MCP_LOG_LEVEL=YOUR_MCP_LOG_LEVEL national-parks-mcp-server -- npx -y @cyanheads/national-parks-mcp-server run

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars1
Package@cyanheads/national-parks-mcp-server
TransportSTDIO, HTTP
AuthRequired
Tools6
Last updatedJuly 16, 2026
Repositorycyanheads/national-parks-mcp-server

How do I connect National Parks Mcp Server to my MCP client?

Plan US National Park Service trips - parks, alerts, campgrounds, things to do, events.

Who is it for?

Teams wiring National Parks Mcp Server into Claude, Cursor, or custom agents for ai & llm tools.

Skip if: Skip when you need a non-MCP SDK or hosted API without stdio/SSE transport.

What you get

Working National Parks Mcp Server MCP server with verified tool registration and client config.

By the numbers

  • [object Object]
At a glance

National Parks Mcp Server capabilities & compatibility

Capabilities
national parks mcp server mcp tool registration · national parks mcp server client configuration · national parks mcp server agent workflow integra
Use cases
api development
Runs
Runs locally

Tools 6

Public tool metadata - what this server can do for an agent.

nps_find_parks5 params

Resolve a place name, US state, or free-text query to National Park Service parks — the required first step before the detail tools. Returns each park's parkCode (the key nps_get_park, nps_get_alerts, nps_find_campgrounds, nps_get_activities, and nps_find_events all use) plus a compact trip-planning summary (designation, states, description, coordinates, headline activities, entrance fee, NPS page). Coverage is US NPS sites only — national parks, monuments, historic sites, seashores — not state parks and not Forest Service or BLM land.

  • querystringFree-text search across park names and descriptions (e.g. "yosemite", "civil war", "redwood"). Omit to browse by state. At least one of query or stateCode is recommended; with neither, returns the first page of all ~470 NPS sites.
  • stateCodestringTwo-letter US state/territory code, or comma-separated list (e.g. "CA", "WY,MT,ID"). Filters to parks located in those states. Combine with query to narrow.
  • activitystringFilter to parks offering an activity, matched against each park's activities list (e.g. "hiking", "camping", "stargazing"). Case-insensitive substring match applied locally after fetch — it narrows the returned page, it does not search all ~470 sites by activity. Use nps_get_park to see a park's full activity list.
  • limitintegerMaximum parks to return (1–50). The full set is ~470 sites; narrow with query/stateCode rather than paging through everything.
  • startintegerZero-based offset for pagination within the matched set. Use with limit to page through results.
nps_get_park2 params

Full trip-planning detail for one or more parks by parkCode: description, activities and topics, entrance fees and passes, operating hours by area/season, contacts, directions, a free-text weather overview, representative images, and the NPS page for everything else. Get codes from nps_find_parks. Up to ten codes are fetched in a single request. Use the fields parameter to trim the payload when you only need certain sections.

  • parkCodearrayrequiredOne to ten park codes (each a 4-letter lowercase code like "yose", "grca", "zion"). Get codes from nps_find_parks. Multiple codes are fetched in a single request.
  • fieldsarrayOptional detail sections to include beyond the always-present core (name, designation, states, description, coordinates, weather, url). Omit for all sections. Narrow to reduce payload when you only need, say, hours and fees.
nps_get_alerts5 params

Current alerts for a park or a whole state — closures, hazards, caution notices, and information — with category and recency surfaced first so "is anything closed at Glacier right now?" is answered at a glance. Get park codes from nps_find_parks, or pass a stateCode for a statewide "what's closed" sweep. Returns most-recent-first; an empty result means the park reports nothing closed or hazardous, which is good news, not an error. Closures and road conditions change daily — re-check before departure.

  • parkCodestringPark code, or comma-separated list (e.g. "glac", "yose,zion"). Get codes from nps_find_parks. Provide parkCode or stateCode; with neither, returns recent alerts service-wide.
  • stateCodestringTwo-letter state code, or comma-separated list (e.g. "MT", "WY,MT,ID"). Returns alerts for all NPS sites in those states — use for a statewide sweep rather than one park.
  • categorystringFilter to one alert category. "Danger" and "Park Closure" are the high-priority ones for trip safety. Omit to see all categories (the default — closures and hazards should not be missed).
  • querystringFree-text search within alert titles/descriptions (e.g. "road", "wildfire", "trail").
  • limitintegerMaximum alerts to return (1–50), most-recent first.
nps_find_campgrounds5 params

Campgrounds at a park or across a state: amenities (potable water, showers, RV dump station, toilets, trash collection, RV access), reservable vs. first-come-first-served site counts, reservation guidance and booking URL, accessibility, and fees — answering "where can I camp at Zion, and can I get an RV hookup?" Get park codes from nps_find_parks. Some parks list lodging or backcountry permits instead of NPS-managed campgrounds; an empty result is not an error.

  • parkCodestringPark code, or comma-separated list (e.g. "zion"). Get codes from nps_find_parks. Provide parkCode or stateCode.
  • stateCodestringTwo-letter state code, or comma-separated list. Returns campgrounds across all NPS sites in those states.
  • querystringFree-text search across campground names/descriptions (e.g. "river", "group", "rv").
  • limitintegerMaximum campgrounds to return (1–50).
  • startintegerZero-based pagination offset.
nps_get_activities5 params

Curated things to do and points of interest at a park — title, description, time commitment, location, accessibility, and fee/pet/reservation flags — answering "what should I do at Acadia?" Covers the NPS editorially-curated activity list (distinct from a park's raw activity tags in nps_get_park). Accepts a single 4-letter park code or a single two-letter state code, and at least one is required. Not every park has a curated list; an empty result is not an error.

  • parkCodestringA single 4-letter lowercase park code (e.g. "acad"). Get it from nps_find_parks. Accepts one park code, not a list. Provide parkCode or stateCode.
  • stateCodestringA single two-letter state code (e.g. "ME"). Returns curated activities across NPS sites in that state.
  • querystringFree-text search across activity titles/descriptions (e.g. "sunrise", "hike", "tour").
  • limitintegerMaximum activities to return (1–50).
  • startintegerZero-based pagination offset.
nps_find_events7 params

Scheduled events at a park within a date range — ranger programs, festivals, tours, interpretive events — answering "what's happening at Yellowstone this weekend?" with title, dates and times, location, category, fee, and registration links. Get park codes from nps_find_parks. Paginates by page number, not offset. The events feed is sparser and less consistent than alerts or campgrounds; many parks list few or no events, and an empty result is not an error.

  • parkCodestringPark code, or comma-separated list (e.g. "yell"). Get codes from nps_find_parks. Provide parkCode or stateCode.
  • stateCodestringTwo-letter state code, or comma-separated list. Returns events across NPS sites in those states.
  • dateStartstringStart of the date window (YYYY-MM-DD). Combine with dateEnd to bound the search (e.g. a weekend). Omit for upcoming events from today.
  • dateEndstringEnd of the date window (YYYY-MM-DD). Use with dateStart.
  • querystringFree-text search across event titles/descriptions (e.g. "ranger", "astronomy", "guided").
  • pageSizeintegerMaximum events to return per page (1–50). Paginates by page number, not offset — use with pageNumber to walk through results.
  • pageNumberinteger1-based page number. Increment to page through results beyond the first page.
README.md

@cyanheads/national-parks-mcp-server

Plan US National Park Service trips — find parks, check alerts and closures, find campgrounds, browse things to do and events via the NPS Data API. STDIO or Streamable HTTP.

6 Tools

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework


Tools

Six tools shaped around the trip-planning workflow — resolve a park, then key the detail tools on its code:

Tool Description
nps_find_parks Resolve a place name, US state, or free-text query to parks — the required first step. Returns each park's parkCode plus a trip-planning summary.
nps_get_park Full detail for up to ten parks in one batched call: description, activities, fees & passes, hours, contacts, directions, weather overview, images.
nps_get_alerts Current alerts for a park or state — closures, hazards, caution, information — with category and recency surfaced first.
nps_find_campgrounds Campgrounds at a park or state: amenities, reservable vs. first-come site counts, reservation info, accessibility, and fees.
nps_get_activities Curated things to do and points of interest: title, duration, location, accessibility, and fee/pet/reservation flags.
nps_find_events Scheduled events within a date range: dates/times, location, category, fee, and registration links.

Coverage is US National Park Service sites only — national parks, monuments, historic sites, seashores — not state parks and not Forest Service or BLM land.

The parkCode spine

parkCode (e.g. yose, grca, zion) is the join key for the whole API. The workflow is two steps:

  1. nps_find_parks resolves a name / state / query → parkCode(s) plus a summary.
  2. nps_get_park, nps_get_alerts, nps_find_campgrounds, nps_get_activities, nps_find_events key on that parkCode.

nps_get_alerts, nps_find_campgrounds, and nps_find_events also accept a stateCode for statewide queries without a code (e.g. "is anything closed in Montana's parks?"). The coordinates returned by nps_find_parks / nps_get_park feed weather servers (nws-weather, open-meteo) for a forecast.


nps_find_parks

Resolve a place name, US state, or free-text query into NPS parks — the entry point.

  • Free-text search across park names and descriptions (e.g. "yosemite", "civil war", "redwood")
  • Filter by two-letter stateCode or a comma-separated list (e.g. "CA", "WY,MT,ID")
  • Optional activity filter — case-insensitive substring match applied locally over the returned page (narrows what was fetched; does not search all ~470 sites)
  • Pagination via limit (1–50, default 10) and start offset
  • Summary carries parkCode, designation, states, description, coordinates, headline activities, lowest entrance fee, and the NPS page
  • Enrichment reports totalCount, applied-filter echo, and broadening guidance when nothing matched

nps_get_park

Full trip-planning detail for one or more parks by parkCode.

  • Batch up to 10 codes in a single upstream call
  • Always-present core: name, designation, states, description, coordinates, weather overview, NPS page
  • Optional fields selector (activities, topics, fees, hours, contacts, directions, images) trims the payload to the sections you need
  • Entrance fees and passes broken out by category; operating hours by area/season with per-weekday values; phone and email contacts; representative images (capped at 5)
  • Unresolved codes surface as missingCodes enrichment with a correction hint; only a fully-empty result is an error

nps_get_alerts

Current alerts for a park or a whole state, with category and recency leading.

  • Filter by parkCode, stateCode, or free-text query; optional category (Danger, Caution, Information, Park Closure)
  • Sorted most-recent-first; format() orders Danger / Park Closure ahead of the rest
  • categoryBreakdown enrichment counts returned alerts per category so severity is legible without scanning each one
  • An empty result is explicitly framed as good news (the park reports nothing closed or hazardous), not an error
  • lastIndexedDate is the recency signal — a stale date may mean the condition has changed

nps_find_campgrounds

Campgrounds at a park or across a state, flattened to what a camper filters on.

  • Filter by parkCode, stateCode, or free-text query; limit (1–50, default 15) and start pagination
  • Amenity booleans: potable water, showers, RV dump station, toilets, trash collection, RV access — normalized from NPS's mixed array/string amenity fields
  • Reservable vs. first-come-first-served site counts, total sites, reservation guidance and booking URL (often recreation.gov)
  • Lowest fee, accessibility summary, coordinates, and the campground's NPS page
  • Some parks list lodging or backcountry permits instead of NPS-managed campgrounds; an empty result is not an error

nps_get_activities

Curated things to do and points of interest, backed by the NPS /thingstodo list (distinct from a park's raw activity tags).

  • Accepts a single 4-letter parkCode or a single two-letter stateCode — at least one is required
  • Free-text query; limit (1–50, default 15) and start pagination
  • Per activity: title, short description, time commitment, location, coordinates, accessibility, season, and the NPS page
  • Reservation-required and pets-permitted booleans; fee description (absence does not guarantee free)
  • Not every park has a curated list; an empty result is not an error

nps_find_events

Scheduled events at a park within a date range — ranger programs, festivals, tours, interpretive events.

  • Filter by parkCode, stateCode, or free-text query; bound the window with dateStart / dateEnd (YYYY-MM-DD)
  • Page-based pagination (pageNumber / pageSize), not offset — the /events endpoint differs from the rest of the API
  • Per event: title, date range, time slots, location, category, fee info, and registration / info URLs (HTML stripped to plain text)
  • The events feed is sparser and less consistent than alerts or campgrounds; many parks list few or no events
  • A non-empty upstream errors[] array folds into the result notice as a warning rather than failing the request

Features

Built on @cyanheads/mcp-ts-core:

  • Declarative tool definitions — single file per tool, framework handles registration and validation
  • Unified error handling — handlers throw, framework catches, classifies, and formats
  • Pluggable auth: none, jwt, oauth
  • Swappable storage backends: in-memory, filesystem, Supabase, Cloudflare KV/R2/D1
  • Structured logging with optional OpenTelemetry tracing
  • STDIO and Streamable HTTP transports — same codebase runs locally or on Cloudflare Workers

NPS-specific:

  • One service wrapping the NPS Data API (developer.nps.gov/api/v1, X-Api-Key auth) across six trip-planning endpoints
  • Aggressive normalization of NPS's inconsistent payloads — numeric and boolean fields returned as strings, nested values (campsites.totalSites), array-typed amenity fields, and the distinct /events envelope with lowercased field names — coerced to clean domain types before they reach handlers
  • nps_get_park batches up to ten park codes into a single upstream request
  • Light retry on transient upstream failures (5xx / network); a missing or invalid key fails loud and names NPS_API_KEY

Agent-friendly output:

  • Result-set context on every response — totalCount, truncation (shown / cap), applied-filter echo, and empty-result notices reach both the structured and text surfaces
  • The parkCode-first workflow is encoded in every tool description; nps_get_park returns missingCodes so a wrong code self-corrects
  • Uncertainty preserved, never fabricated — every derived field is nullable and a missing upstream value yields null, not a guess; coordinates are never invented for downstream weather lookups

Getting started

Public Hosted Instance

A public instance is available at https://national-parks.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP, with this client config:

{
  "mcpServers": {
    "national-parks-mcp-server": {
      "type": "streamable-http",
      "url": "https://national-parks.caseyjhand.com/mcp"
    }
  }
}

Self-hosted

Add the following to your MCP client configuration file. A free NPS Data API key is required — instant signup here.

{
  "mcpServers": {
    "national-parks-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/national-parks-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info",
        "NPS_API_KEY": "your-api-key"
      }
    }
  }
}

Or with npx (no Bun required):

{
  "mcpServers": {
    "national-parks-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/national-parks-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info",
        "NPS_API_KEY": "your-api-key"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "national-parks-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "MCP_TRANSPORT_TYPE=stdio",
        "-e", "NPS_API_KEY=your-api-key",
        "ghcr.io/cyanheads/national-parks-mcp-server:latest"
      ]
    }
  }
}

For Streamable HTTP, set the transport and start the server:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 NPS_API_KEY=... bun run start:http
# Server listens at http://localhost:3010/mcp

Prerequisites

  • Bun v1.3 or higher (or Node.js v24+).
  • A free NPS Data API key — instant signup. The server fails to start without it.

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/national-parks-mcp-server.git
  1. Navigate into the directory:
cd national-parks-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment:
cp .env.example .env
# edit .env and set NPS_API_KEY

Configuration

All configuration is validated at startup via Zod schemas. Key environment variables:

Variable Description Default
NPS_API_KEY Required. NPS Data API key, sent as the X-Api-Key header. The server fails to start without it.
NPS_BASE_URL NPS Data API base URL override (testing / proxy). https://developer.nps.gov/api/v1
MCP_TRANSPORT_TYPE Transport: stdio or http. stdio
MCP_HTTP_PORT Port for the HTTP server. 3010
MCP_HTTP_ENDPOINT_PATH Path where the MCP server is mounted. /mcp
MCP_AUTH_MODE Auth mode: none, jwt, or oauth. none
MCP_LOG_LEVEL Log level (RFC 5424). info
LOGS_DIR Directory for log files (Node.js only). <project-root>/logs
STORAGE_PROVIDER_TYPE Storage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1. in-memory
OTEL_ENABLED Enable OpenTelemetry instrumentation. false

See .env.example for the full list of optional overrides.

Running the server

Local development

  • Build and run:

    # One-time build
    bun run rebuild
    
    # Run the built server
    bun run start:stdio
    # or
    bun run start:http
    
  • Run checks and tests:

    bun run devcheck   # Lint, format, typecheck, security
    bun run test       # Vitest test suite
    bun run lint:mcp   # Validate MCP definitions against spec
    

Docker

docker build -t national-parks-mcp-server .
docker run --rm -e NPS_API_KEY=your-key -p 3010:3010 national-parks-mcp-server

The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/national-parks-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

Directory Purpose
src/index.ts createApp() entry point — registers the six tools and inits the NPS service.
src/config Server-specific environment variable parsing and validation with Zod.
src/mcp-server/tools Tool definitions (*.tool.ts).
src/services/nps NPS Data API service — HTTP client, retry boundary, error-envelope detection, and all upstream normalization.
tests/ Unit and integration tests mirroring src/.

Development guide

See AGENTS.md / CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging, ctx.state for tenant-scoped storage
  • Register new tools in the createApp() arrays
  • Wrap the external API: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues and pull requests are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Data & attribution

Data is retrieved from the NPS Data API operated by the U.S. National Park Service. Content produced by NPS employees in their official capacity is a U.S. Government work in the public domain (17 U.S.C. §§ 101 and 105). No claim to original U.S. Government works.

Not all content returned by the API is government-authored. Some images and materials carry third-party copyright or other restrictions — check individual item rights before reuse.

The NPS Arrowhead symbol is a restricted mark protected under 18 U.S.C. § 701. It must not be reproduced or reused without written permission from the NPS Director.

Recommended MCP Servers

FAQ

What does national parks mcp server MCP do?

Plan US National Park Service trips - parks, alerts, campgrounds, things to do, events.

When should I use national parks mcp server?

User asks about National Parks Mcp Server mcp, plan us national park service trips - parks, alerts, campgrounds, thin.

Is this MCP server safe to install?

Review the Security Audits panel and upstream source before connecting in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.