Weather

v1.0.0Search & Data Extractionstable

A Model Context Protocol (MCP) server that provides weather data tools using the National Weather Service API. Implements get-alerts and get-forecast tools for retrieving weather alerts by region and forecasts by coordinates. Built with TypeScript an

gogolangmcpmcp-serversse
Share:
244
Stars
0
Downloads
0
Weekly
0/5

What is Weather?

Weather is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol (mcp) server that provides weather data tools using the national weather service api. implements get-alerts and get-forecast tools for retrieving weather alerts by region and fo...

A Model Context Protocol (MCP) server that provides weather data tools using the National Weather Service API. Implements get-alerts and get-forecast tools for retrieving weather alerts by region and forecasts by coordinates. Built with TypeScript an

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol (MCP) server that provides weather

Use Cases

Get weather forecasts and alerts
Retrieve regional weather data
vijaypss

Maintainer

LicenseMIT
Languagego
Versionv1.0.0
UpdatedApr 25, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y weather

Manual Installation

npx -y weather

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Weather

This MCP server wraps the National Weather Service (NWS) API and the Open-Meteo service to provide real-time weather data to AI assistants without requiring any API key. It exposes a 'get_weather' tool that accepts a city name and returns current conditions including temperature, wind speed, humidity, and a short forecast. Developers and end users can drop it into any MCP-compatible client to answer weather questions or build location-aware automation that reacts to live atmospheric data.

Prerequisites

  • Node.js 18 or later installed
  • npm or npx available on your PATH
  • An MCP-compatible client such as Claude Desktop
  • Optional: ANTHROPIC_API_KEY or OPENROUTER_API_KEY if you want AI-generated weather summaries
1

Run the MCP server with npx

The server can be launched directly with npx without a global install. This starts the stdio transport that MCP clients connect to.

npx -y weather
2

Add the server to Claude Desktop config

Open your Claude Desktop configuration file and add an entry for the weather server. No environment variables are required for basic use.

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "weather"]
    }
  }
}
3

Optionally configure an AI summary key

If you want Claude or OpenRouter to generate narrative weather summaries instead of raw data, add your API key to the env block in the config.

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "weather"],
      "env": {
        "ANTHROPIC_API_KEY": "your-anthropic-api-key"
      }
    }
  }
}
4

Restart Claude Desktop

Fully quit and relaunch Claude Desktop so it picks up the new MCP server entry from the configuration file.

5

Ask for weather in a conversation

Open a new chat in Claude Desktop and ask about current conditions for any city. The assistant will call the get_weather tool and display the results.

Weather Examples

Client configuration

Minimal Claude Desktop configuration to run the weather MCP server via npx with no API key required.

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "weather"]
    }
  }
}

Prompts to try

Example prompts that use the get_weather tool to retrieve current conditions and forecasts.

- "What is the current weather in Pune?"
- "Is it raining in London right now?"
- "What is the temperature in New York City?"
- "Give me a weather summary for Tokyo"
- "Will it be windy in Chicago today?"

Troubleshooting Weather

City name not recognized or returns empty data

The server uses Open-Meteo's geocoding. Try using the full English city name (e.g. 'New Delhi' instead of 'Delhi'). Avoid abbreviations or local names that may not match the geocoder.

npx reports 'weather' package not found or installs the wrong package

The npm package name 'weather' is a common name. If the wrong package installs, clone the repository from https://github.com/vijaypss/MCP and run 'npm install && npm run mcp' directly, pointing your MCP client at the local process.

Frequently Asked Questions about Weather

What is Weather?

Weather is a Model Context Protocol (MCP) server that model context protocol (mcp) server that provides weather data tools using the national weather service api. implements get-alerts and get-forecast tools for retrieving weather alerts by region and forecasts by coordinates. built with typescript an It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Weather?

Install via npm with the command: npx -y weather. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Weather?

Weather works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Weather free to use?

Yes, Weather is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "weather": { "command": "npx", "args": ["-y", "weather"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Weather?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides