This repository contains the Google Maps Platform Code Assist toolkit, a Model Context Protocol (MCP) server that enhances the responses from large language models (LLMs) used for developing applications with the Google Maps Platform by grounding them in the official, up-to-date documentation and code samples.
Install the Google Maps Platform Code Assist extension for Gemini CLI
- Install the Gemini CLI (alternative installation methods)
npm install -g @google/gemini-cli
-
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
.
- Verify the installation by running
- 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"] } } }
- Option 1 - Install Code Assist as a Gemini CLI extension with static preamble, the MCP tool, and basic Google Maps theme:
For information about installing and using the toolkit with any MCP client, as well as terms of use, see the Code Assist toolkit README.
Use these example prompts to get started with the Code Assist MCP server or supported AI agents:
- Show me how to use the Routes API in Node.js.
- What are the authentication options for Google Maps Platform?
- Give me a code sample for displaying a map with markers.
- Explain the difference between Place Autocomplete and Place Search.
- How do I set up billing for Google Maps Platform?