Skip to main content
Glama
DongDong1997

Weather MCP Server

by DongDong1997

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WEATHER_API_KEYYes和风天气 API Key

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_current_weatherA

获取指定城市的实时天气。

Args:
    location: 城市名称(如"北京")、经纬度(格式"lng,lat"如"116.41,39.92")或 Location ID。
    lang: 可选,多语言设置(如 "zh"、"en"),不传则用服务端默认。
    unit: 可选,数据单位,"m" 公制(默认)/"i" 英制。
get_forecastB

获取指定城市的天气预报。

Args:
    location: 城市名称、经纬度("lng,lat")或 Location ID。
    days: 预报天数,支持 3 / 7 / 10 / 15 / 30 天,默认 7 天。
get_warningsA

获取指定城市当前生效中的天气预警。

Args:
    location: 城市名称、经纬度("lng,lat")或 Location ID。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/DongDong1997/weather'

If you have feedback or need assistance with the MCP directory API, please join our Discord server