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 分