About Mcp Server Weather
Mcp Server Weather is an MCP server that retrieves weather data through a Weather API. Its `get_current_weather` tool accepts latitude and longitude and returns weather data as JSON.
Key features
- 01Calls a Weather API
- 02Provides the `get_current_weather` tool
- 03Queries by latitude and longitude
- 04Returns weather data as JSON
Use cases
- 01Look up current weather for coordinates
- 02Test the weather tool in MCP Inspector
MCP support
The MCP server exposes Weather API data to clients through the `get_current_weather` tool, which takes latitude and longitude.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Server that invokes Weather API
- Weather API used - Mateo - https://api.open-meteo.com/v1/
- Server.py - Python code to define MCP tool and invoke API
Install uv - Rust based Python packager (windows)
winget install --id=astral-sh.uv -e
Project Setup
uv init
uv venv
source .venv/bin/activate
uv add "mcp[cli]" httpx
Run
mcp dev server.py
- The MCP Inspector is available at http://127.0.0.1:6274
- Connect -> Tools -> List Tools -> get_current_weather
- Enter a latitude and longitude, eg 63.4463991, 10.8127596
- "Tool Result" -> you'll see a JSON object with weather data
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.