Microsoft Ads MCP server

Microsoft Ads, from your AI agent.

Use your AI agent to review Microsoft Advertising campaigns, often called Bing Ads. The same account buys search ads that can appear on DuckDuckGo. Read campaign results, inspect ad group distribution and preview supported changes.

Prefer to run it on your machine? Local setup for Microsoft Ads

What you can do with Microsoft Ads MCP

Turn reports into a conversation

Request campaign performance without manually handling report downloads. Adport manages Microsoft’s asynchronous report flow and returns normalized results.

Compare search accounts

Inspect campaign spend and available conversion metrics alongside another connected search provider. Keep currencies and attribution settings separate when interpreting differences.

Review status and daily budgets

Preview campaign activation, pausing, or budget adjustments. Protected-account and budget-cap policies apply before an operation can be executed.

Connect Microsoft Ads in Adport Cloud

Start with read-only reporting on the free plan. Paid plans add supported writes with an approval step.

  1. Open Connections in the Adport Cloud project for this advertiser. Choose Microsoft Advertising and sign in with a user who can access the intended ad account.
  2. Select the numeric advertising account ID, save it and enable agent access. A manager login can see several advertisers.
  3. Authorize your AI assistant for the same project. Ask it to list the search campaign and its ad groups so you can check where the campaign is eligible to serve.

Prefer local setup for Microsoft Ads?

The npm CLI and MCP server run on your machine. You need Node.js 22.13 or newer, your own provider credentials, and permission to access the ad account.

  1. Install Adport
    npm install -g adport
  2. Connect Microsoft Ads
    adport connect microsoft
    The wizard selects sandbox or production and opens a PKCE sign-in flow. Rotated refresh tokens are persisted in the local credential store.
  3. Check your connection
    adport doctor
    adport accounts --provider microsoft
    Check that the intended account appears before asking your agent to report on it. Never paste tokens, client secrets, or private keys into chat.
  4. Register a local stdio client
    claude mcp add --transport stdio adport -- adport mcp
    For Cursor, merge {"mcpServers":{"adport":{"command":"adport","args":["mcp"]}}} into your MCP configuration. ChatGPT uses the HTTP endpoint above instead of launching a local process.

Use Microsoft Ads from your agent.

Adport Cloud is in public early access. Create a free account to connect your ad accounts.

Connect your ad accounts in Adport, then choose your AI assistant below.

Use Microsoft Ads in ChatGPT

Add Adport to ChatGPT ↗

Sign in to Adport and choose the project to connect. Select Adport in your conversation.

Manual MCP setup

Open Plugins, choose +, then Add custom MCP server. Name it Adport, paste this server URL, and choose OAuth.

Open ChatGPT Plugins ↗

https://app.adport.dev/mcp

Create the plugin, sign in to Adport, and install it. In a new chat, type @ and select Adport before asking your first question.

Your ChatGPT workspace must allow custom MCP plugins. ChatGPT custom MCP documentation ↗

Use Microsoft Ads in Codex

Run this command in your terminal. It adds Adport to the MCP configuration shared by your local Codex clients.

codex mcp add adport --url https://app.adport.dev/mcp

Complete the browser sign-in when prompted. If sign-in has not started, run the command below.

codex mcp login adport

Use Microsoft Ads in Claude

Open Customize → Connectors, choose + Add, then Add custom connector. Name it Adport and paste this server URL.

Open Claude Connectors ↗

https://app.adport.dev/mcp

Keep sign-in enabled and finish connecting to Adport. In your conversation, open + → Connectors and enable Adport.

Use Microsoft Ads in Claude Code

Run this command in your terminal. User scope makes Adport available across your local Claude Code projects.

claude mcp add --transport http --scope user adport https://app.adport.dev/mcp

Open Claude Code and run /mcp. Select Adport and follow the browser sign-in.

Use Microsoft Ads in Cursor

Open the install link and confirm Add in Cursor. Adport uses browser sign-in, so no API key is needed.

Add to Cursor ↗

Add this configuration to ~/.cursor/mcp.json for manual setup.

{
  "mcpServers": {
    "adport": {
      "url": "https://app.adport.dev/mcp"
    }
  }
}

Complete the sign-in from Cursor’s MCP settings, then start a conversation with Agent.

Use Microsoft Ads in any MCP client

Add a remote MCP server in your assistant. Name it Adport, paste this URL, and choose Streamable HTTP with OAuth.

https://app.adport.dev/mcp

Follow your assistant’s sign-in prompt. If it does not support OAuth, an admin can create an API key under Advanced on the AI assistants page.

Use the MCP URL from AI assistants if you run your own Adport deployment. Client settings, workspace permissions, and advertising-platform approvals still apply.

A suggestion is not a live change.

Try the write gate

The first mutation call returns a preview and a short-lived pending-operation token. Applying requires that token and the same arguments. Budget caps and protected accounts are checked by the policy engine; new campaigns are paused by policy.

Local operations are recorded in an append-only audit log. An approved preview is not a guarantee of provider acceptance, and a connected agent does not grant additional account permissions.

Microsoft Ads MCP questions

Is Bing Ads supported by this Microsoft MCP?

Yes. Bing Ads is the former name many advertisers still use for Microsoft Advertising. Connect with the microsoft provider command, not a separate bing provider.

How do I connect Microsoft Ads to Claude or Claude Code?

Follow the Microsoft Ads and Claude setup guide for account authorization, MCP commands, a first report, and platform-specific reporting details. Choose the hosted connection offered in your workspace or the local setup with your own provider credentials.

How do I connect Microsoft Ads to ChatGPT?

Follow the Microsoft Ads and ChatGPT guide for the hosted MCP plugin, OAuth project authorization, reporting prompts, and provider-specific troubleshooting. Start with a verified account read before requesting changes.

Can I use Microsoft Ads locally without Adport Cloud?

Yes. Install Adport from npm, connect your own Microsoft Ads credentials, and register the local MCP server with a stdio-compatible agent such as Claude Code or Cursor. Your provider may have its own approval, access, or billing requirements.

Why can I connect an account but not read a report or apply a change?

Account discovery, reporting, and mutations can require different permissions. Check the requested account, provider app scopes, advertiser eligibility, and environment. Start with adport doctor and the connection guide above. Do not bypass a denied operation by sharing secrets with the agent.

Adport Cloud early access

Connect your first ad account

Run reports from your AI assistant with the free plan. No credit card required.

Start free Sign in

Message Yannick

Yannick, Adport founder
Hey, I’m Yannick, the founder.

Have a question? Send me a message. I read every one.

Your email and message are used to reply. Privacy

Prefer email? yannick@adport.dev ↗