Skip to main content
Glama
msads-mcp

msads-mcp

by kopeli91

msads-mcp

A small, read-only Microsoft Advertising (Bing Ads) MCP server for Claude Code.

It's built for one common case. Your Microsoft Ads login is a personal Microsoft account (MSA) that uses a work email as its username, and the hosted Microsoft Ads connector rejects it with "This username may be incorrect… contact your admin."

Quick start with Claude Code

Clone the repo, open Claude Code in the folder, and say:

Follow SETUP_PROMPT.md and set this up for me.

The setup prompt walks Claude (or you) through every step. It covers the Azure app registration, secrets, one-time sign-in and registering the server.

Using the Claude Desktop app instead of Claude Code? Follow CLAUDE_DESKTOP.md.

Related MCP server: Bing Ads MCP Server

What's in here

file

what it does

CLAUDE_DESKTOP.md

how to add the server to the Claude Desktop app

SETUP_PROMPT.md

the full setup guide, written as a prompt you can give Claude

auth.py

one-time OAuth sign-in that stores a refresh token

server.py

the MCP server, with the tools campaigns and conversion_goals

requirements.txt

Python dependencies

Secrets go in ~/.msads/ by default. Set MSADS_SECRETS_DIR to use a different folder. Nothing secret is stored in this repo.

Tools (read-only)

  • campaigns(status) returns each search campaign's name, status, daily budget, bid strategy, tROAS and max CPC

  • conversion_goals() returns each account conversion goal's name, type, status, exclude-from-bidding flag and conversion window

Change history, offline-upload status and performance reporting are TODO. Pull requests are welcome.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      This read-only MCP Server allows you to connect to Bing Ads data from Claude Desktop through CData JDBC Drivers. Free (beta) read/write servers available at https://www.cdata.com/solutions/mcp
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      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.
      9
      338 npm
      5
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude.ai users to connect multiple Microsoft Advertising accounts and securely query customers, accounts, campaigns, ad groups, ads, keywords, and performance reports through MCP.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects AI assistants to Microsoft Advertising (Bing Ads) accounts so they can query performance, pull search advertising reports, and create or optimize campaigns, ad groups, keywords, audiences, and conversion tracking through natural language. Write actions are available but new campaigns start paused and deletes stay off by default.
      MIT