Weather Mcp Server

io.github.jaredco-ai由 GitHub 账号 jaredco-ai 发布v1.0.1更新于 Oct 24, 2026

Fast - accurate weather conditions and forecasts by city or coordinates.

已验证STDIO仅桌面位置与生活

概览

AI 生成的概览

一个天气 MCP 服务器,让助手按城市、邮编或坐标获取全球实时天气和多日预报。

可以做什么
按城市名、邮编或坐标查询某地实时天气,包括温度、天气状况、风速和湿度。获取某地最长 14 天的多日预报。生成面向施工、出行或活动场景的 7 天规划预报。返回结果紧凑,针对大模型使用做了 token 优化。
适用场景
适合让助手回答日常天气问题,或结合预报协助安排户外作业、出行和活动。客户端无需账号或密钥,接入成本较低。
运行要求
以本地 npm 包通过 stdio 运行,需要 Node.js;README 另提供托管远程端点。清单未声明客户端 API 密钥或环境变量。自行部署时服务器需要 World Weather Online 的 API 密钥(环境变量 WEATHER_API_KEY),并需要网络访问。
安装前请注意
自行部署需在 WEATHER_API_KEY 中提供 World Weather Online API 密钥,README 要求仅在服务端保存且不得提交到代码库。README 提到运维指标端点,未经访问控制不应公开暴露。位置信息会发送给天气数据提供方;README 称不记录位置和原始提供方响应。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Weather Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

🌦 WeatherTrax MCP Server

Fast, reliable weather data for Claude and other MCP clients.
Get current conditions and multi-day forecasts for any location worldwide.

🌐 Remote MCP Server (no install required)
https://mcp-weathertrax.jaredco.com/mcp


[License: MIT] [MCP Protocol] [MCP Registry]


⚡ 10-Second Demo

Ask Claude:

“What’s the weather in Miami tomorrow?”

Claude will call the MCP weather server and return a forecast instantly.

Example API call:

bash
curl -X POST https://mcp-weathertrax.jaredco.com/tools/weatherTool \  -H "Content-Type: application/json" \  -d '{"location":"Miami","query_type":"current"}'

🚀 Features

  • Real-time Weather Data – Current conditions, temperature, humidity, wind speed
  • Multi-day Forecasts – Up to 14-day forecasts
  • Planning Tool – 7-day forecasts optimized for events or construction
  • Flexible Locations – City names, ZIP codes, or coordinates
  • Token-Efficient – Compact responses optimized for LLM usage
  • Production-Ready – Rate limiting and monitoring
  • Public API – No API keys required
  • MCP Compliant – Full JSON-RPC 2.0 support

⚡ Quick Start

Claude

In Claude or Claude Desktop, open Settings → Connectors → Add connector and use:

Name: WeatherTraxURL:  https://mcp-weathertrax.jaredco.com/mcp

You can now ask:

What’s the weather in New York this weekend?

🌐 Direct API Usage

Health Check

bash
curl https://mcp-weathertrax.jaredco.com/healthz

MCP Manifest

bash
curl https://mcp-weathertrax.jaredco.com/.well-known/mcp/manifest

💡 Usage Examples

Current Weather

bash
curl -X POST https://mcp-weathertrax.jaredco.com/tools/weatherTool \  -H "Content-Type: application/json" \  -d '{    "location": "San Francisco, CA",    "query_type": "current"  }'

Example response:

json
{  "summary": "It is currently 54°F and Clear in San Francisco.",  "temp_high": 54,  "temp_low": 54,  "condition": "Clear",  "wind": "5 mph W",  "humidity": 65}

Multi-Day Forecast

bash
curl -X POST https://mcp-weathertrax.jaredco.com/tools/weatherTool \  -H "Content-Type: application/json" \  -d '{    "location": "New York",    "query_type": "multi_day",    "num_days": 3  }'

🛠 Available Tools

weatherTool

Retrieve current weather or forecasts.

Input:

json
{  "location": "city name or coordinates",  "query_type": "current | multi_day",  "num_days": "optional forecast length"}

weatherPlanningTool

7-day planning forecast for outdoor work or events.

Input:

json
{  "location": "city or place",  "context": "construction | travel | event",  "timeframe": "optional timeframe hint"}

🔗 MCP Protocol Integration

This server supports the full MCP JSON-RPC protocol.

Example tool call:

bash
curl -X POST https://mcp-weathertrax.jaredco.com/mcp \  -H "Content-Type: application/json" \  -H "Accept: application/json, text/event-stream" \  -d '{    "jsonrpc":"2.0",    "id":1,    "method":"tools/call",    "params":{      "name":"weatherTool",      "arguments":{        "location":"London",        "query_type":"current"      }    }  }'

🧪 Testing

Run locally in one terminal:

bash
npm installnpm start

In another terminal, run the protocol tests:

bash
npm test

Release smoke suite:

bash
npm run test:full

npm run test:full currently runs the same supported end-to-end smoke suite. The old pre-Streamable-HTTP regression harness remains available as npm run test:legacy; it is retained for reference and is not a release gate.

Deployment configuration

Set these server-side environment variables; never commit them:

VariableRequiredPurpose
WEATHER_API_KEYYesWorld Weather Online API key.
PORTNoHTTP listener port; defaults to 3000.
TRUST_PROXYProduction-dependentNumber of trusted reverse-proxy hops; set to 1 for a single known proxy.
ALLOWED_ORIGINSNoComma-separated browser origins allowed to call MCP; defaults to https://claude.ai.

The service exposes aggregate, non-identifying operational counters at /metrics. Do not place this endpoint behind a public dashboard without adding appropriate access control.


🔒 Privacy

Privacy policy available at:

https://mcp-weathertrax.jaredco.com/privacy

Key points:

  • Aggregate operational metrics only; locations and raw provider responses are not logged
  • Short-lived in-memory caching reduces duplicate provider requests
  • No cookies or tracking
  • HTTPS enforced

🛠 Development

Clone the repo:

bash
git clone https://github.com/jaredco/weather-mcp-server.gitcd weather-mcp-servernpm installnpm start

Server runs locally at:

http://localhost:3000

📦 Technology Stack

  • Node.js
  • Express 5
  • @modelcontextprotocol/sdk
  • World Weather Online API
  • Railway hosting

📄 License

MIT License.


🌟 Acknowledgments

Built using the Model Context Protocol by Anthropic.

Weather data provided by World Weather Online.


📊 Status

Server: Production
API Version: 1.0.1
MCP Protocol: 2025-03-26


Made with ☀️ for Claude and MCP

来源:README.md,提交 859a57c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分