Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Exposes the Google AdMob API as MCP tools for managing AdMob accounts, generating network and mediation reports, and listing apps and ad units.

README.md

AdMob MCP Server

This is a server that exposes the Google AdMob API as a set of tools for the Model Context Protocol (MCP).

Prerequisites

  • Node.js
  • npm

Installation

  1. Clone the repository:
    git clone https://github.com/kunny/admob-mcp-server.git
    cd admob-mcp-server
  1. Install the dependencies:
    npm install
  1. Build the server:
    npm run build

Configuration

  1. Enable the AdMob API

a. Go to the Google API Console.

b. From the projects list, select a project or create a new one.

c. In the API Library, search for "AdMob API".

d. Select "AdMob API" and click the "Enable" button.

  1. Create OAuth 2.0 Credentials

a. Go to the Credentials page in the Google API Console.

b. Click "Create Credentials" and select "OAuth client ID".

c. Select "Desktop app" for the "Application type".

d. Enter a name for the credential (e.g., "AdMob MCP Server").

e. Click "Create".

f. A "Client ID" and "Client Secret" will be displayed. Click "Download JSON" to download the client secret file.

  1. Set up the Credentials

a. Create a credentials directory in the root of the project: ``bash mkdir credentials ``

b. Move the downloaded JSON file to the credentials directory and rename it to client_secret.json.

  1. Set the Publisher Code (Optional)

Create a .env file in the root of the project and add your AdMob publisher ID: `` PUBLISHER_CODE=pub-xxxxxxxxxxxxxxxx ``

Authentication

Run the following command to authenticate with your Google account:

npm run auth

This will open a browser window for you to log in and grant permission to the application.

After you have authenticated, a token.json file will be created in the credentials directory.

Running the Server

To start the server, run the following command:

npm start

The server will be running on stdio.

Capabilities

Prompts

  • top_performing_apps_last7d: List top performing apps in the last 7 days, sorted by estimated earnings.
  • top_performing_ad_units_last7d: Lists top performing ad units with estimated earnings for all mediated networks over the last 7 days, sorted by estimated earnings.

Tools

  • generate_network_report: Generates an AdMob Network report based on the provided report specification.
  • generate_mediation_report: Generates an AdMob Mediation report based on the provided report specification.
  • get_account: Gets information about the AdMob publisher account.
  • list_ad_units: Lists the ad units under the AdMob publisher account.
  • list_apps: Lists the apps under the AdMob publisher account.

Usage with AI Agents

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "admob": {
      "command": "node",
      "args": [
        "{PATH_TO_SERVER}/build/index.js"
      ],
      "env": {
        "CREDENTIALS_DIR": "{PATH_TO_SERVER}/credentials",
        "PUBLISHER_CODE": "pub-xxxxxxx"
      }
    }
  }
}

Gemini CLI

Add to your ~/.gemini/settings.json:

{
  "mcpServers": {
    "admob": {
      "command": "node",
      "args": [
        "{PATH_TO_SERVER}/build/index.js"
      ],
      "env": {
        "CREDENTIALS_DIR": "{PATH_TO_SERVER}/credentials",
        "PUBLISHER_CODE": "pub-xxxxxxx"
      }
    }
  }
}

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.