Weather India MCP

Weather India MCP

Provides real-time weather forecasts and alerts for Indian metro cities using Open-Meteo, with support for named city queries and email sharing of weather summaries.

Category
Visit Server

README

Weather India MCP

A Model Context Protocol (MCP) server that provides real-time weather forecasts and alerts for India's major metro cities, powered by the Open-Meteo API (free, no API key required).

Tools

Tool Description
get_forecast Current weather + 5-day forecast for any location by latitude/longitude
get_india_city_forecast Current weather + 5-day forecast for a named Indian metro city
get_india_weather_alerts Scans all Indian metros and returns active severe weather alerts
share_weather_via_email Fetches weather for a city or coordinates and emails a formatted summary to any address

Supported Cities

Mumbai, Delhi, Bengaluru, Hyderabad, Chennai, Kolkata, Ahmedabad, Pune, Jaipur, Lucknow, Chandigarh, Bhopal, Thiruvananthapuram, Guwahati, Patna

Alert Severity Levels

  • Extreme — temperature ≥ 45°C, cyclonic winds ≥ 90 km/h, violent rain/hail/thunderstorms
  • Severe — temperature ≥ 42°C, winds ≥ 60 km/h, heavy rain, dangerous heat+humidity
  • Moderate — temperature ≥ 40°C, winds ≥ 40 km/h, moderate rain/snow

Prerequisites

Setup

1. Clone and install dependencies

git clone https://github.com/YOUR_USERNAME/weather.git
cd weather
npm install

2. Build

npm run build

This compiles TypeScript to build/index.js and makes it executable.

3. Configure Cursor

Add the server to your Cursor MCP config at ~/.cursor/mcp.json:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": ["/absolute/path/to/weather/build/index.js"]
    }
  }
}

Replace /absolute/path/to/weather with the actual path where you cloned the repo (e.g. /Users/yourname/weather).

4. Restart Cursor

After saving mcp.json, restart Cursor or reload the window (Cmd+Shift+P → Reload Window). The three weather tools will appear under Settings → MCP.

Usage Examples

Once configured, you can ask your AI assistant things like:

  • "What's the weather in Mumbai right now?"
  • "Are there any severe weather alerts across Indian cities today?"
  • "Give me the 5-day forecast for Chennai."
  • "What's the weather at latitude 28.6, longitude 77.2?"
  • "Share the Bengaluru weather summary to myemail@gmail.com"

Demo

1. City Forecast — get_india_city_forecast

Ask for the weather in any supported Indian city and get current conditions plus a structured 5-day forecast.

Email share prompt in Cursor


2. Email Sharing — share_weather_via_email

Ask the assistant to share weather details to an email address. It fetches live data and dispatches a formatted summary instantly.

Weather email in Gmail inbox


3. Email Received

The recipient gets a clean HTML email with the city name, current conditions, and the full 5-day forecast — including any active weather alerts in the subject line.

City forecast for Bengaluru

Development

# Watch mode — auto-recompiles on save
npm run watch

Email Setup (for share_weather_via_email)

The email tool sends weather summaries via SMTP. Configure it in ~/.cursor/mcp.json under the weather server's env block:

"env": {
  "SMTP_HOST": "smtp.gmail.com",
  "SMTP_PORT": "587",
  "SMTP_USER": "your-gmail@gmail.com",
  "SMTP_PASS": "your-app-password",
  "SMTP_FROM": "Weather India MCP <your-gmail@gmail.com>"
}

For Gmail: Generate an App Password (requires 2FA enabled) and use it as SMTP_PASS. Your regular Gmail password will not work.

Works with any SMTP provider — just change SMTP_HOST and SMTP_PORT accordingly (e.g. Outlook, Zoho, custom SMTP).

No API Key Required

This server uses Open-Meteo, which is completely free and requires no authentication.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured