amap-weather-mcp-server logo

amap-weather-mcp-server

by ACAne0320

A Model Context Protocol (MCP) server for querying Chinese city weather based on the Amap API. It allows users to easily retrieve real-time weather conditions and forecasts for cities in China.

View on GitHub

Last updated: N/A

What is amap-weather-mcp-server?

This is an MCP server that provides weather information for Chinese cities using the Amap API. It allows users to query real-time weather conditions and future weather forecasts.

How to use amap-weather-mcp-server?

To use this server, you need an Amap API key. After cloning the repository and installing the dependencies, you can start the MCP server using uv run weather.py. You can then use an MCP client to call the get_current_weather, get_weather_forecast, and search_city functions.

Key features of amap-weather-mcp-server

  • Uses Amap weather API for accurate Chinese city weather data

  • Supports querying real-time weather conditions

  • Supports querying weather forecasts for the next 3-4 days

  • Supports intelligent city name recognition, including city and district-level queries

Use cases of amap-weather-mcp-server

  • Integrating weather information into AI applications

  • Displaying weather data in a user interface

  • Providing weather forecasts to users

  • Automating weather-related tasks

FAQ from amap-weather-mcp-server

What data source does this server use?

This server uses the Amap Open Platform weather data API.

What areas does this server support?

This server only supports weather queries for cities in mainland China.

Are there any request frequency limits?

The Amap API may have request frequency limits.

How should I enter the city name?

It is recommended to include administrative divisions such as 'city', 'county', or 'district' when entering city names.

What do I do if the API request fails?

Ensure that the environment variables are configured correctly, especially the AMAP_API_KEY.