A weather MCP server using fastmcp and Open-Meteo API
Weather MCP server has basic functional tool definitions but exhibits significant gaps in parameter documentation, output schema specification, and error handling guidance. All three tools follow a simple verb_noun naming convention (get_current_weather, get_forecast, get_air_quality) which is appropriate, but parameter descriptions are minimal and output schemas are completely undocumented. The server relies on string returns from async HTTP calls without structured output specifications, making it difficult for LLMs to chain results or extract specific values. Error handling is present in the code (fallback messages for missing coordinates or API failures) but lacks the recovery guidance needed for agents to self-correct. This is a typical D-range community server: functional but not production-ready.
Get current air quality index (AQI) for a specified city.
Get the current weather for a specified city.
Get a 5-day weather forecast for a specified city.
No output schemas documented. Tools return unstructured strings (e.g., 'Current weather in {city}: {temp}°C, Wind speed: {windspeed} km/h.'). LLMs cannot extract structured fields, chain results to downstream tools, or validate response completeness. Pattern: response-shaper requires returning structured objects with typed fields.
Parameter descriptions lack format/constraint details. 'city' parameter described only as 'The name of the city' with a vague example. No guidance on handling multi-word cities (e.g., 'New York'), non-ASCII characters, or invalid inputs. Pattern: constrained-input and param-validation-rules require explicit format specs.
Error messages do not guide recovery. When coordinates cannot be found or API calls fail, responses say 'Could not find coordinates for city: {city}' or 'Could not fetch weather data'. No hint on what to do next (e.g., 'Try search_available_cities() or check spelling'). Pattern: recovery-guide requires actionable error text.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 41 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 35 | - | v1 |
No pagination or result limits documented. get_forecast returns 5 hard-coded days; no explanation of what happens if the API returns more or fewer results, or whether the agent should request longer forecasts. Pattern: paginated-result requires explicit limits and continuation tokens.
No timeout or rate-limit handling. External API calls (Open-Meteo, Nominatim) lack explicit timeouts or retry logic in the visible code. An agent stuck on a slow/hanging API call will block indefinitely. Pattern: error-classification requires explicit handling of network failures.
Tool descriptions are generic and under-specified. 'Get the current weather for a specified city' does not explain what fields are returned (temperature, wind speed, humidity?), in what units (Celsius, km/h assumed but not stated), or when to prefer this tool over forecast. Pattern: tool-description requires 50 - 200 char descriptions stating WHAT, WHEN, and output structure.