How to integrate Google Maps MCP with Antigravity

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Google Maps logo
Antigravity logo
divider

How to integrate Google Maps MCP with Antigravity

Antigravity IDE is Google's agentic IDE, built on a VS Code-style editor and powered by models like Gemini 3.5 Flash, Gemini 3.1 Pro, Opus 4.6, and more. It treats the AI agent as a first-class teammate, planning, coding, and validating work through an Agent Manager dashboard with deep browser connectivity.

In this guide, I will explain the easiest and most secure way to connect your Google Maps account to Antigravity IDE via Composio Connect, so it can find walking directions from your hotel to conference center, show top-rated coffee shops near your location, embed a map of downtown restaurants on your website, and more without ever putting your account credentials at risk.

Also integrate Google Maps with

Why use Composio?

Composio provides:

  • Access to 1,000+ managed apps from a single MCP endpoint. This makes it convenient for agents to run cross-app workflows.
  • Programmatic tool calling. Allows LLMs to write code in a remote workbench to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool response handling outside the LLM context. This minimizes context bloat from large tool responses.
  • Dynamic just-in-time access to thousands of tools across hundreds of apps. Composio loads the tools your agent needs, so LLMs are not overwhelmed by tools they do not need.

Connect Google Maps to Antigravity

Antigravity does not ship with one-click custom MCP install links yet, so configuration goes through the IDE's raw config file. The process takes under a minute.

1. Open the MCP Config

Go to Antigravity Settings, open the Customizations tab, then click Open MCP Config to open mcp_config.json in the editor.

Antigravity Customizations settings with Open MCP Config button

2. Get your API key

Go to the Composio Dashboard and copy your API key.

Composio Dashboard showing where to get the API key

3. Add Composio to mcp_config.json

Paste the following configuration into the file:

bash
{
  "mcpServers": {
    "remote-composio": {
      "serverUrl": "https://connect.composio.dev/mcp",
      "headers": {
        "x-consumer-api-key": "your-composio-api-key"
      }
    }
  }
}

Note: Antigravity uses serverUrl, not url, for remote HTTP-based MCP servers. This differs from the url key used in Cursor and VS Code configs.

Save the file and click refresh in the Installed MCP Servers section.

Antigravity showing Composio tools after MCP setup

Connect your Google Maps account

Back in the Antigravity agent panel, ask the agent to connect to Google Maps or give it any Google Maps-related task.

For example, ask it to:

  • "Find walking directions from your hotel to conference center"
  • "Show top-rated coffee shops near your location"
  • "Embed a map of downtown restaurants on your website"

It will prompt you to authenticate and authorize access to Google Maps.

That is it. Composio tools are now available in Antigravity, and your Google Maps account is ready to use.

Supported Tools & Triggers

Tools
Autocomplete Place PredictionsReturns place and query predictions for text input.
Compute Route MatrixCalculates travel distance and duration matrix between multiple origins and destinations using the modern Routes API; supports OAuth2 authentication and various travel modes.
Geocode Address With QueryTool to map addresses to geographic coordinates with query parameter.
Geocode DestinationsTool to perform destination lookup and return detailed destination information including primary place, containing places, sub-destinations, landmarks, entrances, and navigation points.
Reverse Geocode LocationTool to convert geographic coordinates (latitude and longitude) to human-readable addresses using reverse geocoding.
Geocode Place by IDTool to perform geocode lookup using a place identifier to retrieve address and coordinates.
Geocoding APIConvert addresses into geographic coordinates (latitude and longitude) and vice versa (reverse geocoding), or get an address for a Place ID.
Geolocate DeviceTool to determine location based on cell towers and WiFi access points.
Get 2D Map TileTool to retrieve a 2D map tile image at specified coordinates for building custom map visualizations.
Get 3D Tiles RootTool to retrieve the 3D Tiles tileset root configuration for photorealistic 3D map rendering.
Get Place DetailsRetrieves comprehensive details for a place using its resource name (places/{place_id} format).
Get RouteCalculates one or more routes between two specified locations.
Lookup Aerial VideoTool to look up an aerial view video by address or video ID.
Embed Google MapTool to generate an embeddable Google Map URL and HTML iframe code.
Nearby searchSearches for places (e.
Get Place PhotoRetrieves high quality photographic content from the Google Maps Places database.
Render Aerial VideoStarts rendering an aerial view video for a US postal address.
Text SearchSearches for places on Google Maps using a textual query (e.
Create Tiles SessionTool to create a session token required for accessing 2D Tiles and Street View imagery.

Conclusion

You have successfully connected Google Maps to Antigravity using Composio Connect. Your agent can now use Google Maps securely without exposing credentials in prompts or local scripts.

How to build Google Maps MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Google Maps MCP?

With a standalone Google Maps MCP server, the agents and LLMs can only access a fixed set of Google Maps tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Google Maps and many other apps based on the task at hand, all through a single MCP endpoint.

Can I use Tool Router MCP with Antigravity?

Yes, you can. Antigravity fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Google Maps tools.

Can I manage the permissions and scopes for Google Maps while using Tool Router?

Yes, absolutely. You can configure which Google Maps scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Google Maps data and credentials are handled as safely as possible.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.