mcp-weather

vinothvino42/mcp-weather

3.1

If you are the rightful owner of mcp-weather and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

MCP Weather is a Model Context Protocol server that provides real-time weather information for any city.

Tools
1
Resources
0
Prompts
0

MCP Weather

MCP Weather is a Model Context Protocol (MCP) server that provides current weather information for any city. It exposes an API endpoint to fetch real-time weather data by city location.

Features

  • 🌤️ Fetches current weather data by city name
  • 🌡️ Returns temperature, humidity, wind speed, cloud cover, and precipitation

Screenshot of MCP Weather

Getting Started

Prerequisites

  • Node.js (v18 or above recommended)
  • npm or yarn

Installation

Clone the repository and install dependencies:

git clone https://github.com/vinothvino42/mcp-weather.git
cd mcp-weather
npm install

Running the Server

npm run build
npm run inspect # To inspect it with MCP Inspector

API Usage

Tools

  • get-weather
    • Prompt must include the city name

Prompt:

What's the weather in tuticorin?

Response:

Here’s the current weather in Tuticorin:

- Temperature: 28.3 °C
- Feels like: 31.6 °C
- Humidity: 64%
- Wind Speed: 6.7 km/h
- Cloud Cover: 100% (overcast)
- Precipitation: 0 mm (no rain)