Google Maps MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Google Maps MCP or direct API to search locations, get driving directions, geocode addresses, and map nearby places through natural language.

Google Maps logoGoogle Maps
Oauth2Api Key

Google Maps is a leading mapping and geolocation service for finding locations, routes, and businesses worldwide. It helps users access real-time navigation, geocoding, and mapping data for seamless location-based experiences.

24 ToolsManaged auth

Try Google Maps now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Google Maps
Try asking
TOOLS

Supported Tools

Every Google Maps action and event your agent gets out of the box. No Google Maps signup needed. Give your agents access to the Google Maps API and pay per call from your Composio balance.

Autocomplete Place Predictions

Returns place and query predictions for text input.

Compute Route Matrix

Calculates travel distance and duration matrices between multiple origins and destinations using the Routes API, with various travel modes and OAuth2 support; some connections limit requests to 100 origin-destination pairs.

Find Street View Panoramas

Resolve transient Street View panorama IDs near up to 100 coordinates.

Geocode Address With Query

Tool to map addresses to geographic coordinates with query parameter.

Geocode Destinations

Tool to perform destination lookup and return detailed destination information including primary place, containing places, sub-destinations, landmarks, entrances, and navigation points.

Reverse Geocode Location

Tool to convert geographic coordinates (latitude and longitude) to human-readable addresses using reverse geocoding.

Geocode Place by ID

Tool to perform geocode lookup using a place identifier to retrieve address and coordinates.

Geocoding API

Geocode an address into geographic coordinates, reverse geocode coordinates to find an address, or look up a place by its Place ID using Google’s Geocoding API v4beta.

Geolocate Device

Estimate a device's geographic location from cell tower and WiFi observations.

Get 2D Map Tile

Tool to retrieve a 2D map tile image at specified coordinates for building custom map visualizations.

Get 3D Tiles Root

Tool to retrieve the 3D Tiles tileset root configuration for photorealistic 3D map rendering.

Get Current Weather

Returns current localized weather conditions for geographic coordinates.

Get Place Details

Retrieves details for a specific place by place ID or resource name.

Get Route

Calculates one or more routes between two specified locations.

Get Street View Metadata

Return detailed metadata for a Street View panorama.

Get Street View Tile

Download one image tile from a Street View panorama.

Get Time Zone

Retrieves time zone information for a specific geographic location and timestamp.

Lookup Aerial Video

Tool to look up an aerial view video by address or video ID.

Embed Google Map

Generates a Google Maps Embed URL and HTML iframe code for place, view, directions, street view, or search mode using an API key, without making an API call.

Nearby search

Searches for places (e.g., restaurants, parks) within a specified circular area, with options to filter by place types and customize the returned fields and number of results.

Get Place Photo

Retrieves high quality photographic content from the Google Maps Places database.

Render Aerial Video

Starts rendering an aerial view video for a US postal address.

Text Search

Searches for places on Google Maps using a textual query (e.g., "restaurants in London", "Eiffel Tower").

Create Tiles Session

Creates a session token for 2D map tiles or Street View imagery, reusable for subsequent tile requests within its validity window.

SETUP GUIDE

Connect Google Maps MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["google_maps"],
  mcp: true,
});
Create a session scoped to Google Maps and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Find driving directions from Times Square to Central Park",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Google Maps request
SETUP GUIDE

Connect Google Maps API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["google_maps"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Google Maps
3

Run Google Maps tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Find driving directions from Times Square to Central Park" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Google Maps tool calls through the session, and print the final answer

Why Use Composio?

AI Native Google Maps Integration

  • Supports both Google Maps MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Google Maps data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Google Maps access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Google Maps
  • Scoped, least privilege access to Google Maps resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Google Maps.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Google Maps tool your agent needs.Free to start.

Start building