Weather Checker

Weather Checker

Enables real-time weather lookup for any location via MCP, returning concise summaries from wttr.in.

Category
Visit Server

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

  1. A FastMCP server named "Weather Checker" is started over stdio transport.
  2. It exposes one async tool, check_weather(location: str), callable by any connected MCP client.
  3. 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.
  4. No API keys, no sign-ups, no external dependencies beyond the mcp package 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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured