weather-mcp-server

weather-mcp-server

0

The Weather MCP Server is a Model Context Protocol server designed to fetch weather data using the Open-Meteo API. It can be integrated with Cursor IDE to deliver weather information through the MCP protocol.

Weather MCP Server in TypeScript

A Model Context Protocol (MCP) server for fetching weather data using the Open-Meteo API. This server integrates with Cursor IDE to provide weather information through the MCP protocol.

Usage

  • As a Langchain Agent
  • In Cursor IDE: Add specific configurations to cursor.json.
  • Test using MCP Client by running get-weather.ts.

Installation

  • Clone the repository using git clone https://github.com/rehmat123/weather-mcp-server.git.
  • Install dependencies and build with npm i and npm build.

API

The server provides getWeather, which returns:

  • temperature: Current temperature in Celsius
  • conditions: Weather conditions description
  • humidity: Humidity percentage
  • windSpeed: Wind speed in m/s.