google-maps-platform-code-assist-mcp
MCP server that retrieves up-to-date Google Maps Platform documentation and code samples to ground AI-generated code in official guidance.
README
[][npm-pkg]
[][license]
[
][Discord server]
Google Maps Platform Code Assist MCP toolkit (Alpha)
European Economic Area (EEA) developers If your billing address is in the European Economic Area, effective on 8 July 2025, the Google Maps Platform EEA Terms of Service will apply to your use of the Services. Functionality varies by region. Learn more.
Description
This repository contains code for a Model Context Protocol (MCP) server provides a tool (retrieve-google-maps-platform-docs) that retrieves context from fresh versions of Google Maps Platform documentation and code samples (including guides, API references, GitHub code sample repositories, and Terms of Service).
When used with an AI agent for coding assistance, this MCP server helps ground implementation plans and generated code in relevant, up-to-date, official Google Maps Platform guidance.
Requirements
- An MCP client, such as the MCP clients built into Gemini CLI, Gemini Code Assist, Cline, Roo Code, Claude Code, Cursor, Windsurf's Cascade, Firebase Studio and other AI coding assistants.
- A local machine on which to clone and run the MCP server that the MCP client can access.
- Node.js and npm (install) on the local machine.
Installation
Install for MCP clients that support npm installation
For any MCP client that supports installation via npm, use the command line to install the @googlemaps/code-assist-mcp MCP server to your local machine:
npx -y @googlemaps/code-assist-mcp
Install via JSON configuration (all other MCP clients)
Most MCP clients have a JSON file for their MCP configuration such as mcp.json (e.g. VSCode, Cursor) or mcp_config.json (Windsurf). Add the following to the MCP configuration file.
{
"mcpServers": {
"google-maps-platform-code-assist": {
"command": "npx",
"args": ["-y", "@googlemaps/code-assist-mcp"]
}
}
}
To deploy it in Gemini Code Assist follow these instructions.
MCP Tools and Resources
This toolkit provides tools and resources to ground AI-generated code in official, up-to-date Google Maps Platform guidance.
-
retrieve-google-maps-platform-docs(Tool): Submits a query to a hosted Retrieval Augmented Generation (RAG) engine that searches fresh versions of Google Maps Platform official documentation and code samples and returns relevant text or code to augment the context of generative AI responses. -
retrieve-instructions(Tool) /instructions(Resource): Used by the MCP client to get crucial system instructions and a preamble before callingretrieve-google-maps-platform-docs.
The intended use of these tools is to enrich the context of Generative AI models with the goal of reducing model hallucinations containing incorrect, irrelevant, inappropriate, or nonsensical content regarding Google Maps Platform. As your use of Google Maps Platform must comply with the Google Maps Platform Terms of Service, you should evaluate the performance of your model with the Google Maps Platform Code Assist toolkit against the Google Maps Platform documentation and the Google Maps Platform Terms of Service to verify compliance. To learn more about some best practices, see Responsible AI.
This tool sends information including the MCP client's query and IP address to a Google-hosted RAG service. Use of this service is subject to the Google Privacy Policy.
Contributing
Contributions are welcome. If you'd like to contribute, send us a pull request and refer to our code of conduct and contributing guide.
Terms of Service
This toolkit provides tools to describe the use of Google Maps Platform services. Use of Google Maps Platform services is subject to the Google Maps Platform Terms of Service, however, if your billing address is in the European Economic Area, the Google Maps Platform EEA Terms of Service will apply to your use of the Services. Functionality varies by region. Learn more.
This toolkit is not a Google Maps Platform Core Service. Therefore, the Google Maps Platform Terms of Service (e.g. Technical Support Services, Service Level Agreements, and Deprecation Policy) do not apply to the code in this repository or the RAG service called by it.
Support
This toolkit is offered via an open source license. It is not governed by the Google Maps Platform Support (Technical Support Services Guidelines, the SLA, or the Deprecation Policy). However, any Google Maps Platform services used by the library remain subject to the Google Maps Platform Terms of Service.
This library adheres to semantic versioning to indicate when backwards-incompatible changes are introduced. Accordingly, while the toolkit is in version 0.x, backwards-incompatible changes may be introduced at any time.
If you find a bug, or have a feature request, please file an issue on GitHub. If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our developer community channels. If you'd like to contribute, please check the contributing guide.
You can also discuss this toolkit on our Discord server.
<!--repo-specific anchor links--> [npm-pkg]: https://npmjs.com/package/@googlemaps/code-assist-mcp
<!--constant anchor links--> [Discord server]: https://discord.gg/hYsWbmk [license]: LICENSE
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。