Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@
"name": "x-ads",
"source": "third_party/x-ads",
"description": "Manage ad campaigns, create ads, track conversions, and pull performance stats."
},
{
"name": "microsoft-ads",
"source": "third_party/microsoft-ads",
"description": "Explore campaigns, ad groups, ads, keywords, and pull performance metrics."
}
]
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Official Cursor plugins for popular developer tools, frameworks, and SaaS produc
| `similarweb` | [Similarweb](third_party/similarweb/) | Cursor | Integrations | Analyze website traffic, audiences, and competitors. |
| `xero` | [Xero](third_party/xero/) | Cursor | Integrations | Read and write invoices, contacts, reports, and payroll. |
| `x-ads` | [X Ads](third_party/x-ads/) | Cursor | Integrations | Manage ad campaigns, create ads, track conversions, and pull performance stats. |
| `microsoft-ads` | [Microsoft Advertising](third_party/microsoft-ads/) | Cursor | Integrations | Explore campaigns, ad groups, ads, keywords, and pull performance metrics. |
Author values match each plugin’s `plugin.json` `author.name` (Cursor lists `plugins@cursor.com` in the manifest).

## Repository structure
Expand Down
51 changes: 51 additions & 0 deletions third_party/microsoft-ads/.cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "microsoft-ads",
"displayName": "Microsoft Advertising",
"version": "1.0.0",
"minClientVersions": {
"cursor": "3.13.0"
},
"description": "Explore campaigns, ad groups, ads, keywords, and pull performance metrics.",
"author": {
"name": "Cursor",
"email": "plugins@cursor.com"
},
"homepage": "https://learn.microsoft.com/en-us/advertising/guides/mcp-setup?view=bingads-13",
"repository": "https://github.com/cursor/plugins",
"license": "MIT",
"logo": "assets/logo.svg",
"keywords": [
"microsoft",
"microsoft advertising",
"bing",
"bing ads",
"ads",
"advertising",
"campaigns",
"keywords",
"analytics",
"mcp"
],
"category": "integrations",
"tags": [
"microsoft",
"bing",
"ads",
"advertising",
"mcp"
],
"variables": {
"type": "object",
"properties": {
"CLIENT_ID": {
"type": "string",
"title": "Microsoft Entra application (client) ID",
"description": "Application (client) ID of the Microsoft Entra ID (Azure AD) app registration you created for this integration (Entra admin center → App registrations → your app → Overview)."
}
},
"required": [
"CLIENT_ID"
]
},
"mcpServers": "./mcp.json"
}
9 changes: 9 additions & 0 deletions third_party/microsoft-ads/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

All notable changes to this plugin will be documented here.

## 1.0.0 — initial release

- Added the `microsoft-ads` MCP server pointing at Microsoft's hosted Microsoft Advertising MCP server, `https://partner.api.bingads.microsoft.com/ext/mcp/vnext?toolSetNames=OpenBeta`.
- OAuth user sign-in through Microsoft Entra ID using a customer-registered app registration (`CLIENT_ID` plugin variable), requesting `https://ads.microsoft.com/msads.manage` and `offline_access`. Cursor authenticates as a public client with PKCE, so no client secret is stored.
- Logo: Microsoft's four-square symbol on a white tile with padding, matching the Outlook and OneDrive plugins.
21 changes: 21 additions & 0 deletions third_party/microsoft-ads/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Cursor

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
98 changes: 98 additions & 0 deletions third_party/microsoft-ads/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Microsoft Advertising

