Token导航 LogoToken导航TokenDH.com
Weather MCP Service (Philip Walsh) logo
地图位置stdio官方级别未说明来源级核验

Weather MCP Service (Philip Walsh)

MCP Server

Weathernode 是一个生产就绪的天气服务,通过 REST API 和 MCP 端点提供实时天气数据和预报。

工具数

0

提示词数

0

GitHub Stars

1

资源数

0
位置天气生产就绪TypeScriptAPI集成Docker

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Philip-Walsh

提供方

Philip-Walsh

最后核验

2026/5/17 20:23

运行时

Docker

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

docker run -p 3000:3000 \

详细介绍

Weathernode 翻译成中文是“天气节点”

一个可投入生产的天气服务,通过REST API和MCP(模型上下文协议)端点提供实时天气数据。

特点/特性

  • 双协议支持REST API和MCP终端点
  • 天气数据使用WeatherAPI.com获取当前天气及预报信息
  • 准备就绪,可投入生产Docker,Kubernetes,Helm图表
  • 安全速率限制、输入验证、跨域资源共享(CORS)
  • 监测健康检查和指标
  • TypeScript全面的类型安全与现代开发

快速入门

先决条件

安装

# Clone repository
git clone https://github.com/Philip-Walsh/weathernode.git
cd weathernode

# Install dependencies
npm install

# Set up environment
cp .env.example .env
# Add your WeatherAPI.com key to .env

# Start development server
npm run dev

服务器运行于: http://localhost:3000

API终端点

REST API

# Current weather
GET /api/weather?city=London

# Weather forecast
GET /api/forecast?city=London&days=5

# Default location weather
GET /api/local

# Health check
GET /api/health

MCP协议

# List available tools
POST /mcp
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}

# Get weather data
POST /mcp
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "get_weather",
    "arguments": {"city": "London"}
  }
}

发展

npm run dev          # Development server with hot reload
npm run build        # Build for production
npm run start        # Start production server
npm test             # Run test suite
npm run lint         # Lint code

部署

Docker

# Build image
docker build -t weathernode .

# Run container
docker run -p 3000:3000 \
  -e WEATHER_API_KEY=your_key_here \
  weathernode

Kubernetes(中文常译为“K8s”)

# Create secret
kubectl create secret generic weather-api-key \
  --from-literal=api-key=your_weatherapi_key_here

# Deploy with Helm
helm install weather-service ./helm/weather-service \
  --set env.WEATHER_API_KEY=your_key_here

文档

环境变量

WEATHER_API_KEY=your_weatherapi_key_here  # Required
DEFAULT_LOCATION=London                   # Optional
TEMP_UNIT=C                              # Optional
PORT=3000                                # Optional
NODE_ENV=development                     # Optional

许可证

麻省理工学院(MIT)

目录标签

目录标签

位置天气生产就绪TypeScriptAPI集成Docker天气数据本地部署RESTAPIMCP协议

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Docker

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononeremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP