Weather Checker
Enables real-time weather lookup for any location via MCP, returning concise summaries from wttr.in.
README
ā Weather MCP Server
A lightweight MCP (Model Context Protocol) server that exposes a single tool ā real-time weather lookup for any location ā to any MCP-compatible client, such as Claude Desktop.
š§ How It Works
- A
FastMCPserver named "Weather Checker" is started over stdio transport. - It exposes one async tool,
check_weather(location: str), callable by any connected MCP client. - Internally, the tool calls
get_weather(), which hits wttr.in ā a free, no-auth-required weather service ā and returns a concise, one-line weather summary for the given location. - No API keys, no sign-ups, no external dependencies beyond the
mcppackage itself.
šļø Project Structure
āāā main.py # MCP server entry point ā defines and runs the check_weather tool
āāā tools/
ā āāā __init__.py
ā āāā weather.py # Fetches weather data from wttr.in
āāā pyproject.toml # Project metadata and dependencies (uv-managed)
āāā requrements.txt # Pip-installable dependencies
āāā uv.lock # Locked dependency versions
āāā .python-version # Python 3.13
š ļø Tech Stack
| Layer | Technology |
|---|---|
| Protocol | MCP (Model Context Protocol) ā FastMCP, stdio transport |
| Weather Data Source | wttr.in ā free console-friendly weather API |
| HTTP Client | Python standard library (urllib.request) |
| Package Management | uv |
| Language | Python 3.13 |
āļø Local Setup
1. Clone the Repository
git clone https://github.com/<your-username>/<repo-name>.git
cd <repo-name>
2. Install Dependencies
Using uv (recommended, matches uv.lock):
uv sync
Or using standard venv + pip:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .
3. Run the Server
python main.py
The server starts and communicates over stdio ā it's designed to be launched by an MCP client, not accessed directly via a browser or REST call.
š Connecting to an MCP Client
To use this server with an MCP-compatible client (e.g. Claude Desktop), add it to the client's MCP server configuration:
{
"mcpServers": {
"weather-checker": {
"command": "python",
"args": ["main.py"]
}
}
}
If using uv:
{
"mcpServers": {
"weather-checker": {
"command": "uv",
"args": ["run", "main.py"]
}
}
}
Once connected, the client can call the check_weather tool directly ā for example, asking "What's the weather in London?" will invoke check_weather(location="London") behind the scenes.
š§ Available Tools
| Tool | Parameters | Returns | Description |
|---|---|---|---|
check_weather |
location: str (e.g. "New York", "London") |
Concise weather summary (string) | Fetches current weather conditions for the specified location via wttr.in |
Example Output
New York: āļø +24°C
š Key Features
- ā Zero-configuration ā no API keys or environment variables required
- ā
Minimal dependency footprint (
mcp[cli]only) - ā
Clean separation between MCP tool definition (
main.py) and the underlying data-fetch logic (tools/weather.py) - ā Graceful error handling ā returns a readable error string instead of raising on failed requests
- ā Async tool definition, ready to scale to additional tools in the same server
š License
This project is for educational purposes.
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.