
MCP Weather Server
this is a Mcp server for us weather, I create it for test purposes
what is MCP Weather Server?
MCP Weather Server is an MCP (Model Context Protocol) server that provides real-time weather information for the USA using the National Weather Service API. It is designed for testing purposes and allows MCP-compatible AI assistants to access weather data.
how to use MCP Weather Server?
To use the MCP Weather Server, install the package via PyPI and configure it with your MCP-compatible AI assistant like Claude. You can then ask questions about the weather.
key features of MCP Weather Server?
- Weather Alerts: Get current weather alerts for any US state.
- Weather Forecasts: Access detailed weather forecasts for any location in the US using latitude and longitude.
use cases of MCP Weather Server?
- Providing real-time weather updates to users through AI assistants.
- Integrating weather data into applications for enhanced user experience.
- Testing and developing weather-related features in AI systems.
FAQ from MCP Weather Server?
- Can I use MCP Weather Server with any AI assistant?
Yes! It is compatible with any MCP-compatible AI assistant like Claude.
- Is there a cost to use the MCP Weather Server?
No, it is free to use.
- How do I install the MCP Weather Server?
You can install it using pip:
pip install mcp-weather
.
MCP Weather Server
An MCP (Model Context Protocol) server providing USA weather information using the National Weather Service API. This server allows Claude and other MCP-compatible AI assistants to access real-time weather data.
Features
- Weather Alerts: Get current weather alerts for any US state
- Weather Forecasts: Get detailed weather forecasts for any location in the US using latitude and longitude
Installation
For Users
To use this MCP server with Claude or other MCP-compatible AI assistants:
# Install from PyPI
pip install mcp-weather
# Or install with uv
uv pip install mcp-weather
For Developers
To set up the development environment:
# Clone the repository
git clone https://github.com/michael7736/mcp-weather.git
cd mcp-weather
# Create a virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -e ".[dev]"
Configuration
Cline (VS Code Extension)
Add the following to your Cline MCP settings file (cline_mcp_settings.json
):
{
"mcpServers": {
"weather": {
"command": "mcp-weather",
"disabled": false,
"autoApprove": []
}
}
}
Claude Desktop App
Add the following to your Claude Desktop config file (claude_desktop_config.json
):
{
"mcpServers": {
"weather": {
"command": "mcp-weather",
"disabled": false,
"autoApprove": []
}
}
}
Usage
Once configured, you can ask Claude or other MCP-compatible AI assistants questions about the weather:
- "What are the current weather alerts in CA?"
- "What's the weather forecast for San Francisco?" (The assistant will use coordinates for San Francisco)
Publishing
To publish this package to PyPI:
-
Make sure you have the latest build tools:
pip install --upgrade build twine
-
Build the package:
python -m build
-
Upload to PyPI:
python -m twine upload dist/*
License
This project is licensed under the MIT License - see the LICENSE file for details.