mcp-server-weather

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

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