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

Installation

  • For Windows, install uv: winget install --id=astral-sh.uv -e

Project Setup

  • Initialize and set up the virtual environment with uv init and uv venv.
  • Activate it using source .venv/bin/activate and add dependencies uv 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.