Sponsored by Deepsite.site

NPS Explorer MCP Server 🔭

Created By
Kyle-Ski7 months ago
A Model Context Protocol (MCP) server on Cloudflare Workers, letting you query APIs for park overviews, trails, alerts, events, weather forecasts, and more via simple tool calls from your LLM of choice.
Content

NPS Explorer MCP Server 🔭

Overview

This repository is a modified version of Cloudflare’s remote-MCP-GitHub-OAuth demo, extended into a National Parks Service Explorer. It provides an LLM context on U.S. national parks by integrating:

It runs as a Model Context Protocol (MCP) server on Cloudflare Workers, letting you query park overviews, trails, alerts, events, weather forecasts, and more via simple tool calls to the LLM.

Looking for the original demo?
See Cloudflare’s instructions here.

Want to add this tool directly to your Claude Desktop?
Checkout the instructions here

Want to clone their example directly? Use their command line to get a server going on your machine:

 npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-github-oauth

📋 Prerequisites

  • A Cloudflare account with Workers and KV enabled
  • Node.js v18.20.4+ and npm
  • Your own API keys for:
    • National Park Service API
    • Recreation.gov API
    • Weather API (weatherapi)

⚙️ Setup

  1. Clone this repo

    git clone https://github.com/Kyle-Ski/nps-explorer-mcp-server.git
    cd nps-explorer-mcp-server
    
  2. Copy and fill .dev.vars

    cp .dev.vars.example .dev.vars
    

    Then open .dev.vars and populate with your own secrets.

  1. Install dependencies
npm i
  1. Run Locally
npm start

🚀 Deployment

The deploy command is using Wrangler to deploy your server to Cloudflare Workers! Cloudflare will also use their Durable Objects and Workers KV.

npm run deploy

🧰 Tools

Tool NameDescriptionStatus
getParkInfoGet comprehensive information about a national park including both static details and current conditionsworking
getTrailInfoGet detailed information about trails (difficulty, length, elevation gain, current conditions)🚧 under construction
findParksFind national parks based on criteria such as state, activities, or amenitiesworking
getParkAlertsGet current alerts, closures, and notifications for specified parksworking
getParkEventsGet upcoming events at parks including ranger talks, guided hikes, and educational programsworking
findNearbyRecreationFind recreation areas and camping options near a given location⚠️ not working correctly
planParkVisitGet recommendations for the best time to visit a park based on historical and forecast weatherworking
getParkWeatherForecastGet detailed weather forecast for a national park by park codeworking
getCampgroundsList campgrounds within a given national park with detailed informationworking

🧪 Testing

Once your server is up and running, use the MCP Server Inspector Tool to make sure your server can connect and show you the tools and resources it has access to.

npx @modelcontextprotocol/inspector

🛜 For Production

All of this is in the original Cloudflare README.md
Cloudflare recommends creating a local and remote GitHub OAuth App:

  • For the Homepage URL, specify https://mcp-github-oauth.<your-subdomain>.workers.dev
  • For the Authorization callback URL, specify https://mcp-github-oauth.<your-subdomain>.workers.dev/callback
  • Note your Client ID and generate a Client secret and add them via Wrangler.
wrangler secret put GITHUB_CLIENT_ID
wrangler secret put GITHUB_CLIENT_SECRET
wrangler secret put COOKIE_ENCRYPTION_KEY # add any random string here e.g. openssl rand -hex 32

Set up a KV namespace

  • Create the KV namespace: wrangler kv:namespace create "OAUTH_KV"
  • Update the Wrangler file with the KV ID

📚 Reference


🧑‍🔧 Troubleshooting and Common Issues

Check out the MCP troubleshooting docs

Connecting to Claude Desktop Fails:

  • Most commonly due to Node incompatibility issues, use node v18.20.4+ locally and checkout this guide I wrote.

🤝 Contributing

  1. Fork this repository

  2. Create a feature branch (git checkout -b feature-name)

  3. Commit your changes (git commit -m 'Add new tool')

  4. Push to the branch (git push origin feature-name)

  5. Open a Pull Request

⚖️ License

his project is licensed under the MIT License. See LICENSE for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Serper MCP ServerA Serper MCP Server
Playwright McpPlaywright MCP server
Amap Maps高德地图官方 MCP Server
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。