Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Bing Ads

by mharnettversion 1.0.2i★ –iRuns on your computer
Registry nameio.github.mharnett/bing-ads

Install

Overview

Description from the maker (original English)

MCP server for Microsoft Advertising (Bing Ads) — campaigns, keywords, and reports

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Marketing & social media
  • You need to fill in: BING_ADS_DEVELOPER_TOKEN, BING_ADS_CLIENT_ID, BING_ADS_REFRESH_TOKEN, BING_ADS_CLIENT_SECRET

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: BING_ADS_DEVELOPER_TOKEN, BING_ADS_CLIENT_ID, BING_ADS_REFRESH_TOKEN, BING_ADS_CLIENT_SECRET

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "bing-ads": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-bing-ads"
      ],
      "env": {
        "BING_ADS_DEVELOPER_TOKEN": "your-value",
        "BING_ADS_CLIENT_ID": "your-value",
        "BING_ADS_REFRESH_TOKEN": "your-value",
        "BING_ADS_CLIENT_SECRET": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add bing-ads --env BING_ADS_DEVELOPER_TOKEN=your-value --env BING_ADS_CLIENT_ID=your-value --env BING_ADS_REFRESH_TOKEN=your-value --env BING_ADS_CLIENT_SECRET=your-value -- npx -y mcp-bing-ads

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "bing-ads": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-bing-ads"
      ],
      "env": {
        "BING_ADS_DEVELOPER_TOKEN": "your-value",
        "BING_ADS_CLIENT_ID": "your-value",
        "BING_ADS_REFRESH_TOKEN": "your-value",
        "BING_ADS_CLIENT_SECRET": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "bing-ads": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-bing-ads"
      ],
      "env": {
        "BING_ADS_DEVELOPER_TOKEN": "your-value",
        "BING_ADS_CLIENT_ID": "your-value",
        "BING_ADS_REFRESH_TOKEN": "your-value",
        "BING_ADS_CLIENT_SECRET": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • BING_ADS_DEVELOPER_TOKEN secret required env
    Microsoft Advertising developer token
  • BING_ADS_CLIENT_ID required env
    Azure AD app client ID for OAuth
  • BING_ADS_REFRESH_TOKEN secret required env
    OAuth refresh token for Microsoft Advertising API
  • BING_ADS_CLIENT_SECRET secret env
    Azure AD app client secret (optional for public clients)

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account mharnett, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Marketing & social mediai

  • More stars than 0% of the other 3575 servers in this category
  • Published to the registry more recently than 3% of the other 3575 servers in this category
  • Basic checks equal to or better than 100% of the other 3575 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Bing Ads safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: BING_ADS_DEVELOPER_TOKEN, BING_ADS_CLIENT_ID, BING_ADS_REFRESH_TOKEN, BING_ADS_CLIENT_SECRET

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.0.2) reached the registry 8 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

An MCP server retrieving transcripts of YouTube videos

Runs on your computer★ 495MITUpdated 11 days ago
Install

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

Runs on your computer★ 244MITUpdated 10 days ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Bing Ads MCP Server

Production-grade MCP server for Microsoft Advertising (Bing Ads) API. Enables Claude to manage Bing/Microsoft Ads accounts with full campaign, ad group, keyword, and performance analysis capabilities.

Features:

  • 10 tools -- production-tested
  • Campaign, ad group, and keyword management
  • Keyword performance analysis with quality scores
  • Search term reporting & bid automation
  • Budget & bid strategy optimization
  • Campaign-level budget updates
  • Negative keyword management (shared + campaign-level)

Note: ⚠️ First open-source Bing Ads MCP with comprehensive tooling

  • No serious alternatives exist in the ecosystem
  • Battle-tested across multiple accounts

Installation

npm install mcp-bing-ads

Configuration

Security: Never share your .mcp.json file or commit it to git -- it may contain API credentials. Add .mcp.json to your .gitignore.

  1. Get OAuth credentials:
  • Go to Microsoft Azure Portal
  • Create an Azure AD app registration
  • Grant API permissions: Microsoft Advertising API
  • Scopes: https://ads.microsoft.com/msads.manage offline_access
  1. Create `config.json`:
   cp config.example.json config.json
  1. Fill in your credentials:
   {

"oauth": { "client_id": "YOUR_AZURE_CLIENT_ID", "client_secret": "YOUR_AZURE_CLIENT_SECRET" }, "clients": { "default": { "customer_id": "YOUR_CUSTOMER_ID", "account_id": "YOUR_ACCOUNT_ID", "name": "My Account" } } }

  1. Set environment variables (recommended):
   export BING_ADS_DEVELOPER_TOKEN="your_developer_token"

export BING_ADS_CLIENT_ID="your_client_id" export BING_ADS_REFRESH_TOKEN="your_refresh_token"

Optional:

export BING_ADS_CLIENT_SECRET="your_client_secret"

Optional: opt into mutating tools (read-only by default)

export BING_ADS_MCP_WRITE="true"

Environment Variables
VariableRequiredDefaultDescription
BING_ADS_DEVELOPER_TOKENyes--Microsoft Advertising developer token
BING_ADS_CLIENT_IDyes--Azure AD app client ID
BING_ADS_REFRESH_TOKENyes--OAuth refresh token
BING_ADS_CLIENT_SECRETno--Azure AD app client secret (if confidential client)
BING_ADS_MCP_WRITEnofalseSet to true, 1, or yes to expose mutating tools (pause/update/add). Any other value -- or unset -- keeps the server read-only.
Read-only by default

