ads-mcp-readonly
Read-only integration with Google Ads: lists allow-listed accounts, returns campaign-level and account-level performance metrics such as spend, clicks, calls, conversions or leads for a date range, and runs guarded Google Ads Query Language SELECT queries against the Google Ads search endpoint.
Click on "Deploy 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., "@ads-mcp-readonly What did Acme HVAC spend on Google Ads last week, by campaign?"
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.
ads-mcp-readonly
A read-only MCP server for ad-platform data. Agents can look, never touch.
When AI agents answer questions about ad accounts, the most important feature is what they cannot do. This server gives an agent (Claude Code, Claude Desktop or any MCP client) the numbers it needs — spend, clicks, calls, conversions, leads — and makes changes impossible by design:
No write tools exist. There is no tool to change a budget, a bid, a status or an ad.
Free-form queries are checked before they leave the server. Only a single
SELECTon an allow-listed resource passes;mutate,update,delete,create, multiple statements and unknown resources are refused. ALIMITis enforced.The HTTP layer can only reach the search endpoint. Every Google Ads request is checked to go to
…/googleAds:search— a bug elsewhere still cannot reach a…:mutateendpoint.Accounts are allow-listed. The server only reads accounts you list explicitly.
Tools are annotated
readOnlyHint: true,destructiveHint: false.
The pattern comes from production: I run AI agents that read clients' ad accounts every day, and the rule there is the same — read-only, enforced in code, not in the prompt.
Tools
Tool | What it returns |
| The accounts this server may read |
| Per campaign: spend, clicks, calls, conversions or leads for a date range |
| Totals across all campaigns of one account |
| A guarded Google Ads Query Language |
Related MCP server: Apple Ads Insights MCP
Try it in one minute (no credentials)
The default demo provider serves invented data for a fictional heating & cooling business,
“Acme HVAC”, across four platforms (Google Ads, Local Services Ads, Microsoft Ads, Meta Ads).
git clone https://github.com/porrasbrand/ads-mcp-readonly && cd ads-mcp-readonly
npm install
npm test # 23 tests, including "a write attempt never reaches the network"Add it to Claude Code:
claude mcp add ads-readonly -- node /path/to/ads-mcp-readonly/src/index.jsThen ask: “What did Acme HVAC spend on Google Ads last week, by campaign?” — or try “Pause the Acme brand campaign” and watch it refuse.
Google Ads (experimental in v0.1)
ADS_PROVIDER=google-ads \
GOOGLE_ADS_API_VERSION=v21 \
GOOGLE_ADS_DEVELOPER_TOKEN=... \
GOOGLE_ADS_CLIENT_ID=... GOOGLE_ADS_CLIENT_SECRET=... GOOGLE_ADS_REFRESH_TOKEN=... \
GOOGLE_ADS_LOGIN_CUSTOMER_ID=123-456-7890 \
GOOGLE_ADS_ACCOUNT_IDS=111-222-3333,444-555-6666 \
node src/index.jsSet
GOOGLE_ADS_API_VERSIONto a version that is currently supported by Google.For extra safety, create the OAuth refresh token for a Google Ads user with read-only access. Then even the API itself would refuse a change.
Status: the Google Ads provider is tested against recorded/mocked API responses only. Please open an issue if something does not match the live API.
Microsoft Ads, Local Services Ads and Meta Ads are available in the demo provider only for now.
Design notes
Plain JavaScript (ES modules), Node.js ≥ 20, two dependencies (
@modelcontextprotocol/sdk,zod).src/guard.jsholds every read-only rule in one place — it is the file to review.Tests use Node's built-in test runner and an in-memory MCP client.
License
MIT · Manuel Porras · manuelporras.com
Available Tools
4 toolsget_account_summaryAccount summaryCRead-onlyIdempotent
Totals across all campaigns of one account for a date range. Read-only.
Inputs: to (required), from (required), account_id (required).
get_campaign_performanceCampaign performanceBRead-onlyIdempotent
Spend, clicks, calls, conversions or leads per campaign for a date range. Read-only.
Inputs: to (required), from (required), account_id (required).
list_accountsList ad accountsARead-onlyIdempotent
Lists the ad accounts this server may read. Read-only.
Inputs: no named parameters.
run_readonly_queryRead-only GAQL queryARead-onlyIdempotent
Runs a Google Ads Query Language SELECT on an allow-listed resource. Anything that could change the account is refused before it leaves the server.
Inputs: query (required), account_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Three tools target clearly distinct things (account list, per-campaign metrics, account-level totals), and the read-only restriction is explicit in every description. The main overlap is run_readonly_query, a generic escape hatch that can reproduce the results of the three specialized tools, which could tempt an agent to pick it when a purpose-built tool fits better.
All four names follow a consistent snake_case verb_noun pattern (list_accounts, get_campaign_performance, get_account_summary, run_readonly_query). Verb choice (list vs get vs run) tracks the semantics sensibly, and the read-only nature is reinforced in descriptions rather than being inconsistently baked into names.
Four tools is a tightly scoped surface for a read-only reporting server, and each one maps to a distinct reporting need (discover accounts, per-campaign metrics, account rollups, ad-hoc queries). Nothing feels padded or redundant.
Account discovery, campaign-level performance, account totals, and an allow-listed GAQL query cover the core read-only lifecycle, and the generic query tool closes most gaps. Minor absences are dedicated tools for enumerating campaigns/ad groups or segment breakdowns, which users must reconstruct via raw GAQL.
Maintenance
Related MCP Connectors
Read-only access for your AI to Search Console, GA4, Google Ads, Meta Ads and your store's sales.
Read-only Google Ads, Meta Ads and TikTok Ads performance, campaigns and creatives via OAuth.
Amazon Ads, Seller Central, Vendor Central and AMC data for AI agents. Read-only by default.
Review authorized ad-account metrics with your AI assistant. Early access by invitation.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides read access to campaign performance data from Google Ads, Meta Ads, and TikTok Ads via live API calls, enabling AI assistants to analyze and audit advertising campaigns.162MIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only analysis of Apple Ads Platform data, allowing AI assistants to query campaign structure, keywords, search terms, and performance reports without modifying anything.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query campaign performance, metrics, audiences, and geography, and to analyze budgets, wasted spend, and account health through natural language.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude, ChatGPT, Copilot, and Cursor to read Google Ads data—campaigns, ad groups, ads, keywords, search terms, budgets, conversion actions, change history, and custom GAQL queries—through 17 read-only MCP tools. It supports OAuth-authenticated access to real accounts without requiring a developer token, keeping all operations read-only and auditable.58 npmAGPL 3.0