Retrieve U.S. National Parks data via MCP Server with easy API access and detailed info
The MCP (Model Context Protocol) Server for National Park Services Data provides a standardized and efficient interface to retrieve detailed information about national parks in the United States. This server integrates seamlessly with AI applications such as Claude Desktop, Continue, Cursor, and others through Model Context Protocol (MCP), allowing them to access comprehensive park data using simple API calls. By leveraging the MCP Server, developers can enhance their AI workflows by ensuring compatibility and performance across multiple platforms.
This MCP server offers two primary functions:
park-list
stateCode
(string) – Two-letter U.S. state code[
{
"fullName": "Yellowstone National Park",
"description": "First national park in the U.S.",
"parkCode": "yell"
}
]
park-details
parkCode
(string) – National Park lookup code[
{
"fullName": "Yellowstone National Park",
"description": "First national park in the U.S.",
"states": "WY, MT, ID"
}
]
These features are implemented using the MCP protocol to ensure compatibility and efficient data exchange between the server and various AI applications. The implementation details include proper routing, error handling, and secure API key management.
The server architecture is designed with scalability and performance in mind, adhering to the MCP protocol for seamless integration with different AI clients. The data flow from the input request through the process to the response is managed by the protocol, ensuring robust and efficient communication.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
The diagram illustrates how MCP clients initiate requests, which are then processed by the server. The communication path ensures that data flows securely and efficiently from the AI application to the national park data source.
To get started, follow these steps to set up the MCP server:
Clone the Repository:
git clone <repository-url>
cd <repository-folder>
Install Dependencies:
npm install
Configure Environment Variables:
.env
file in the root directory:
API_KEY=your_nps_api_key_here
Run the Server:
To start the MCP server using Node.js:
npm run build
node ./build/server.js
Alternatively, to use Claude Desktop:
Add This MCP Server to claude_desktop_config.json
:
{
"mcpServers": {
"nps": {
"command": "node",
"args": [
"/<Path to Server>/build/index.js"
],
"env": {
"API_KEY": "Your NPS API Key"
}
}
}
}
Start or Restart Claude Desktop
Ensure Your MCP Server is Recognized and Running by Clicking on the Tools Icon in the Bottom Right Corner of Claude's Interface.
AI applications such as Claude Desktop can utilize this server to provide users with specific park details, making it easier to plan trips or research parks. For example:
What National Parks are in the state of CA?
This request triggers a query to the MCP server, which in turn uses the NPS API to fetch relevant information. The results can then be displayed directly within Claude's interface.
Give me details about Yellowstone National Park.
This command is processed by the MCP server, which queries the NPS API for the requested park data. The response structure contains full descriptions and other relevant attributes.
The MCP server for national parks is designed to be compatible with multiple clients:
Real-time Park Data Updates:
{
"mcpServers": {
"[server-name]": {
"command": "node",
"args": [
"/build/index.js"
],
"env": {
"API_KEY": "your_nps_api_key_here"
}
}
}
}
Enhanced AI Queries:
Ensuring compatibility and performance with various MCP clients is crucial for efficient integration:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
.env
file.Q: How do I obtain a valid NPS API key?
Q: What happens if I exceed my rate limits?
Q: Can this server be integrated with other AI applications besides Claude Desktop and Continue?
Q: How do I debug issues if my queries aren’t working as expected?
Q: Can I customize the park data displayed through prompts for specific use cases?
Contributions are welcome! To contribute, follow these steps:
Fork the Repository: Fork this repository on GitHub.
Clone the Forked Repository:
git clone <forked-repository-url>
cd <repository-folder>
Install Dependencies:
npm install
Run Tests:
npm test
Create a Pull Request:
Explore the broader MCP ecosystem:
By integrating this MCP server into your AI workflows, you can provide users with valuable and timely information about national parks, enhancing the overall user experience.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration