ad-revenue-reports-mcp
Read-only integration with the Google AdMob API v1, providing tools to retrieve revenue and performance reports (earnings, impressions, clicks, eCPM, ad requests, match/show rate), compare periods, break down by app/country/format/platform/ad unit/day, run custom network and mediation reports, and list AdMob accounts, apps, ad units, mediation groups, ad sources, adapters, and ad unit mappings.
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., "@ad-revenue-reports-mcp How much did I earn last week compared with the week before?"
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.
ad-revenue-reports-mcp
Read-only MCP server for the Google AdMob API (v1). Ask Claude how your ads are doing: earnings, eCPM, impressions, match rate, by app, country, format or ad source, compared with the previous period. It cannot change anything in your account (OAuth scope: admob.readonly).
Unofficial community project. Not affiliated with, sponsored or endorsed by Google. "Google" and "AdMob" are trademarks of Google LLC and are used here only to describe what this software works with.
What you can ask
"How much did I earn last week compared with the week before?"
"Which countries earn the most this month, and what is the eCPM there?"
"Which ad source in my mediation performs best?"
"Earnings per day for the last 30 days."
Slash prompt
admob_weekly_report: a ready-made weekly summary.
You never have to type an account ID (your only account is used automatically) or calculate dates (last_7_days, this_month, ... are built in).
Related MCP server: AdMob MCP
Tools
Tool | Purpose |
| Start here. Totals for a period vs the previous period of equal length (earnings, impressions, clicks, eCPM, ad requests, match/show rate), optional top-N breakdown by app/country/format/platform/ad unit/day |
| Custom Network report: choose metrics and dimensions, filters, sorting |
| Earnings, observed eCPM and latency per ad source / mediation group |
| Accounts you can access |
| Apps and ad units (IDs for filtering) |
| Mediation groups: targeting, ad units, ad sources with eCPM floors/ordering (v1beta) |
| Ad networks AdMob mediation supports, and the adapters of one ad source (v1beta) |
| Which third-party ad network placements an ad unit is mapped to (v1beta) |
Periods: today, yesterday, last_7_days (the 7 complete days before today), last_30_days, this_month, last_month, in your account's reporting time zone. Or pass start_date + end_date (YYYY-MM-DD). Money is returned in your account currency, not micros.
What it cannot do
This server only reads what Google's AdMob API exposes. Many console settings are not available through any API, so it cannot show or change them: payments and payment profile, blocking controls, privacy & messaging (consent), app-ads.txt status, policy center, account and user settings. It also cannot create or edit apps, ad units or mediation groups (read-only by design). The v1beta tools use an API version Google may change.
Status
Early release. It is not published on npm yet, so for now you run it from a local clone (instructions below). npx and the plugin marketplace route start working once the package is published. (Installing straight from GitHub with npx github:... does not work: current npm versions disable git installs by default.) The unit and mocked end-to-end tests pass, but it has not yet been verified against a live AdMob account, so expect rough edges and please report them. Node.js 20.3 or newer is required.
Setup (once, about 10 minutes)
Get the code and build it:
git clone https://github.com/OrhanArslan/ad-revenue-reports-mcp.git cd ad-revenue-reports-mcp && npm install && npm run buildGoogle Cloud: create or choose a project, enable the AdMob API, configure the OAuth consent screen, and create an OAuth client of type Desktop app. Note the client ID and secret.
While the consent screen is in "Testing" status, refresh tokens expire after 7 days. Publish the app for a durable token.
Sign in once and store the credentials on your machine:
ADMOB_CLIENT_ID=... ADMOB_CLIENT_SECRET=... node dist/index.js auth --saveOpen the printed URL, approve read-only access. The credentials are saved to
~/.config/ad-revenue-reports-mcp/credentials.json(or$XDG_CONFIG_HOME/...), readable only by you (mode 600). Nothing else is written.Add it to your client (use the absolute path of your clone). No environment variables are needed after step 3.
Claude Code:
claude mcp add admob --scope user -- node /absolute/path/to/ad-revenue-reports-mcp/dist/index.jsOther MCP clients (Claude Desktop, etc.):
{
"mcpServers": {
"admob": { "command": "node", "args": ["/absolute/path/to/ad-revenue-reports-mcp/dist/index.js"] }
}
}After the npm release, npx -y ad-revenue-reports-mcp replaces the node .../dist/index.js command everywhere above (npx -y ad-revenue-reports-mcp auth --save for sign-in), and the Claude Code plugin becomes available:
/plugin marketplace add OrhanArslan/ad-revenue-reports-mcp
/plugin install ad-revenue-reports@ad-revenue-reports-marketplacePrefer no file on disk? Run auth without --save (it prints the refresh token) and pass ADMOB_CLIENT_ID, ADMOB_CLIENT_SECRET, ADMOB_REFRESH_TOKEN in the client's env instead. Environment variables take precedence over the file.
Privacy
The server runs on your machine. The only network calls go to oauth2.googleapis.com and admob.googleapis.com, and no telemetry is sent anywhere. Credentials live in your environment or, if you used auth --save, in a file only you can read; delete it any time to sign out, and revoke access at https://myaccount.google.com/permissions.
Report data reaches your AI assistant. Whatever a tool returns (earnings, impressions, app and ad unit IDs) becomes part of your conversation and is processed by the AI service you use with this server, under that service's own terms and privacy policy. You are responsible for making sure that sharing your AdMob data this way is compatible with your agreements with Google and anyone else involved. Use an assistant and plan you are comfortable sharing that data with.
Disclaimer
Provided "as is" under the MIT license, without warranty. Report figures come straight from the AdMob API and are estimates; recent days can still change and may differ from the AdMob console and from final payments. Do not use this server's output as the sole basis for financial, tax or accounting decisions. This project is not endorsed by Google; use of the AdMob API is subject to Google's own terms and policies, which you accept when you create your OAuth client.
Development
npm install && npm run build
npm run unit && npm run smoke && npm run e2e # all offline; smoke adds a live call if the three ADMOB_* vars are set
npx @modelcontextprotocol/inspector node dist/index.jsNotes
Report
timeZoneis not sent: the API currently supports onlyAmerica/Los_Angeles, and the account default applies.AD_TYPEdimension cannot be combined withAD_REQUESTS,MATCH_RATE,IMPRESSION_RPM.
License
MIT
Available Tools
10 toolsadmob_list_accountsList AdMob accountsARead-onlyIdempotent
List the AdMob publisher accounts the signed-in Google user can access (account name accounts/pub-..., publisher ID, reporting time zone, currency). Other tools pick your account automatically when you have only one, so you rarely need this.
Inputs: response_format.
admob_list_adaptersList adaptersARead-onlyIdempotent
List the mediation adapters of one ad source (supported formats, platforms, required keys). Get the ad source ID from admob_list_ad_sources. Uses AdMob API v1beta, which Google may change.
Inputs: ad_source_id (required), account, page_size, page_token, +1 more.
admob_list_ad_sourcesList ad sourcesARead-onlyIdempotent
List the ad sources (ad networks) AdMob mediation supports, with their IDs. Use an ID with admob_list_adapters. Uses AdMob API v1beta, which Google may change.
Inputs: account, page_size, page_token, response_format.
admob_list_ad_unit_mappingsList ad unit mappingsARead-onlyIdempotent
List the mediation ad unit mappings of one ad unit (which third-party ad network placement it is mapped to). Get the ad unit ID from admob_list_ad_units. Uses AdMob API v1beta, which Google may change.
Inputs: ad_unit_id (required), filter, account, page_size, +2 more.
admob_list_ad_unitsList ad unitsARead-onlyIdempotent
List the ad units of an AdMob account (IDs, names, ad format, app ID). Use the IDs to filter reports.
Inputs: account, page_size, page_token, response_format.
admob_list_appsList appsARead-onlyIdempotent
List the apps of an AdMob account (IDs, names, platform, store link). Use the IDs to filter reports.
Inputs: account, page_size, page_token, response_format.
admob_list_mediation_groupsList mediation groupsARead-onlyIdempotent
List the mediation groups of an AdMob account: targeting, ad units and the ad sources with their eCPM floors or ordering. Uses AdMob API v1beta, which Google may change.
Inputs: filter, account, page_size, page_token, +1 more.
admob_mediation_reportAdMob Mediation reportARead-onlyIdempotent
AdMob Mediation report: earnings and observed eCPM per ad source / ad source instance / mediation group, plus ad load latency. Use it to compare ad networks. Money values are in the account currency. Use 'period' or start_date + end_date.
Example: 'Which ad source earns the most this month?' -> period='this_month', dimensions=['AD_SOURCE'], metrics=['ESTIMATED_EARNINGS','OBSERVED_ECPM'], sort_by='ESTIMATED_EARNINGS'.
Inputs: metrics (required), period, account, filters, +8 more.
admob_network_reportAdMob Network reportARead-onlyIdempotent
Custom AdMob Network report: pick metrics (earnings, impressions, clicks, eCPM = IMPRESSION_RPM, match/show rate) and dimensions (date, app, ad unit, country, format, platform...). Money values are in the account currency. Use 'period' (e.g. 'last_30_days') or start_date + end_date.
Examples:
'Earnings per day last week' -> period='last_7_days', dimensions=['DATE'], metrics=['ESTIMATED_EARNINGS']
'eCPM by country for banners' -> period='last_30_days', dimensions=['COUNTRY'], metrics=['IMPRESSION_RPM','IMPRESSIONS'], filters=[{dimension:'FORMAT',values:['banner']}] Note: AD_TYPE dimension cannot be combined with AD_REQUESTS, MATCH_RATE or IMPRESSION_RPM. For a quick overview use admob_revenue_summary; for per-ad-source data use admob_mediation_report.
Inputs: metrics (required), period, account, filters, +8 more.
admob_revenue_summaryAdMob revenue summaryARead-onlyIdempotent
Start here for 'how are my ads doing?'. Totals for a period (earnings, impressions, clicks, eCPM, ad requests, match/show rate) compared with the previous period of the same length, optionally with a top-N breakdown by app, country, format, platform, ad unit or day.
Examples:
'How much did I earn last week vs the week before?' -> period='last_7_days'
'Which countries earn the most this month?' -> period='this_month', breakdown='COUNTRY' Use admob_network_report for custom metric/dimension combinations and admob_mediation_report to compare ad sources.
Inputs: top_n, period, account, breakdown, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each list tool targets a distinct resource (accounts, apps, ad units, mediation groups, ad sources, adapters, mappings) with dependency hints that make selection clear. The three report tools overlap conceptually, but the descriptions explicitly carve out roles (quick summary vs. custom metric/dimension vs. mediation/ad-source comparison), leaving only mild risk of confusing revenue_summary with network_report.
All ten tools use a single predictable scheme: the 'admob_' prefix plus a consistent snake_case verb_noun pattern (list_*, *_report, *_summary). No camelCase or mixed verb styles appear anywhere in the set.
Ten tools is squarely in the well-scoped range: seven thin metadata list endpoints plus three reporting tools, each earning its place. Nothing feels redundant or padded.
The read-only reporting domain is well covered: account/app/ad unit discovery, full mediation metadata (groups, sources, adapters, mappings), and three report modes with comparison periods and breakdowns. Minor gaps exist — no single-resource 'get' detail tools and no cross-account or export capability — but agents can work around these with the list and report tools.
Maintenance
Related MCP Connectors
Read-only Google Analytics 4 MCP server for AI assistants.
Read-only Google Search Console MCP server for AI assistants.
Google Search Console, Ads and AdSense analytics for AI clients. Hosted, read-only, 57 tools.
Read-only Google Ads, GA4 and Search Console data for Claude, with no Google Cloud setup.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables querying mobile ad revenue from Google AdMob and Huawei Petal Ads through natural language, with read-only tools for account, app, ad unit, and revenue reports.11MIT
- AlicenseAqualityCmaintenanceMCP server that gives AI assistants structured, read-only access to the Google AdMob API — publisher accounts, apps, ad units, and performance reports.6MIT
- FlicenseAqualityDmaintenanceRead-only MCP server that connects Claude Desktop to the publisher-side Ad Manager API so users can browse networks, saved reports, orders, and line items, and run saved reports to pull their rows into a conversation. No tool mutates data, and per-user OAuth ensures each person inherits only their existing account permissions.5-
- AlicenseNot gradedqualityCmaintenanceYour AdMob numbers, without the AdMob console. A fast AdMob analytics dashboard, plus an MCP server so your AI assistant can query the same live dataMIT