openapi-to-mcp
Verified Safeby 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
npm install && npm run build && npx wrangler deployEnvironment 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
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
openapi-mcp-server
Converts OpenAPI specifications into Model Context Protocol (MCP) tools, enabling AI assistants to interact with APIs.
rest-to-mcp-adapter
Transforms REST API specifications (OpenAPI, Swagger, OpenAPI Actions) into Model Context Protocol (MCP) tools, enabling AI agents like Claude and GPT to interact with any REST API.