Skip to main content
Glama

Weather API

MCP Server x402 License: MIT

当前天气和 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/fetchx402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试的循环。

工具

工具

方法

路径

价格

描述

data_get_weather

POST

/api/weather

$0.003

获取某个位置当前天气和预报

data_get_weather

当您需要任一位置的当前天气状况或 7 天预报时,可使用此工具。返回 JSON 格式的气象数据。

参数

名称

类型

必填

描述

latitude

number

纬度(-90 到 90)

longitude

number

经度(-180 到 180)

city

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,零注册。

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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