About Weather MCP Server
Weather MCP Server provides city weather information using the National Weather Service API. It geocodes city names and returns forecasts with temperature, conditions, and wind details.
Key features
- 01Geocode city names
- 02Fetch National Weather Service data
- 03Return temperature and conditions
- 04Include wind information
- 05Separate tools for each step
Use cases
- 01Check a city's weather forecast
- 02Ask an assistant for local conditions
MCP support
Exposes a `get_weather` tool to MCP clients, returning weather information for a city using the National Weather Service API.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEWeather MCP Server
This repository contains a weather information service built using the MCP (Model-Completion-Protocol) framework. The service provides weather forecasts for any city by leveraging the National Weather Service (NWS) API.
Features
- Geocode city names to latitude/longitude coordinates
- Fetch weather data from the National Weather Service API
- Get detailed weather forecasts including temperature, conditions, and wind information
- Modular design with separate tools for each step of the process
Available MCP Tool
get_weather: Get complete weather information for a city
Installation
We recommend using uv to manage your Python projects:
uv add "mcp[cli]"
Alternatively:
pip install mcp
Usage
Test the MCP Server Locally
To test the MCP server locally, use:
mcp dev weather.py
Use with Claude Desktop
To use this weather server with Claude Desktop, add the following configuration to your Claude Desktop config:
{
"mcpServers": {
"my_python_server": {
"command": "/Users/<user_name>/.local/bin/uv",
"args": [
"--directory",
"/Users/<user_name>/<git_repository_path>",
"run",
"weather.py"
]
}
}
}
Make sure to replace the directories with your own path: </Users/user_name/Your_directory>
Example
Once configured, you can ask Claude questions like:
- "What's the weather in San Francisco?"
- "How's the weather in New York City?"
- "Get me the weather forecast for Chicago"
Claude will use the MCP server to fetch and display the weather information.
License
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0). See the LICENSE.md file for details.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.