mcp-simulation
Verified Safeby Furkanyolcu
Overview
Serves weather forecast and alert data from the National Weather Service API as tools for an MCP-compatible AI agent.
Installation
uv run weather.pyEnvironment Variables
- ANTHROPIC_API_KEY
Security Notes
The server code (`weather.py`) uses `httpx` for external API calls to the public NWS API. Error handling employs a broad `except Exception` for network requests, which is generally discouraged as it can mask specific issues, but it does not introduce direct security vulnerabilities like arbitrary code execution. No `eval`, `exec`, hardcoded secrets (other than the public NWS API base URL), or malicious patterns were found in the server code. The client code (`client.py`) uses `load_dotenv()` for API keys, which is good practice. The client also executes a specified server script (`uv run <script>`), posing a risk if the script path is sourced from an untrusted origin, but this is a client-side execution risk rather than a server vulnerability.
Similar Servers
mcp_server_test
This server provides a weather forecasting tool that fetches current and hourly weather data for specified geographical coordinates.
weather
This server provides weather information by integrating with an external LLM (like Claude) as a tool within the Model Context Protocol (MCP).
mcp_server_weather_jayden
This server provides current and forecasted weather data for specific geographical coordinates as a tool callable by an AI agent.
mcp-server
Provides weather alerts and forecasts by integrating with the National Weather Service (NWS) API.