harsha-mcp-weather-server

Harzsha/harsha-mcp-weather-server

3.2

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

The Harsha MCP Weather Server is a specialized server that provides weather information for specified cities using the Model Context Protocol (MCP).

Tools
  1. get-weather

    Takes a city name as input and returns the weather data for that city.

Harsha MCP Weather Server

Description

Preview

This project is a weather server that provides weather information for a given city using the Model Context Protocol (MCP). It utilizes the @modelcontextprotocol/sdk to create a server with a get-weather tool. This tool takes a city name as input and returns the weather data for that city. The server fetches geocoding data from geocoding-api.open-meteo.com to get the coordinates of the city, and then fetches weather forecast data from api.open-meteo.com using those coordinates.

Installation

  1. Clone the repository:

    git clone <repository_url>
    cd harsha-mcp-weather-server
    
  2. Install dependencies:

    npm install
    

Usage

To run the server, use the following command:

npm start