npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

grande-weather-mcp-server

v1.0.0

Published

MCP Server for OpenWeather API - supports both SSE and STDIO modes / 天气 MCP 服务器

Readme

Weather MCP Server 🌤️

A Model Context Protocol (MCP) server that provides weather data from OpenWeather API. Supports both STDIO and SSE transport modes.

English | 中文


English

Features

  • 🌡️ Real-time Weather - Get current weather for any city
  • 📅 5-Day Forecast - Get weather forecast up to 5 days
  • 🌍 Bilingual Support - Works with English and Chinese city names
  • 🔌 Dual Transport - Supports both STDIO and SSE modes
  • 🔑 Flexible Auth - API key via URL, Header, or environment variable

Installation

Option 1: NPX (Recommended for STDIO)

No installation needed! Just configure your MCP client:

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "weather-mcp-server"],
      "env": {
        "OPENWEATHER_API_KEY": "your_api_key_here"
      }
    }
  }
}

Option 2: Global Install

npm install -g weather-mcp-server

Then configure:

{
  "mcpServers": {
    "weather": {
      "command": "weather-mcp",
      "env": {
        "OPENWEATHER_API_KEY": "your_api_key_here"
      }
    }
  }
}

Option 3: SSE Mode (Remote Server)

If deployed to a server (e.g., Render, Railway):

{
  "mcpServers": {
    "weather": {
      "transport": "sse",
      "url": "https://your-server.com/sse?key=your_api_key"
    }
  }
}

Available Tools

| Tool | Description | |------|-------------| | get-weather | Get real-time weather for a city | | get-forecast | Get 5-day weather forecast |

Examples

Ask your AI assistant:

  • "What's the weather in Tokyo?"
  • "Get me the 5-day forecast for New York"
  • "北京今天天气怎么样?"
  • "上海未来三天天气预报"

Self-Hosting (SSE Mode)

# Clone the repo
git clone https://github.com/your-username/weather-mcp-server
cd weather-mcp-server
npm install

# Start SSE server
npm run start:sse

# Or with custom port
PORT=8080 npm run start:sse

API Key

Get your free API key from OpenWeather.


中文

功能特点

  • 🌡️ 实时天气 - 获取任意城市的当前天气
  • 📅 5天预报 - 获取最多5天的天气预报
  • 🌍 双语支持 - 支持中英文城市名
  • 🔌 双传输模式 - 同时支持 STDIO 和 SSE 模式
  • 🔑 灵活认证 - 支持 URL、Header 或环境变量传递 API Key

安装使用

方式1: NPX 直接运行(推荐)

无需安装,直接配置 MCP 客户端:

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "weather-mcp-server"],
      "env": {
        "OPENWEATHER_API_KEY": "你的API密钥"
      }
    }
  }
}

方式2: 全局安装

npm install -g weather-mcp-server

然后配置:

{
  "mcpServers": {
    "weather": {
      "command": "weather-mcp",
      "env": {
        "OPENWEATHER_API_KEY": "你的API密钥"
      }
    }
  }
}

方式3: SSE 远程服务

如果已部署到服务器:

{
  "mcpServers": {
    "weather": {
      "transport": "sse",
      "url": "https://your-server.com/sse?key=你的API密钥"
    }
  }
}

可用工具

| 工具 | 描述 | |------|------| | get-weather | 获取城市实时天气 | | get-forecast | 获取5天天气预报 |

使用示例

向 AI 助手提问:

  • "东京现在天气怎么样?"
  • "帮我查一下纽约未来5天的天气"
  • "北京今天热不热?"
  • "深圳明天会下雨吗?"

获取 API Key

前往 OpenWeather 免费注册获取。


License

MIT © Grande350