Weather MCP Server

Weather MCP Server

Enables natural-language weather queries for U.S. states and coordinates, returning real-time alerts and forecasts from the National Weather Service API via MCP tools.

Category
Visit Server

README

šŸŒ¦ļø MCP Weather Assistant

A Model Context Protocol (MCP) project that connects a Groq-hosted LLM to a custom Weather MCP Server, allowing you to ask natural-language questions about weather and get real-time, tool-grounded answers sourced from the National Weather Service (NWS) API.

How It Works

User
  ↓
"Are there any weather alerts for CA?"
  ↓
Groq LLM
  ↓
Decides to call get_alerts_tool
  ↓
MCP Client
  ↓
MCP Weather Server
  ↓
National Weather Service API
  ↓
Real-time weather alerts
  ↓
Groq LLM
  ↓
Natural-language answer
  1. The user asks a question in plain English.
  2. The Groq LLM interprets the question and decides which tool to call (e.g. get_alerts_tool, get_forecast_tool).
  3. The MCP Client sends that tool call to the MCP Weather Server over the Model Context Protocol.
  4. The server queries the National Weather Service API for live data.
  5. Results flow back through the client to the LLM.
  6. The LLM turns the raw data into a clear, natural-language response for the user.

Features

  • šŸŒ¦ļø Real-time weather alerts by U.S. state
  • šŸ“ Weather forecasts by location (lat/long)
  • šŸ”Œ Built on the Model Context Protocol (MCP) — tools are exposed in a standardized way any MCP-compatible client can use
  • ⚔ Powered by Groq for fast LLM inference
  • 🧩 Clean separation between the LLM client and the weather tool server

Project Structure

.
ā”œā”€ā”€ client/            # MCP client — connects to Groq LLM and the MCP server
ā”œā”€ā”€ server/             # MCP weather server — exposes get_alerts_tool, get_forecast_tool, etc.
ā”œā”€ā”€ requirements.txt     # or package.json, depending on stack
└── README.md

(Adjust this tree to match your actual folder layout.)

Prerequisites

  • Python 3.10+ (or Node.js, depending on your implementation)
  • A Groq API key
  • Internet access (the server calls the public NWS API — no API key required for NWS)

Installation

git clone https://github.com/Krishna-Dhawangale/MCP.git
cd MCP
pip install -r requirements.txt

Configuration

Create a .env file in the project root:

GROQ_API_KEY=your_groq_api_key_here

Usage

  1. Start the MCP weather server:
    python server/weather_server.py
    
  2. Run the client:
    python client/main.py
    
  3. Ask a question:
    > Are there any weather alerts for CA?
    
    The client will route the query to the LLM, which calls the appropriate tool on the MCP server and returns a natural-language answer.

Available Tools

Tool Description
get_alerts_tool Fetches active weather alerts for a given U.S. state
get_forecast_tool Fetches the weather forecast for a given latitude/longitude

Roadmap

  • [ ] Add support for more locations (international)
  • [ ] Add caching for repeated queries
  • [ ] Add unit tests for tool handlers
  • [ ] Support additional MCP clients beyond Groq

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

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
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
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
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