Skip to main content
Glama
Samarth201104

MCP-server-weather

Weather Intelligence MCP Server

A simple Weather Intelligence application built using the Model Context Protocol (MCP). This project demonstrates how to expose weather-related functionalities as MCP tools and access them through an MCP client.

Features

  • Current Weather

  • Weather Forecast

  • Rain Prediction

  • Compare Weather Between Cities

  • Activity Recommendation

  • Natural Language Prompt Routing

Related MCP server: Weather MCP Server

Tech Stack

  • Python

  • MCP Python SDK (FastMCP)

  • OpenWeather API

  • python-dotenv

Project Structure

mcp-server/
│── client.py          # MCP Client
│── server.py          # MCP Server
│── weather.py         # Weather API Logic
│── .env               # API Keys
│── requirements.txt
│── README.md

Installation

git clone <repository-url>
cd mcp-server

python -m venv venv

venv\Scripts\activate

pip install -r requirements.txt

Run the Project

Start the MCP Client:

python client.py

Example Prompts

  • What is the weather in Mumbai?

  • Forecast for Delhi

  • Will it rain in Pune?

  • Compare Mumbai and Chennai

  • Recommend activity in Bangalore

Project Workflow

User
   ↓
MCP Client
   ↓
MCP Server
   ↓
Weather Logic
   ↓
OpenWeather API

Author

Samarth More

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables users to get weather alerts and forecasts for U.S. locations using the National Weather Service API, with support for natural language queries including fun conversational tones.
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Provides current weather conditions, multi-day forecasts, and location search capabilities through integration with weather APIs, enabling natural language weather queries and comparisons.
    3
    -