AA

acane0320/amap-weather-mcp-server

Developer tools

This page was translated automatically. Technical details may differ from the original. View the original

17 stars 9 forks Quality 42 Trend 21

基于高德地图 API 的中国城市天气查询 MCP Server

Overview

基于高德地图 API 的中国城市天气查询 Model Context Protocol (MCP) 服务。该服务允许用户通过简单的请求获取中国各城市的实时天气状况和未来几天的天气预报。 - 使用高德地图天气 API 获取精确的中国城市天气数据 - 支持查询实时天气状况 - 支持查询未来 3-4 天的天气预报 - 支持智能城市名称识别,包括城市、区县级别的查询 - 支持城市名称搜索功能 - 实现为标准 MCP 服务,易于集成到 AI 应用中 如果你需要自行创建客户端测试该 MCP 服务,请手动启动。 在终端中执行以下命令启动 MCP 服务: 如果想在 Claude Desktop 中使用,请添加服务器配置: 请在文本编辑器中打开 Claude for Desktop App 配置,路径参考如下 ~/Library/Application Support/Claude/claude_desktop_config.json 如果文件不存在,请确保创建该文件。 1. get_current_weather: 获取城市当前天气状况 2. get_weather_forecast: 获取未来几天的天气预报 3. search_city: 搜索城市名称 - city: 中国城市名称,需要包含省/市/县等行政区划标识,如"北京市"、"上海市"、"海珠区"等 - 城市名称 - 天气状况 - 温度 - 风向 - 风力 - 湿度 - 发布时间 - city: 中国城市名称,需要包含省/市/县等行政区划标识,如"北京市"、"上海市"、"浙江省杭州市"等

Install

This server does not publish a one-line install command.

Open the repository installation guide New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "amap-weather-mcp-server": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather", "run", "weather.py" ], "env": { "AMAP_API_KEY": "YOUR_API_KEY_HERE" } } } }