Mutating tools (bing_ads_pause_keywords, bing_ads_update_campaign_budget, bing_ads_add_shared_negatives) are hidden from the tool list and refused at call time unless BING_ADS_MCP_WRITE=true is set in the server environment. This is a safety gate against casual write actions -- for example, pausing a keyword or editing a budget based on a throwaway chat message. To make write changes, set the env var explicitly in your .mcp.json or shell profile for the session that needs it, then unset it afterwards. Read tools (list/report/performance) are always available.

Usage

Start the server
npm start
Use with Claude Code

Add to ~/.claude.json:

{

"mcpServers": { "bing-ads": { "type": "http", "url": "http://localhost:3002" } } }

Claude Desktop: Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).

Example API Calls
// Get client context

bing_ads_get_client_context({ working_directory: "/path/to/project" })

// List campaigns bing_ads_list_campaigns()

// Get campaign performance bing_ads_get_campaign_performance({ start_date: "2026-01-01", end_date: "2026-03-01" })

// Get keyword performance bing_ads_keyword_performance({ start_date: "2026-02-01", end_date: "2026-03-01" })

// Create negative keywords bing_ads_add_shared_negatives({ shared_list_id: "list_123", keywords: [ { text: "cheap", match_type: "Phrase" }, { text: "discount", match_type: "Exact" } ] })

API Reference

Context
  • bing_ads_get_client_context(working_directory) -- Detect account from working directory
Campaigns
  • bing_ads_list_campaigns() -- List all campaigns
  • bing_ads_get_campaign_performance(start_date, end_date) -- Campaign metrics
  • bing_ads_update_campaign_budget(campaign_id, daily_budget) -- Update daily spend
Ad Groups
  • bing_ads_list_ad_groups(campaign_id) -- List ad groups in campaign
Keywords
  • bing_ads_keyword_performance(start_date, end_date, [campaign_ids]) -- Keyword metrics & QS
  • bing_ads_search_term_report(start_date, end_date) -- Search terms that triggered ads
  • bing_ads_pause_keywords(ad_group_id, keyword_ids) -- Pause keywords
Negative Keywords
  • bing_ads_list_shared_entities([type]) -- List shared negative lists
  • bing_ads_add_shared_negatives(list_id, keywords) -- Add to shared list
Performance Reports
  • Campaign performance (ROI, conversions, CTR, CPC)
  • Keyword performance (QS, expected CTR, ad relevance, landing page experience)
  • Search term insights (which queries are converting)

Key Metrics & Definitions

Quality Score (QS): 1-10 rating of keyword quality

  • 1-3: Poor
  • 4-6: Average
  • 7-10: Excellent

Expected CTR: 1-9 rating of expected click-through rate Ad Relevance: 1-9 rating of relevance to search query Landing Page Experience: 1-9 rating of landing page quality

CLI Tools

npm run dev                 # Run in dev mode (tsx)

npm run build # Compile TypeScript npm test # Run contract tests

Architecture

Files:

  • src/index.ts — MCP server, OAuth flow, tool handlers
  • src/tools.ts — Tool schema definitions
  • src/errors.ts — Error handling & classification
  • config.json — Credentials & client mapping

Error Classification:

  • Authentication errors (token expired)
  • Rate limit errors (retry with backoff)
  • Service errors (API temporarily unavailable)
  • Validation errors (bad input)

Development

Adding a New Tool
  1. Define schema in src/tools.ts
  2. Add handler in src/index.ts tool dispatch
  3. Add contract test in .contract.test.ts
  4. Test with npm test
Testing
npm test -- --run        # Single run

npm test -- --watch # Watch mode

Troubleshooting

Config file not found
cp config.example.json config.json

Fill in your Azure credentials and Bing Ads IDs

Missing required credentials

Check that:

  • BING_ADS_DEVELOPER_TOKEN, BING_ADS_CLIENT_ID, and BING_ADS_REFRESH_TOKEN are set
  • BING_ADS_CLIENT_SECRET is set (if using a confidential app)
  • OAuth token is valid (expires, may need refresh)
Rate limit exceeded

Bing Ads applies rate limits. The server handles common retries automatically. If you hit limits frequently:

  • Batch operations when possible
  • Reduce query frequency
  • Wait before retrying
Quality Score is 0

QS = 0 means keyword hasn't been shown enough times yet. Increase impressions or wait for more data.

License

MIT

Contributing

Contributions welcome! Please:

  1. Add tests for new features
  2. Update README
  3. Follow existing code style
  4. Tag releases

Support

  • Issues: GitHub issues for bugs/feature requests
  • Docs: See docs/ folder for detailed API reference
  • Community: GitHub Discussions

Built By

[Mark Harnett](https://www.linkedin.com/in/markharnett/) — Demand generation leader and paid media practitioner building AI-powered ad management tools. This is the first comprehensive open-source Bing Ads MCP server — born from managing real campaigns across multiple accounts and wanting Claude to do the heavy lifting.

Built with production workloads in mind: resilient API calls (circuit breakers, retry with backoff, response truncation), full Quality Score diagnostics, and negative keyword management at scale.

Also by Mark: mcp-linkedin-ads -- LinkedIn Ads MCP server with 7 tools.

Last Updated: 2026-03-13

Ask PopNx