SuperAPI AI Directory

google-ads-mcp-server

Google Ads MCP Server is a Model Context Protocol (MCP) server based on the FastMCP framework, used to integrate the Google Ads API with MCP clients such as Claude Desktop. It provides features such as automatic OAuth 2.0 authentication and token refresh, GAQL query execution, account management, and keyword research, helping users analyze Google Ads performance data through natural language conversations, and stores tokens locally in a secure manner.

Open website

About this tool

Google Ads MCP Server is a Model Context Protocol (MCP) server based on FastMCP, used to integrate the Google Ads API into Claude Desktop and other MCP clients, enabling analysis of Google Ads performance data through natural language.

Main capabilities

  • Automatic OAuth 2.0 authentication: one-time browser authentication, with automatic token refresh support.
  • Smart token management: automatically handles expired tokens.
  • GAQL query execution: can run any Google Ads Query Language query.
  • Account management: list and manage Google Ads accounts.
  • Keyword research: generate keyword ideas with search volume data.
  • Based on the FastMCP framework, compatible with modern MCP standards, and can be integrated directly with Claude Desktop.
  • Secure local storage: tokens are stored locally and are not exposed.

How to use

  1. Preparation: install Python 3.10+, and have a Google Cloud Platform account and a Google Ads account with API access permissions.
  2. Google Cloud Platform setup: create a project, enable the Google Ads API, create OAuth 2.0 credentials (Desktop app type), and download the JSON credentials and save them as client_secret_[long-string].json.
  3. Google Ads API setup: obtain a developer token in the API Center of Google Ads (initially a test token, and you can apply for production access).
  4. Installation and configuration: clone the repository and install dependencies, and create a .env file and fill in the credentials.
  5. Claude Desktop integration: edit the Claude Desktop configuration file, add the MCP server configuration (using absolute paths), and then restart Claude Desktop.
  6. First authentication: execute any Google Ads command in Claude (such as "list all Google Ads accounts"), the browser will automatically open the OAuth page, and after logging in and authorizing, it can be used.

Applicable scenarios

  • Through MCP clients such as Claude Desktop, usenatural language to query and analyze Google Ads performance data.
  • Run custom GAQL queries to perform data analysis across dimensions such as campaigns, keywords, and devices.
  • Keyword research and search volume retrieval.
  • Manage multiple Google Ads accounts (including MCC manager account configuration).

Limitations and notes

  • Requires Python 3.10+, a Google Cloud Platform account, and a Google Ads account with API access permissions.
  • The Google Ads API has quota limits: basic access allows 15,000 operations per day, standard access allows 40,000 operations per day, and each developer token allows 1,600 requests per minute.
  • The credentials file is already gitignored, tokens are stored locally in google_ads_token.json, and sensitive data is stored in the .env file.
  • For production environments, it is recommended to use environment variables instead of the .env file, implement rate limiting, monitor API usage, and rotate tokens regularly.
  • The repository uses the MIT License.
  • A convenient one-click installer download link and Slack community support are provided.
  • A Facebook Ads MCP server is also provided for you to try.

Future features on the project roadmap include: enhanced keyword research and competitor analysis, built-in data visualization charts, AI-driven optimization suggestions, campaign creation and management tools, advanced reporting capabilities, and multilingual support.