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 Serverwhat's the weather in New York City?"
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 data from the US National Weather Service (NWS) API. Use this server to get weather forecasts and active weather alerts for US locations directly within Claude.
Features
This server exposes two tools:
get_forecast - Get detailed weather forecasts for any US location by latitude/longitude
get_alerts - Get active weather alerts for any US state
Related MCP server: weather-mcp
Prerequisites
Python 3.13+
uv package manager
Installation
Clone the repository:
git clone https://github.com/amplifyautomation/weather-mcp-server.git cd weather-mcp-serverInstall dependencies:
uv sync
Configuration
Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"/path/to/weather-mcp-server",
"run",
"weather.py"
]
}
}
}Replace /path/to/weather-mcp-server with the actual path to this project.
Claude Code
Add to your Claude Code settings or project's .mcp.json:
{
"mcpServers": {
"weather": {
"command": "uv",
"args": ["--directory", "/path/to/weather-mcp-server", "run", "weather.py"]
}
}
}Usage Examples
Once configured, you can ask Claude:
"What's the weather forecast for San Francisco?" (Claude will look up coordinates)
"Get the forecast for latitude 37.7749, longitude -122.4194"
"Are there any weather alerts in California?"
"What weather warnings are active in TX?"
Tools Reference
get_forecast
Get weather forecast for a specific location.
Parameters:
latitude(float): Latitude of the locationlongitude(float): Longitude of the location
Returns: Detailed forecast for the next 5 periods including temperature, wind, and conditions.
get_alerts
Get active weather alerts for a US state.
Parameters:
state(string): Two-letter US state code (e.g., CA, NY, TX)
Returns: List of active alerts including event type, affected area, severity, description, and instructions.
Data Source
Weather data is provided by the National Weather Service API, which is free to use and does not require an API key. Note that this API only covers US locations.
License
MIT
Available Tools
2 toolsget_alertsB
Get weather alerts for a US state.
Args: state: Two-letter US state code (e.g. CA, NY)
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must carry the behavioral disclosure burden, but it only restates the core purpose of retrieving alerts. It does not mention return format, data source, update frequency, or whether this is a safe read-only operation. This is a minimal behavioral statement rather than useful transparency.
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 compact, front-loaded, and every sentence earns a place: the first line states the action, the second documents the only parameter. There is no filler or redundant information.
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?
For a tool with one simple parameter, the description is near-adequate. However, with no output schema and no annotations, it does not describe what the returned alerts contain or how to distinguish this tool from get_forecast when selecting. A small but real completion gap remains.
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 input schema only defines state as a string, so the description's 'Two-letter US state code (e.g. CA, NY)' adds important format and example context. It fully clarifies the sole parameter, though it does not enumerate all valid state codes or explain invalid input behavior.
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 opens with a specific verb and object ('Get weather alerts for a US state'), clearly identifying the tool's function. It does not explicitly contrast with sibling get_forecast, but the word 'alerts' already separates it from a forecast tool. Clear, but stops short of explicit sibling differentiation.
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?
There is no guidance on when to choose this tool over get_forecast or what conditions call for alerts versus forecast. The only usage-related content is the state parameter, which belongs more to parameter semantics. The agent receives no decision support for tool selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_forecastC
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 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
There are no annotations, so the description bears the full burden of behavioral disclosure. It only says 'Get weather forecast' and gives no information about safety (read-only vs. side effects), units, time range, caching, or output structure. Such missing details matter for an external forecast API.
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 short and purpose-first, with a separate Args block for parameters. It is efficiently structured, though the Args section largely duplicates the input schema and could be trimmed without loss.
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?
With no output schema and no annotations, the description should explain what forecast data is returned (e.g., temperature, precipitation, time horizon), coordinate constraints, and how this relates to the sibling get_alerts. It does none of these, so an agent lacks essential information for correct invocation and interpretation.
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 repeats the parameter names with minimal elaboration ('Latitude of the location'), which adds little beyond the input schema titles 'Latitude' and 'Longitude'. It does not specify units (e.g., decimal degrees), valid ranges, or coordinate format, so the parameter semantics are under-specified.
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 states a clear verb and resource: 'Get weather forecast for a location.' This distinguishes it from the sibling tool get_alerts, which obviously deals with alerts rather than forecasts, even though it does not explicitly name the sibling.
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?
No guidance is provided about when to use get_forecast versus get_alerts or any other alternative. The description gives no contextual hints about use cases, prerequisites, or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
v0.1.0- First observed
get_alerts - First observed
get_forecast
TDQS
get_alerts and get_forecast are clearly distinct in both purpose and input parameters—one targets alerts by state, the other forecasts by coordinates. There is no overlap or ambiguity between the two.
Both tools follow the same get_ verb_noun pattern, making the naming scheme predictable and consistent. No mixed conventions or vague verbs.
With only two tools, the server sits at the thin end of the spectrum. Each tool is useful, but the count feels minimal for a weather service that could reasonably offer current conditions, hourly forecasts, or location search.
The core alert and forecast capabilities are covered, but obvious weather-domain operations are missing, such as current conditions, location search, or more granular forecast types. Agents may need to work around these gaps.
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 & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
61Provide real-time and forecast weather information for locations in the United States using natura…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides weather alerts and forecasts for US locations using the National Weather Service API.80GPL 3.0
- AlicenseNot gradedqualityDmaintenanceProvides US weather alerts and forecasts via the National Weather Service API.80GPL 3.0
- FlicenseNot gradedqualityDmaintenanceProvides weather forecasts, current conditions, and alerts for US locations using the National Weather Service API.1-
- AlicenseNot gradedqualityDmaintenanceProvides weather alerts and forecasts for US locations using the National Weather Service API.GPL 3.0
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/AmplifyAutomation/weather-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server