mcp-server-weather
0
This project is an MCP server designed to invoke the Mateo Weather API and retrieve weather data based on geographic coordinates. It uses a Python-based implementation to define and run the MCP tool, with setup guidance provided for Windows users.
MCP Server that invokes Weather API
- Utilizes the Mateo Weather API via "https://api.open-meteo.com/v1/".
- Python implementation defines an MCP tool to invoke the API.
Installation
- For Windows, install uv:
winget install --id=astral-sh.uv -e
Project Setup
- Initialize and set up the virtual environment with
uv init
anduv venv
. - Activate it using
source .venv/bin/activate
and add dependenciesuv add "mcp[cli]" httpx
.
Usage
- Run the server with
mcp dev server.py
. - Access the MCP Inspector at
http://127.0.0.1:6274
. - Use "Tools -> List Tools -> get_current_weather" to get weather details by entering latitude and longitude.