Google Ads MCP Reader
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Ads MCP Readerlist my active campaigns with performance metrics"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Open Google MCP
A read-only Model Context Protocol (MCP) server for Google Ads (via GAQL) and Search Console. Designed for AI assistants and LLM agents to safely read campaign performance, search analytics, and more.
Tools
Tool | Input | Description |
| — | Discover Google Ads account IDs |
|
| Explore selectable/filterable/sortable fields for a resource |
|
| Execute read-only GAQL queries |
| — | Get categorized tool list with auth status |
| — | List all GSC properties (start here) |
|
| Verification/ownership for a property |
|
| Top queries with clicks, impressions, CTR, position |
|
| Executive summary with daily trend |
|
| Compare two date ranges |
|
| Filtered, sorted, paginated analytics |
|
| Debug a URL's crawl/index status |
|
| List sitemaps with status and errors |
Manager Account Auto-Routing
If search targets a manager (MCC) account and finds no data directly, it automatically:
Detects the account is a manager
Finds child accounts
Runs the query on each child
Returns combined results with
_source_customer_idmarking which account each row belongs to
Related MCP server: Google Ads - AdLoop
Setup
Prerequisites (both paths)
A Google Ads developer token (apply via Google Ads API Center)
Google Cloud service account with both APIs enabled:
Option A: Docker (recommended — no Python required)
1. Clone
git clone https://github.com/ceotind/open-google-mcp.git
cd open-google-mcp2. Create and authorize a service account
A single service account authenticates both Google Ads and Search Console.
Go to GCP Console → APIs & Services → Credentials → Create Credentials → Service Account
Download the JSON key file, then copy these fields into
.env:GOOGLE_SERVICE_ACCOUNT_EMAILGOOGLE_SERVICE_ACCOUNT_KEY(theprivate_key— keep the\nescapes)GOOGLE_SERVICE_ACCOUNT_KEY_IDGOOGLE_SERVICE_ACCOUNT_CLIENT_IDGOOGLE_SERVICE_ACCOUNT_PROJECT_ID
Google Ads: add the service account email in your manager account (Settings → Account access → Service account users)
Search Console: add the same email to your property (Settings → Users and permissions → Add user, grant Full access)
3. Configure .env
cp .env.example .env
# Edit .env with the service account values + developer tokenVariable | Description |
| Your Google Ads API developer token |
| Service account email |
| Private key (with |
| Private key ID |
| Client ID |
| GCP project ID |
| Optional — for MCC account routing |
4. Build and run
docker compose build
docker compose run --rm open-google-mcp5. MCP client config
All configs point to the project directory (where .env lives):
Claude Desktop:
{
"mcpServers": {
"open-google-mcp": {
"command": "docker",
"args": ["compose", "run", "--rm", "open-google-mcp"],
"workdir": "/path/to/open-google-mcp"
}
}
}opencode:
{
"mcp": {
"open-google-mcp": {
"type": "local",
"command": ["docker", "compose", "run", "--rm", "open-google-mcp"],
"workdir": "/path/to/open-google-mcp",
"enabled": true
}
}
}Cursor:
Name:
open-google-mcpType:
commandCommand:
docker compose run --rm open-google-mcpWorking directory:
/path/to/open-google-mcp
Option B: Python (local install)
1. Clone and install
git clone https://github.com/ceotind/open-google-mcp.git
cd open-google-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .2. Create and authorize a service account
Same steps as Option A above — a single service account works for both Ads and GSC.
Go to GCP Console → APIs & Services → Credentials → Create Credentials → Service Account
Download the JSON key file, then copy these fields into
.env:GOOGLE_SERVICE_ACCOUNT_EMAILGOOGLE_SERVICE_ACCOUNT_KEYGOOGLE_SERVICE_ACCOUNT_KEY_IDGOOGLE_SERVICE_ACCOUNT_CLIENT_IDGOOGLE_SERVICE_ACCOUNT_PROJECT_ID
Google Ads: add the service account email in your manager account
Search Console: add the same email to your property with Full access
3. Configure .env
cp .env.example .envVariable | Description |
| Your Google Ads API developer token |
| Service account email |
| Private key (with |
| Private key ID |
| Client ID |
| GCP project ID |
| Optional — for MCC account routing |
4. Run
source .venv/bin/activate
source .env
python -m open_google_mcp5. MCP client config
Claude Desktop:
{
"mcpServers": {
"open-google-mcp": {
"command": "uv",
"args": [
"--directory", "/path/to/open-google-mcp",
"run", "python", "-m", "open_google_mcp"
],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "your_token",
"GOOGLE_SERVICE_ACCOUNT_EMAIL": "your-sa@project.iam.gserviceaccount.com",
"GOOGLE_SERVICE_ACCOUNT_KEY": "-----BEGIN PRIVATE KEY-----\\n...\\n-----END PRIVATE KEY-----\\n",
"GOOGLE_SERVICE_ACCOUNT_KEY_ID": "your_key_id",
"GOOGLE_SERVICE_ACCOUNT_CLIENT_ID": "your_client_id",
"GOOGLE_SERVICE_ACCOUNT_PROJECT_ID": "your_project_id"
}
}
}
}Or use the wrapper script (loads .env automatically):
{
"mcpServers": {
"open-google-mcp": {
"command": "/path/to/open-google-mcp/server.sh"
}
}
}opencode:
{
"mcp": {
"open-google-mcp": {
"type": "local",
"command": ["/path/to/open-google-mcp/server.sh"],
"enabled": true
}
}
}Cursor:
Name:
open-google-mcpType:
commandCommand:
uv --directory /path/to/open-google-mcp run python -m open_google_mcpEnv vars: All
GOOGLE_ADS_DEVELOPER_TOKEN+GOOGLE_SERVICE_ACCOUNT_*variables
Usage Examples
List Ads accounts
list_accessible_customersDiscover fields for a resource
get_resource_metadata(resource_name="campaign")Get active search campaigns with performance
search(
customer_id="1234567890",
resource="campaign",
fields=["campaign.id", "campaign.name", "campaign.status",
"campaign.advertising_channel_type", "metrics.clicks",
"metrics.impressions", "metrics.cost_micros"],
conditions=["campaign.status = 'ENABLED'",
"segments.date DURING LAST_30_DAYS"],
orderings=["metrics.clicks DESC"],
limit=10
)Get child accounts under a manager
search(
customer_id="1234567890",
resource="customer_client",
fields=["customer_client.id", "customer_client.descriptive_name", "customer_client.manager"]
)Google Search Console — Usage Examples
List GSC properties
gsc_list_propertiesGet search analytics
gsc_get_search_analytics(
site_url="https://example.com",
days=28,
dimensions="query",
row_limit=10
)Get performance overview
gsc_get_performance_overview(
site_url="https://example.com",
days=28
)Compare two time periods
gsc_compare_search_periods(
site_url="https://example.com",
period1_start="2025-01-01",
period1_end="2025-01-31",
period2_start="2025-02-01",
period2_end="2025-02-28",
dimensions="query",
limit=10
)Advanced analytics with filters
gsc_get_advanced_search_analytics(
site_url="https://example.com",
dimensions="query,device",
search_type="WEB",
row_limit=50,
sort_by="impressions",
sort_direction="descending",
filters='[{"dimension":"country","operator":"equals","expression":"usa"}]'
)Inspect a URL
gsc_inspect_url(
site_url="https://example.com",
page_url="https://example.com/blog/post"
)List sitemaps
gsc_get_sitemaps(site_url="https://example.com")GAQL Tips
Field names must be fully qualified:
campaign.id, notidDate format:
YYYY-MM-DDwith dashesRelative dates:
DURING LAST_7_DAYS,LAST_30_DAYS,THIS_MONTH,THIS_QUARTERFor
change_eventresource, limit must be ≤ 10000Conditions are AND-combined
Use
get_resource_metadatafirst to discover valid fields
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ceotind/open-google-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server