Weather MCP Server
Weather MCP Server
一个基于 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
安装
克隆仓库:
git clone https://github.com/Yaseen-md/weather-mcp-server.git
cd weather-mcp-server安装依赖:
npm install构建服务器:
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 许可证 授权。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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.
- FlicenseBqualityDmaintenanceEnables 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
- FlicenseNot gradedqualityDmaintenanceEnables AI agents like GitHub Copilot to retrieve real-time weather data for any city using the Open-Meteo API, no API key required.9
- AlicenseNot gradedqualityDmaintenanceProvides real-time and historical weather data for any city worldwide, including forecasts, air quality, and marine conditions, using the free Open-Meteo API.21MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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