谷歌地图平台代码辅助

zihengzhaoo/MCP_Server1024
Hosted
0 Stars 38 次浏览 更新于 2026-08-23

此README提供了安装Gemini CLI和Google地图平台扩展的说明,该扩展可以通过作为Gemini CLI扩展安装或手动将MCP服务器配置添加到settings.json文件中来完成。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "google-maps-platform-code-assist": {
      "args": [
        "-y",
        "@googlemaps/code-assist-mcp@latest"
      ],
      "command": "npx",
      "env": {
        "AMAP_MAPS_API_KEY": "您在高德官网上申请的key"
      }
    }
  }
}

该服务需要配置环境变量:AMAP_MAPS_API_KEY

可用工具 (2 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

retrieve-google-maps-platform-docs 2 个参数 需填 1 项

Searches Google Maps Platform documentation, code samples, architecture center, trust center, GitHub repositories (including sample code and client libraries for react-google-maps, flutter, compose, utilities, swiftui, and more), and terms of service to answer user questions. CRITICAL: You MUST call the `retrieve-instructions` tool or load the `instructions` resource BEFORE using this tool. This provides essential context required for this tool to function correctly.

必填参数:prompt

retrieve-instructions

CRITICAL: Call this tool first for any queries related to location, mapping, addresses, routing, points of interest, location analytics, or geospatial data (e.g., Google Earth). It provides the foundational context on Google Maps Platform (APIs for maps, routes, and places) and best practices that are essential for the other tools to function correctly. This tool MUST be called before any other tool.

该工具无需必填参数,直接调用即可

服务介绍

  1. Install the Gemini CLI
npm install -g @google/gemini-cli
  1. Install the Google Maps Platform extension
    • Option 1 - Install Code Assist as a Gemini CLI extension with static preamble, the MCP tool, and basic Google Maps theme:
      gemini extensions install https://github.com/googlemaps/platform-ai.git
      
      • Verify the installation by running gemini mcp list.
    • Option 2 - Add the MCP server config manually to your ~/.gemini/settings.json file.
{
 "mcpServers": {
   "google-maps-platform-code-assist": {
     "command": "npx",
     "args": ["-y", "@googlemaps/code-assist-mcp@latest"],
      "env": {
              "AMAP_MAPS_API_KEY": "您在高德官网上申请的key"
            }
   }
 }
}

相关 MCP 服务