MCP.so
登录

China Weather MCP Server

@DLYZZT

基本信息

分类

媒体与设计

许可证

MIT

传输方式

stdio

作者

DLYZZT

关于 China Weather MCP Server

MCP server to query weather in Chinese cities

China Weather MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "china-weather-mcp-server": {
      "command": "uv",
      "args": [
        "pip",
        "install",
        "."
      ]
    }
  }
}

China Weather MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is China Weather MCP Server?

China Weather MCP Server is a Model Context Protocol (MCP) server that provides real-time weather information for Chinese cities using the AMap (AutoNavi) Weather API. It enables AI assistants to access current weather conditions across China.

How to use China Weather MCP Server?

Install Python 3.12+, install uv, clone the repository, and install dependencies with uv pip install .. Obtain an AMap API key and set it as the environment variable AMAP_API_KEY. For Claude Desktop, add a configuration entry pointing to the server directory and the weather.py script. The server exposes a single tool get_weather(city: str) to retrieve current weather for a specified Chinese city.

Key features of China Weather MCP Server

  • Real-time weather data retrieval for Chinese cities
  • Integration with AMap Weather API
  • Asynchronous request handling
  • Easy-to-use MCP interface

Use cases of China Weather MCP Server

  • AI assistants answering "What's the weather in Beijing?"
  • Automated weather checks for Chinese cities in conversational agents
  • Integrating current weather data into MCP‑compatible workflows

常见问题

1

What does China Weather MCP Server do?

It provides real‑time weather information for Chinese cities via the AMap Weather API, accessible through the Model Context Protocol.

2

How do I install and configure China Weather MCP Server?

You need Python 3.12+, uv, and an AMap API key. Clone the repo, install dependencies with `uv pip install .`, set the `AMAP_API_KEY` environment variable, and configure your MCP client (e.g., Claude Desktop) to run `weather.py` with uv.

3

What tool does China Weather MCP Server provide?

It provides one tool: `get_weather(city: str)`, which returns current weather data for the given Chinese city name.

4

What are the runtime requirements?

Python 3.12 or higher and the uv package manager. The server uses asynchronous request handling.

5

Where do I get an API key?

Obtain an API key from the AMap Developer Platform at https://lbs.amap.com/.

评论

媒体与设计 分类下的更多 MCP 服务器