weather-api
Weather API
当前天气和 7 天预报——温度、湿度、风力、降水。覆盖全球任意位置。通过 x402 按次付费(基于 Base L2 的 USDC)——无需 API 密钥,无需注册,没有速率限制墙。
klymax402 市场的一部分——为 AI 智能体提供 100 个 x402 微支付 API,一个钱包,USDC on Base。
快速开始 -- MCP
添加到您的 MCP 客户端配置(Claude Desktop、Cursor、ElizaOS 等):
{
"mcpServers": {
"weather-api": {
"url": "https://weather-api.api.klymax402.com/mcp"
}
}
}Related MCP server: weather-forecast-server
快速开始 -- HTTP (x402)
curl -X POST "https://weather-api.api.klymax402.com/api/weather" \
-H "Content-Type: application/json" \
-d '{}'
# -> 402 Payment Required, with an x402 payment challenge in the response body任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试的循环。
工具
工具 | 方法 | 路径 | 价格 | 描述 |
| POST |
| $0.003 | 获取某个位置当前天气和预报 |
data_get_weather
当您需要任一位置的当前天气状况或 7 天预报时,可使用此工具。返回 JSON 格式的气象数据。
参数
名称 | 类型 | 必填 | 描述 |
| number | 否 | 纬度(-90 到 90) |
| number | 否 | 经度(-180 到 180) |
| string | 否 | 城市名称(替代 纬度/经度,使用地理编码) |
示例响应:
{"location":{"city":"Paris","country":"France","latitude":48.85,"longitude":2.35},"current":{"temperature":18.5,"humidity":62,"windSpeed":12,"precipitation":0,"weatherCode":"partly_cloudy"},"forecast":[{"date":"2026-04-14","tempMin":12,"tempMax":20,"precipitation":0.2}]}适用场景:旅行规划、户外活动安排、农业监测、物流规划,以及构建感知天气的应用程序。
不适用于:时区信息(请使用 utility_convert_timezone)、股票数据(请使用 finance_get_stock_price)。
示例智能体提示
“任何位置的当前天气状况或 7 天预报”
支付
协议:x402 -- 基于 HTTP 的原生按次付费,无需注册,无需 API 密钥
网络:Base L2(
eip155:8453)资产:USDC
Facilitator:Coinbase CDP(主要)、PayAI(备用)
也可以通过 ATXP 访问(OAuth 封装的 x402,RFC 9728 受保护资源元数据)
klymax402 的一部分
面向 AI 智能体的 100 个 x402 微支付 API——一个钱包,USDC on Base,零注册。
完整 API 参考:https://klymax402.com/llms-full.txt
实时统计数据:https://klymax402.com/stats
许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Current weather and 7-day forecast for any place (MET Norway). $0.006/call via x402.
Global weather via MET Norway, pay-per-call in USDC on Base via x402.
1Weather forecast for a city or lat/lon, one call. x402, 0.01 per call.
Current weather and forecasts for any coordinates, backed b… — paid per call (x402/credits), 1 tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides live weather data and forecasts for any location worldwide through both REST API and MCP endpoints. Supports current weather, multi-day forecasts, and various location formats including city names, coordinates, ZIP codes, and airport codes.1-
- AlicenseNot gradedqualityBmaintenanceProvides current weather and multi-day forecasts for any location worldwide, integrable with MCP clients like Claude.6Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides real-time weather data and multi-day forecasts for any location worldwide.61 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides current weather conditions and 5-day/3-hour forecasts for any location using OpenWeatherMap, accessible through natural language in MCP clients.1ISC