mcp-weather
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-weatherGet the forecast for Seattle (lat 47.6062, lon -122.3321)"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π€οΈ Kaushik's Weather MCP Server
A production-ready Model Context Protocol (MCP) server built in TypeScript, connecting LLMs (such as Claude Desktop, Cursor, and custom AI agents) to real-time National Weather Service (NWS / NOAA) meteorological data.
π Live Proof of Integration
π Verified Working with Claude Desktop: Check out the live chat session demonstrating real-time forecast retrieval, alerts, and health diagnostics:
π View Live Claude AI Chat Proof
Related MCP server: mcp-weather
β¨ Architectural Highlights
ποΈ Modular Clean Architecture: Decoupled into dedicated service layers (
CacheService,RateLimiterService,NwsClient,Logger,Formatter).π‘ Official Meteorological Bulletins: Structured weather reports with standardized metadata and provider attribution.
β‘ In-Memory Caching (5-Min TTL): Thread-safe in-memory cache reducing upstream API traffic by up to 80%.
π‘οΈ Zero-Vibe Security Layer: Strict input sanitization, XSS entity escaping, and client-isolated rate limiting (100 req/min).
π Resilience & Fault Tolerance: Automated exponential backoff retries for HTTP
5xx/429errors and request timeout guards.π©Ί Observability & Diagnostics: Built-in
health_check,get_metrics, andclear_cachetools with structured JSON logging.
π Project Structure
weather/
βββ src/
β βββ config/ # Central configuration & runtime constants
β βββ services/ # Core business logic (Cache, RateLimiter, NwsClient, Formatter, Logger)
β βββ tools/ # MCP Tool handlers (alerts, forecast, diagnostics)
β βββ types/ # Strongly typed TypeScript interfaces
β βββ utils/ # Input sanitization and security helpers
β βββ index.ts # Server bootstrap, transport initialization & graceful shutdown
βββ tests/
β βββ unit/ # Unit test suites (utils, sanitizer, cache)
β βββ integration/ # Upstream NWS API integration & retry tests
β βββ performance/ # Cache throughput & rate-limiting load tests
β βββ security/ # XSS, injection prevention & boundary tests
β βββ basic.test.ts # Comprehensive test runner
βββ build/ # Compiled ES module JavaScript distribution
βββ package.json
βββ tsconfig.jsonπ οΈ MCP Tools
Tool | Parameters | Description |
|
| Retrieves real-time period forecasts (temperatures, winds, conditions) for US coordinates. |
|
| Fetches active severe weather alerts, warnings, and meteorological advisories. |
| None | Returns runtime health, uptime, heap memory usage, cache size, and API connection status. |
| None | Outputs performance diagnostics and active rate-limit client buckets. |
| None | Flushes the in-memory cache and returns the number of purged entries. |
π Getting Started
1. Clone & Install
git clone https://github.com/Kaushik2105/mcp-weather.git
cd mcp-weather
npm install2. Build
npm run build3. Run Test Suite
npm testπ Connecting to Claude Desktop
Add this configuration to your Claude Desktop configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"kaushik-weather": {
"command": "node",
"args": [
"c:/Workholic/LawSikho/POCs/weather/weather/build/index.js"
]
}
}
}Note: Restart Claude Desktop after saving the configuration.
π¬ Sample Prompts for Claude
"Show me the official forecast bulletin from Kaushik's weather tool for Los Angeles (Lat: 34.0522, Lon: -118.2437)"
"Are there any active weather alerts for Florida (FL)?"
"Run a health check diagnostic on Kaushik's weather MCP server."
π¨βπ» Author
Kaushik Karmakar
GitHub: @Kaushik2105
Live Integration Proof: Claude AI Chat
This server cannot be deployed
Maintenance
Related MCP Connectors
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Get US weather forecasts, active alerts, and current observations.
Provide real-time and forecast weather information for locations in the United States using naturaβ¦
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides real-time US weather alerts and forecasts by integrating with the National Weather Service API. It enables AI assistants to fetch state-specific alerts and detailed local forecasts using geographic coordinates.21-
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather alerts and forecasts from the National Weather Service for US locations, integrating with AI assistants via the Model Control Protocol.-
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather alerts and forecasts for US locations by integrating with the National Weather Service API. Supports both server and client interactions with optional LLM summarization.-
- FlicenseNot gradedqualityDmaintenanceProvides weather forecasts and alerts for US locations via the National Weather Service API, enabling AI assistants to deliver real-time weather information.8 npm-