Skip to main content
Glama
PradeepGontupuli

Google Ads MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FASTMCP_HOSTNoSet this to `0.0.0.0` to allow FastMCP to accept connections from all IP addresses.
GOOGLE_PROJECT_IDNoYour Google Cloud project ID.
GOOGLE_CLOUD_PROJECTNoYour Google Cloud project ID (recommended alternative to GOOGLE_PROJECT_ID).
GOOGLE_ADS_MCP_BASE_URLNoThe base URL where the server is accessible.http://localhost:8080
GOOGLE_ADS_DEVELOPER_TOKENNoYour Google Ads developer token. Optional; required for production access if your setup requires it.
GOOGLE_ADS_MCP_STORAGE_PATHNoDirectory path for `filetree` persistent storage.
GOOGLE_ADS_MCP_STORAGE_TYPENoStorage backend for OAuth state (`filetree`, `redis`, `firestore`, or `memory`).
GOOGLE_ADS_MCP_TOOLS_CONFIGNoAn explicit path to a tools_config.yaml file to selectively enable or disable individual tools or tool categories (namespaces) and customize their namespace prefixes.
GOOGLE_ADS_LOGIN_CUSTOMER_IDNoThe customer ID of the manager account, required if your access to the customer account is through a manager account.
GOOGLE_ADS_MCP_JWT_SIGNING_KEYNoSecret key used to sign FastMCP JWT tokens across multiple server instances or deployments.
GOOGLE_ADS_MCP_OAUTH_CLIENT_IDNoYour Google Cloud OAuth 2.0 Client ID. Required to enable FastMCP OAuth proxy.
GOOGLE_APPLICATION_CREDENTIALSNoPath to the credentials JSON file for Application Default Credentials.
GOOGLE_ADS_MCP_STORAGE_REDIS_URLNoRedis URL for `redis` persistent storage.
GOOGLE_ADS_MCP_OAUTH_CLIENT_SECRETNoYour Google Cloud OAuth 2.0 Client Secret. Required to enable FastMCP OAuth proxy.
GOOGLE_ADS_MCP_STORAGE_ENCRYPTION_KEYNoEncryption key for stored OAuth tokens.
GOOGLE_ADS_MCP_STORAGE_FIRESTORE_PROJECTNoGoogle Cloud project for `firestore` persistent storage. Defaults to the project inferred from Application Default Credentials. Setting it selects the `firestore` backend even if `GOOGLE_ADS_MCP_STORAGE_TYPE` is unset.
GOOGLE_ADS_MCP_STORAGE_DISABLE_ENCRYPTIONNoSet to `true` to disable token encryption.
GOOGLE_ADS_MCP_STORAGE_FIRESTORE_DATABASENoFirestore database name for `firestore` persistent storage.(default)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
customers_list_accessible_customersA

Returns ids of customers directly accessible by the user authenticating the call.

Use this tool first to discover available customer IDs if the user hasn't provided one. Most other tools require a valid customer ID as input.

Returns: List[str]: A list of customer IDs.

metadata_get_resource_metadataA

Retrieves the selectable, filterable, and sortable fields for a specific Google Ads resource, including compatible metrics and segments.

Use this tool to find out which fields you can select, filter by, or sort by when querying a specific resource (e.g., 'campaign', 'ad_group'). This tool also returns metrics and segments that can be selected with the resource. Their names start with 'metrics.' and 'segments.' respectively.

Do not guess fields, you MUST use this tool to discover them before constructing a query for the search tool.

The responses of this tool should be cached, as they don't change frequently.

search_searchC

Fetches data from the Google Ads API using the search method

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
get_discovery_documentRetrieve the Google Ads API discovery document. Provides the discovery document for the Google Ads API, which describes the API surface, including resources, methods, and schemas. Use this resource to get a high-level overview of the API surface or to find available resources. However, for finding specific fields, you MUST use the `get_resource_metadata` tool instead, as it provides more targeted and up-to-date information for queries. Returns: str: The discovery document in JSON format.
get_metricsRetrieve the Google Ads API metrics documentation. Provides the official documentation for metrics in the Google Ads API, listing all available metrics that can be queried to analyze performance data. Use this resource to identify which metrics are available and how they are calculated. Returns: str: The metrics documentation in HTML format.
get_release_notesRetrieve the Google Ads API release notes. Provides the official release notes for the Google Ads API, detailing new features, changes, deprecations, and bug fixes across all API versions. Use this resource to check for breaking changes, determine if a specific feature is supported in a given API version, or troubleshoot issues by consulting recent API updates. Returns: str: The release notes in HTML format.
get_segmentsRetrieve the Google Ads API segments documentation. Provides the official documentation for segments in the Google Ads API, detailing the available segments that can be used in GAQL queries to partition metrics. Use this resource to understand which segments can be used with specific resources and metrics. Returns: str: The segments documentation in HTML format.