Cursor plugin that connects agents to [Microsoft Advertising](https://about.ads.microsoft.com/en/solutions/technology/mcp-server) (formerly Bing Ads) through Microsoft's official hosted [Model Context Protocol](https://modelcontextprotocol.io/) server at `https://partner.api.bingads.microsoft.com/ext/mcp/vnext`.

This plugin signs you in with Microsoft Entra ID (Azure AD) OAuth as your own Microsoft Advertising user and works with the advertiser accounts you can access. Agents can explore accounts, campaigns, ad groups, ads, keywords, asset groups, and audience associations, and pull performance metrics (spend, clicks, impressions, CTR, CPC, conversions, ROAS, and more) over a date range.

The server is in open beta and its current tool set is read-only: it retrieves and analyzes data but does not create or edit campaigns.

## Install

1. Open **Cursor Settings → Plugins**.
2. Search for **Microsoft Advertising**.
3. Click **Install**, then set the client ID (below) and complete the Microsoft sign-in prompt.

Or run `/add-plugin microsoft-ads` in chat.

## MCP

```json
{
"mcpServers": {
"microsoft-ads": {
"type": "http",
"url": "https://partner.api.bingads.microsoft.com/ext/mcp/vnext?toolSetNames=OpenBeta",
"auth": {
"CLIENT_ID": "${CLIENT_ID}",
"scopes": [
"https://ads.microsoft.com/msads.manage",
"offline_access"
]
}
}
}
}
```

`toolSetNames=OpenBeta` selects the open-beta tool set, matching the server URL Microsoft documents for VS Code and Claude.

## What agents can do

| Tool | Capabilities |
| --- | --- |
| `GetAccounts` | Retrieve the advertiser accounts you can access |
| `GetCampaigns` | List and filter campaigns by name, type, budget, status, and bidding strategy |
| `GetAdGroups` | List ad groups within campaigns and review bid settings |
| `GetAds` | Review ads and find top- and under-performing creatives |
| `GetKeywords` | Review keyword inventory, match types, and keyword performance |
| `GetAssetGroups` | Retrieve Performance Max asset groups |
| `GetAudienceAssociations` | Retrieve audience targeting associations |

Every tool supports filtering, sorting, and pagination. Performance metrics are returned when a `PerformanceDateRange` is supplied, so agents can rank entities by spend, conversions, or ROAS over a period.

## Setup

Microsoft Advertising MCP authenticates through Microsoft Entra ID. Microsoft does not publish a shared OAuth client, so you register your own app once and give the plugin its client ID. No client secret is involved — Cursor authenticates as a public client using PKCE.

### 1. Create an app registration

1. In the [Microsoft Entra admin center](https://entra.microsoft.com/) (or Azure portal), go to **App registrations → New registration**.
2. Under **Supported account types**, choose the option that includes both organizational directory accounts and personal Microsoft accounts, so that any account with Microsoft Advertising access can sign in.
3. Under **Redirect URI**, select the **Public client/native (mobile & desktop)** platform and enter the first of Cursor's callbacks, then register the app.
4. Open **Authentication → Mobile and desktop applications** and make sure both callbacks are listed. Do not create a client secret.

| Surface | Redirect URI |
|:--------|:-------------|
| Desktop | `http://localhost:8787/callback` |
| Web and Cloud Agents | `https://www.cursor.com/agents/mcp/oauth/callback` |

5. Under **API permissions**, add the delegated **Microsoft Advertising API → msads.manage** permission. Tenants that require admin consent will need an administrator to grant it.
6. Copy the **Application (client) ID** from the app's **Overview** page.

### 2. Configure the plugin

In **Dashboard → Plugins → Configure**, set **Microsoft Entra application (client) ID**, then complete the Microsoft sign-in when Cursor prompts and grant consent.

On a team marketplace an admin sets the client ID once. Each member still signs in individually, so tools run against the advertiser accounts that member's Microsoft Advertising user can access. The `offline_access` scope lets Cursor refresh the session automatically, so you only sign in once.

## Troubleshooting

| Symptom | Cause |
|:--------|:------|
| `AADSTS50011` redirect URI mismatch | One of Cursor's callbacks above is missing from the app registration, or it was added under the **Web** platform instead of **Mobile and desktop applications**. |
| `AADSTS65001` / consent required | The `msads.manage` permission has not been consented to. Grant it yourself, or ask a tenant administrator to grant admin consent. |
| Sign-in succeeds but no accounts are returned | The signed-in Microsoft account has no Microsoft Advertising user or is not linked to any advertiser accounts. |

## Docs

- Microsoft Advertising MCP server overview: https://about.ads.microsoft.com/en/solutions/technology/mcp-server
- MCP server setup guide: https://learn.microsoft.com/en-us/advertising/guides/mcp-setup?view=bingads-13
- MCP server tools: https://learn.microsoft.com/en-us/advertising/guides/mcp-tools?view=bingads-13
- MCP server use cases: https://learn.microsoft.com/en-us/advertising/guides/mcp-use-cases?view=bingads-13
- Register an application: https://learn.microsoft.com/en-us/advertising/guides/authentication-oauth-register?view=bingads-13

Logo is Microsoft's four-square symbol, placed on a white tile with padding so it reads well in the Cursor UI, matching the Outlook and OneDrive plugins.

## License

MIT
1 change: 1 addition & 0 deletions third_party/microsoft-ads/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions third_party/microsoft-ads/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"mcpServers": {
"microsoft-ads": {
"type": "http",
"url": "https://partner.api.bingads.microsoft.com/ext/mcp/vnext?toolSetNames=OpenBeta",
"auth": {
"CLIENT_ID": "${CLIENT_ID}",
"scopes": [
"https://ads.microsoft.com/msads.manage",
"offline_access"
]
}
}
}
}
Loading