Back to MCP directory
publicPublicdnsLocal runtime

mcp-gaodeweather-server

一个通过高德地图API获取城市天气信息的演示项目

article

README

🚀 使用高德地图天气接口获取城市天气信息示例

本示例借助高德地图的天气接口,可轻松获取当前城市的天气信息,为你提供便捷的天气查询体验。

🚀 快速开始

✨ 主要特性

  • 利用高德地图天气接口获取城市天气信息。
  • 支持通过MCP服务器和Smithery工具进行配置与安装。

📦 安装指南

请按照以下步骤完成安装与配置:

  1. 注册高德开发者账号:访问 高德开放平台 并注册一个开发者账号。
  2. 申请API Key:登录后,进入“我的应用”创建新应用,并在“应用详情”中获取你的 API Key。
  3. 配置MCP服务器
    • 在MCP配置文件中添加一个名为 gaodeweather 的服务,指定其命令为 uvx 并传入参数 mcp-gaodeweather-server
    • 设置环境变量 GAODE_KEY 为你的高德API Key。
  4. 启动服务:通过Claude Desktop启动配置好的MCP服务器。

MCP 配置示例

{
  "mcpServers": {
    "gaodeweather": {
      "name": "gaodeweather",
      "command": "uvx",
      "args": [
        "mcp-gaodeweather-server"
      ],
      "env": {
        "GAODE_KEY": "your_apikey_here"
      }
    }
  }
}

使用Smithery安装

要通过 Smithery 自动安装 mcp-gaodeweather-server 到Claude Desktop,可执行以下命令:

npx -y @smithery/cli install @kevinkelin/mcp-gaodeweather-server --client claude

🔍 注意事项

  • 请将 your_apikey_here 替换为你的高德API Key。
  • 安装命令会在Claude Desktop中自动配置并启动服务。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client