Skip to main content
Glama

National Parks MCP Server

config.ts884 B
/** * Configuration for the NPS MCP Server */ import dotenv from 'dotenv'; import path from 'path'; // Load environment variables from .env file dotenv.config({ path: path.resolve(__dirname, '../.env') }); export const config = { // NPS API Configuration npsApiKey: process.env.NPS_API_KEY || '', // Server Configuration serverName: 'mcp-server-nationalparks', serverVersion: '1.0.0', serverDescription: 'MCP server providing real-time data about U.S. national parks', // Logging Configuration logLevel: process.env.LOG_LEVEL || 'info', }; // Validate required configuration if (!config.npsApiKey) { console.warn('Warning: NPS_API_KEY is not set in environment variables. The server will not function correctly without an API key.'); console.warn('Get your API key at: https://www.nps.gov/subjects/developer/get-started.htm'); } export default config;

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/KyrieTangSheng/mcp-server-nationalparks'

If you have feedback or need assistance with the MCP directory API, please join our Discord server