Weather Checker
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather Checker what's the weather in Paris?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
β 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.
Related MCP server: MCP Weather Server
ποΈ 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) β |
Weather Data Source | wttr.in β free console-friendly weather API |
HTTP Client | Python standard library ( |
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 syncOr 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.pyThe 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 |
|
| 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.
Available Tools
1 toolcheck_weatherC
Get weather information for a specified location.
Inputs: location (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion between tools, making disambiguation perfect.
The single tool name 'check_weather' follows a clear verb_noun pattern, and with only one tool, consistency is trivial.
A single tool for a weather service feels too thin; typical weather APIs offer multiple endpoints (current, forecast, alerts), so this count is insufficient for the apparent scope.
The tool set likely lacks essential features like forecasts, historical data, or location types, making it incomplete for realistic weather queries.
Maintenance
Related MCP Connectors
Weather MCP β wraps Open-Meteo API (free, no auth)
MCP server for weather with reasoning β umbrella advice, outdoor checks, city comparisons.
OpenWeather MCP β wraps the OpenWeatherMap API (openweathermap.org)
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceFetches current and three-day weather forecasts for any city using the wttr weather service through a Docker-based MCP server.2MIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather information for any location using FastMCP.-
- AlicenseNot gradedqualityCmaintenanceProvides weather data from WeatherAPI.com through MCP, enabling AI agents to query current conditions and forecasts via natural language.246 npmMIT
- FlicenseBqualityDmaintenanceProvides real-time weather information for cities worldwide using the OpenWeatherMap API, accessible through natural language queries via the MCP protocol.1-