Skip to main content
Glama
Yaseen-md

Weather MCP Server

by Yaseen-md

Weather MCP Server

CI License: MIT

一个基于 Model Context Protocol (MCP) 标准的服务器,使用 Open-Meteo API 根据城市名称提供实时天气预报。

功能

  • 地理编码:自动将城市名称转换为地理坐标(纬度和经度)

  • 实时天气:获取当前温度、风速和天气代码

  • MCP 集成:完全兼容 Claude Desktop 等 MCP 客户端

  • 无需 API 密钥:使用免费、开源的 Open-Meteo API——无需注册!

Related MCP server: Weather MCP Server

环境要求

  • Node.js >= 18.x

  • npm 或 yarn

安装

  1. 克隆仓库:

git clone https://github.com/Yaseen-md/weather-mcp-server.git
cd weather-mcp-server
  1. 安装依赖:

npm install
  1. 构建服务器:

npm run build

开发

无需构建即可直接运行服务器:

npm run dev

与 Claude Desktop 集成

要将此天气服务器与 Claude Desktop 一起使用,您需要配置 claude_desktop_config.json 文件。

Mac: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

添加以下配置:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": [
        "C:/path/to/your/weather-mcp-server/build/index.js"
      ]
    }
  }
}

(请确保将路径替换为构建后的 index.js 文件的实际绝对路径。)

可用工具

get_weather

获取指定城市的当前天气。

输入参数:

  • city(字符串):城市名称(例如:"Delhi"、"Tokyo"、"London"、"San Francisco")

返回: 摄氏温度、风速和天气代码。

许可证

本项目基于 MIT 许可证 授权。

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to fetch current weather conditions and forecasts for any city using the Open-Meteo API. Provides temperature, precipitation, and hourly forecast data through natural language queries.
  • F
    license
    B
    quality
    D
    maintenance
    Enables real-time weather information and forecasts using the Open-Meteo API. Provides current weather conditions and forecast data for any location specified by latitude and longitude coordinates.
    1
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time and historical weather data for any city worldwide, including forecasts, air quality, and marine conditions, using the free Open-Meteo API.
    21
    MIT

View all related MCP servers

Related MCP Connectors

  • Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

  • Weather forecasts from MET Norway (Yr): geocoding plus hourly forecasts worldwide.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yaseen-md/weather-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server