Back to Home
agentoauth icon

openapi-to-mcp

Verified Safe

by agentoauth

Overview

Provides a Model Context Protocol (MCP) interface to the National Weather Service (NWS) API, enabling AI assistants to access weather-related data and forecasts.

Installation

Run Command
npm install && npm run build && npx wrangler deploy

Environment Variables

  • API_BASE_URL
  • USER_AGENT

Security Notes

The server acts as an API proxy, forwarding requests to an external weather API. It uses environment variables (`API_BASE_URL`, `USER_AGENT`) for configuration. Path and query parameters are URL-encoded before being used in `fetch` requests, mitigating direct URL injection risks. The code does not use `eval` or other dynamic code execution from user input. Error responses may expose underlying HTTP status and response bodies from the external API, which is standard for proxies but could reveal minor details in specific error scenarios. Assuming the deployment environment (e.g., Cloudflare Workers) securely manages environment variables and network access, the generated server code is robust for its intended purpose. The broader 'openapi-to-mcp' project's 'mcp-hub' component does contain `exec` calls for build/deploy processes, but these are not part of the 'weather-mcp' server's runtime.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-10

Tags

MCPOpenAPIWeather APIAPI IntegrationTypeScriptCloudflare WorkersForecastsAlertsObservations