Weather MCP Server
A demo MCP server that provides AI assistants access to live US weather data via the free National Weather Service API, offering forecast and alert tools without requiring an API key.
README
Weather MCP Server
A demo Model Context Protocol server that gives AI assistants (Claude, Copilot, Cursor, etc.) access to live US weather data via the free National Weather Service API.
Tools exposed
| Tool | Description |
|---|---|
get_forecast |
3-period forecast for any US lat/long |
get_alerts |
Active weather alerts for a US state |
get_hourly |
Hourly forecast for next 12 hours |
No API key required — NWS is completely free.
Local development
1. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
2. Install dependencies
uv pip install "mcp[cli]>=1.0.0" "httpx>=0.27.0"
3. Run with MCP Inspector (for testing)
uv run mcp dev weather_server.py
Opens a browser UI to call your tools manually.
4. Connect to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"weather": {
"command": "python",
"args": ["/absolute/path/to/weather_server.py"]
}
}
}
Restart Claude Desktop. You'll see a 🔨 tools icon in chat.
Deploy to Fly.io
1. Install flyctl
curl -L https://fly.io/install.sh | sh
2. Sign up / log in
fly auth signup # or: fly auth login
3. Pick a unique app name
Edit fly.toml and change app = "weather-mcp-demo" to something unique.
4. Launch
fly launch --no-deploy # reads fly.toml, provisions the app
fly deploy # builds Docker image and deploys
Your server will be live at:
https://<your-app-name>.fly.dev/mcp
5. Connect Claude Desktop to the hosted server
{
"mcpServers": {
"weather": {
"url": "https://<your-app-name>.fly.dev/mcp"
}
}
}
Useful Fly commands
fly logs # tail live logs
fly status # check machine health
fly deploy # redeploy after code changes
fly scale count 1 # ensure at least 1 machine running
Example prompts to try
- "What's the weather forecast for New York City?" → lat: 40.71, lon: -74.00
- "Any weather alerts in Texas right now?"
- "Give me the hourly forecast for Miami." → lat: 25.77, lon: -80.19
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.