国家公园管理局数据的 MCP 服务器
此 MCP 服务器提供了一个用于检索国家公园管理局 (NPS) 数据的接口。它允许用户:
检索美国某个州的国家公园列表。
获取有关特定国家公园的详细信息。
它使用国家公园管理局 API 来获取数据。
要求
Node.js(建议使用 v18+)
npm 或 yarn
有效的 NPS API 密钥(可在https://www.nps.gov/subjects/developer/get-started.htm获得)
已安装 Claude Desktop(用于运行 MCP 服务器)
设置
克隆此存储库:
git clone <repository-url> cd <repository-folder>安装依赖项:
npm install在根目录中创建一个
.env文件并添加您的 NPS API 密钥:API_KEY=your_nps_api_key_here
运行服务器
要启动 MCP 服务器:
使用 Claude Desktop:
将此 MCP 服务器添加到
claude_desktop_config.json
启动或重新启动 Claude Desktop
通过单击 Claude 聊天窗口底部的工具图标,确保您的 MCP 服务器已被识别并正在运行。
使用 Claude 的界面查询国家公园服务数据。
API 端点
按州获取国家公园列表
工具名称: park-list
参数:
stateCode(字符串) – 两个字母的美国州代码
响应示例:
获取国家公园的详细信息
工具名称: park-details
参数:
parkCode(字符串) – 国家公园查找代码
响应示例:
提示
检索某个州的公园
提示名称: parks-by-state
参数:
stateCode(字符串)
例子:
获取公园详情
提示名称: details-for-park
参数:
park(字符串)
例子:
Related MCP Servers
- AsecurityAlicenseAqualityProvides real-time information about U.S. National Parks through the NPS API, enabling users to search parks, check details, alerts, visitor centers, campgrounds, and upcoming events.Last updated -63035MIT License
- -security-license-qualityProvides access to the Swedish National Archives (Riksarkivet) through multiple APIs, enabling users to search, explore, and download digitized historical records and images.Last updated -4Apache 2.0
- -securityFlicense-qualityProvides weather forecast and alert data for US locations through the National Weather Service API, enabling access to real-time weather alerts by state and detailed forecasts by coordinates.Last updated -
- AsecurityFlicenseAqualityEnables AI assistants to access real-time US weather forecasts and alerts through the National Weather Service API.Last updated -20