Marketing & analytics · Cursor & VS Code
Connect Microsoft Advertising to Cursor & VS Code
Bring Bing Ads performance into the same conversation as Google Ads. Plugsight links Microsoft Ads to Cursor & VS Code in a few minutes, with no code and no exports.
What you can ask Cursor & VS Code about Microsoft Ads
How to connect Microsoft Ads to Cursor & VS Code
- Create a free Plugsight account.
- Sign in with Microsoft. Plugsight finds every Microsoft Advertising account your login can access.
Then add Plugsight to Cursor & VS Code
- In Plugsight, open MCP servers, create one and copy its URL. For VS Code and Gemini CLI, also create an API key on the server's page.
- Cursor: add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project), save, then sign in to Plugsight and click Allow access when the browser opens:
{"mcpServers": {"plugsight": {"url": "https://app.plugsight.app/mcp/YOUR_SERVER_ID"}}} - If no browser window opens in Cursor, add an API key instead: put it in an environment variable called PLUGSIGHT_API_KEY and add "headers": {"Authorization": "Bearer ${env:PLUGSIGHT_API_KEY}"} next to the url.
- VS Code (Copilot agent mode): add this to .vscode/mcp.json. VS Code asks for the key once and stores it securely:
{"inputs": [{"type": "promptString", "id": "plugsight-key", "description": "Plugsight API key", "password": true}], "servers": {"plugsight": {"type": "http", "url": "https://app.plugsight.app/mcp/YOUR_SERVER_ID", "headers": {"Authorization": "Bearer ${input:plugsight-key}"}}}} - Gemini CLI: add this to ~/.gemini/settings.json
{"mcpServers": {"plugsight": {"httpUrl": "https://app.plugsight.app/mcp/YOUR_SERVER_ID", "headers": {"Authorization": "Bearer YOUR_API_KEY"}}}} - Reload the tool and ask its agent to use the Plugsight tools.
Cursor signs in to Plugsight in your browser. VS Code, Gemini CLI and other clients connect with your MCP server's URL and an API key. Works with any client that supports remote MCP servers over HTTP.
Full steps and troubleshooting in the docs: Cursor, VS Code, Other MCP apps.
Microsoft Ads data available
- Campaign, ad group, keyword, search query, ad and geographic performance
- Cost, clicks, impressions, conversions, revenue, CPA and ROAS
- Quality score and its components for keywords
- Impression share and share lost to budget or rank
- Age, gender, audiences and where searchers actually were
- Shopping products and Performance Max asset groups
- Daily, weekly or monthly trends, plus hour of day and day of week
- Campaign settings: status, type, budget and bidding strategy
Ready-made analyses
- Wasted spend: Non-converting search terms and keywords, and negative-keyword candidates.
- Scale opportunities: Converting keywords and campaigns held back by budget or rank.
- Search term winners: Converting searches that aren't keywords yet.
- Quality score audit: Spend by quality score and the component to fix.
- Period comparison: Any metrics against the previous period or last year.
Why use Microsoft Ads in Cursor & VS Code
- Use business data inside your editor
- Build dashboards and scripts on real numbers
- One server for many tools
Questions about Microsoft Ads and Cursor & VS Code
How do I connect Microsoft Advertising to Cursor & VS Code?
Create a free Plugsight account and connect Microsoft Ads: Sign in with Microsoft. Plugsight finds every Microsoft Advertising account your login can access. Then add Plugsight to Cursor & VS Code: In Plugsight, open MCP servers, create one and copy its URL. For VS Code and Gemini CLI, also create an API key on the server's page. Cursor: add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project), save, then sign in to Plugsight and click Allow access when the browser opens: {"mcpServers": {"plugsight": {"url": "https://app.plugsight.app/mcp/YOUR_SERVER_ID"}}} If no browser window opens in Cursor, add an API key instead: put it in an environment variable called PLUGSIGHT_API_KEY and add "headers": {"Authorization": "Bearer ${env:PLUGSIGHT_API_KEY}"} next to the url. VS Code (Copilot agent mode): add this to .vscode/mcp.json. VS Code asks for the key once and stores it securely: {"inputs": [{"type": "promptString", "id": "plugsight-key", "description": "Plugsight API key", "password": true}], "servers": {"plugsight": {"type": "http", "url": "https://app.plugsight.app/mcp/YOUR_SERVER_ID", "headers": {"Authorization": "Bearer ${input:plugsight-key}"}}}} Gemini CLI: add this to ~/.gemini/settings.json {"mcpServers": {"plugsight": {"httpUrl": "https://app.plugsight.app/mcp/YOUR_SERVER_ID", "headers": {"Authorization": "Bearer YOUR_API_KEY"}}}} Reload the tool and ask its agent to use the Plugsight tools.
Can Cursor & VS Code read my Microsoft Ads data?
Yes, once connected. Cursor & VS Code can see: Campaign, ad group, keyword, search query, ad and geographic performance; Cost, clicks, impressions, conversions, revenue, CPA and ROAS; Quality score and its components for keywords; Impression share and share lost to budget or rank. For example, ask: "How did Microsoft Ads perform last month compared with Google Ads?"
Which Cursor, VS Code & other MCP clients plans work?
Works with any client that supports remote MCP servers over HTTP.
How does Cursor & VS Code sign in to Plugsight?
Cursor signs in to Plugsight in your browser. VS Code, Gemini CLI and other clients connect with your MCP server's URL and an API key.
Can Cursor & VS Code change anything in Microsoft Ads?
No. Plugsight only reads Microsoft Advertising; it never creates, changes or deletes anything there.
Is the Microsoft Ads connector free?
Microsoft Advertising is on the Pro plan ($29 a month, or $290 a year), which also adds more connections and the other marketing sources. The Free plan covers email, helpdesk, calendar, contacts, files, stores and email marketing.
Good to know
- Reports are generated by Microsoft on request, so large date ranges can take a few seconds longer.
Related guides
Connect Microsoft Advertising to Cursor & VS Code
Free plan, no credit card. Set up in about five minutes.
Updated