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: US Weather MCP 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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
- FlicenseBqualityDmaintenanceProvides weather information for the United States through the Model Context Protocol. Enables users to query current weather conditions and forecasts for US locations.2
- FlicenseNot gradedqualityDmaintenanceProvides real-time weather data including temperature, humidity, and conditions for any city through the Model Context Protocol.4
- AlicenseNot gradedqualityDmaintenanceProvides current weather and multi-day forecasts for any location worldwide, integrable with MCP clients like Claude.4Apache 2.0
Related MCP Connectors
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
Weather data, forecast API, climate data, historical weather, alerts, agricultural & travel weather.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
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/Br0ski777/weather-api-x402'
If you have feedback or need assistance with the MCP directory API, please join our Discord server