Weather MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather MCP Serverget the forecast for San Francisco"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weather MCP Server
A Model Context Protocol (MCP) server that provides weather forecast and alert information for US locations. Referenced these docs.
Features
Weather Forecasts: Get detailed weather forecasts for any location using latitude/longitude coordinates
Weather Alerts: Retrieve active weather alerts for US states
Real-time data from the National Weather Service
Related MCP server: Weather MCP Server
Installation
Prerequisites
Python 3.10 or higher
Setup
Clone this repository:
git clone https://github.com/penguyen72/python-mcp
cd python-mcpUsage
Configuration
Add the server to your MCP client configuration. For Claude Desktop, add this to your config file:
MacOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows:
code $env:AppData\Claude\claude_desktop_config.jsonConfig:
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather",
"run",
"weather.py"
]
}
}
}Available Tools
weather:get_forecast
Get weather forecast for a specific location.
Parameters:
latitude(number, required): Latitude of the locationlongitude(number, required): Longitude of the location
Example:
{
"latitude": 38.5816,
"longitude": -121.4944
}weather:get_alerts
Get active weather alerts for a US state.
Parameters:
state(string, required): Two-letter US state code (e.g., "CA", "NY", "TX")
Example:
{
"state": "CA"
}API Data Source
This server uses the National Weather Service API to retrieve weather data for US locations.
Available Tools
2 toolsget_alertsA
Get weather alerts for a US state.
Args:
state: Two-letter US state code (e.g. CA, NY)
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool 'gets' data, implying a read-only operation, but doesn't specify details like rate limits, authentication needs, error handling, or what the output contains (though an output schema exists). For a tool with no annotations, this leaves significant gaps in understanding its behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded. The first sentence clearly states the purpose, and the second sentence efficiently explains the parameter with an example. There's no wasted text, and the structure makes it easy to scan and understand.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (one parameter) and the presence of an output schema (which handles return values), the description is mostly complete. It covers the purpose and parameter semantics well. However, it lacks usage guidelines and behavioral details (e.g., error cases), which are minor gaps in an otherwise solid description.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds substantial meaning beyond the input schema. The schema has 0% description coverage, only listing 'state' as a required string. The description compensates by explaining that 'state' is a 'Two-letter US state code (e.g. CA, NY)', providing crucial format and example details that aren't in the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get weather alerts for a US state.' It specifies the verb ('Get'), resource ('weather alerts'), and scope ('US state'), making it easy to understand. However, it doesn't explicitly differentiate from its sibling tool 'get_forecast' (which likely provides forecast data rather than alerts), so it doesn't reach the highest score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention the sibling tool 'get_forecast' or clarify scenarios where alerts are preferred over forecasts (e.g., for severe weather warnings). Without such context, users must infer usage from the tool name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_forecastB
Get weather forecast for a location.
Args:
latitude: Latitude of the location
longitude: Longitude of the location
| Name | Required | Description | Default |
|---|---|---|---|
| latitude | Yes | ||
| longitude | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. While it indicates this is a read operation ('Get'), it doesn't describe any behavioral traits such as rate limits, authentication requirements, data freshness, error conditions, or what the forecast includes (e.g., temperature, precipitation). For a tool with zero annotation coverage, this leaves significant gaps in understanding how it behaves.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded: the first sentence clearly states the purpose, followed by a structured parameter list. There's no wasted text, and every sentence serves a purpose. It could be slightly more concise by integrating the parameter descriptions more seamlessly, but overall it's efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that there's an output schema (which handles return values), the description doesn't need to explain outputs. However, with zero annotation coverage and a sibling tool, the description is minimal. It covers the basic purpose and parameters but lacks context on usage, behavioral traits, or differentiation from alternatives. For a simple 2-parameter tool with output schema, this is adequate but has clear gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description explicitly lists both parameters (latitude and longitude) and provides basic semantic context ('Latitude of the location', 'Longitude of the location'). Since schema description coverage is 0%, the description compensates by adding meaning beyond the bare schema. However, it doesn't specify format details like coordinate ranges or units, keeping it from a perfect score.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get weather forecast for a location.' It uses a specific verb ('Get') and resource ('weather forecast'), making the function immediately understandable. However, it doesn't explicitly differentiate from its sibling tool 'get_alerts', which likely serves a related but distinct purpose in weather data retrieval.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. There's no mention of the sibling tool 'get_alerts', nor any context about when a forecast is appropriate versus alerts. The description simply states what the tool does without offering usage context or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
The two tools have clearly distinct purposes: get_alerts retrieves weather alerts for US states, while get_forecast provides forecasts for geographic coordinates. There is no overlap in functionality or ambiguity about which tool to use for each task.
Both tools follow a consistent verb_noun pattern with 'get_' prefix and descriptive nouns (alerts, forecast). The naming is perfectly uniform and predictable across the tool set.
With only 2 tools, the server feels underpowered for a weather domain. While alerts and forecasts are core functions, there are obvious gaps like current conditions, historical data, or radar imagery that would be expected in a weather API. The minimal tool count limits the server's usefulness.
The tool surface is severely incomplete for a weather server. It lacks current conditions, historical weather data, radar/satellite imagery, air quality information, and marine forecasts. The two provided tools cover only narrow aspects of weather data, leaving significant gaps that will hinder agent workflows.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Get US weather forecasts, active alerts, and current observations.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather alerts from NWS: warnings, watches, advisories by state. $0.01/query.
Provide real-time and forecast weather information for locations in the United States using natura…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides weather forecast and alert data for US locations through the National Weather Service API, enabling access to real-time weather alerts by state and detailed forecasts by coordinates.
- AlicenseNot gradedqualityDmaintenanceProvides weather forecasts and alerts for US locations using the National Weather Service API. Supports getting detailed forecasts by coordinates and active weather alerts by state code.80GPL 3.0
- FlicenseBqualityCmaintenanceProvides weather forecast and alert information from the National Weather Service API, allowing users to query weather forecasts by coordinates and check weather alerts by state.2
- FlicenseBqualityDmaintenanceProvides real-time weather forecasts and alerts for US locations using the National Weather Service API. Supports querying forecasts by coordinates and retrieving active weather alerts by state.2
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/penguyen72/python-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server