
mharnett/mcp-bing-ads
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP server for Microsoft/Bing Ads - campaign, ad group, keyword, and performance management via Claude
Обзор
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. - -- 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) ⚠️ First open-source Bing Ads MCP with comprehensive tooling - No serious alternatives exist in the ecosystem - Battle-tested across multiple accounts Never share your .mcp.json file or commit it to git -- it may contain API credentials. Add .mcp.json to your .gitignore. 1. - Go to Microsoft Azure Portal - Create an Azure AD app registration - Grant API permissions: Microsoft Advertising API - Scopes: https://ads.microsoft.com/msads.
README
Показан фрагмент оригинального README. Открыть оригинал.
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.
-
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
-
Create
config.json:cp config.example.json config.json -
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" } } } -
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
| Variable | Required | Default | Description |
|---|---|---|---|
BING_ADS_DEVELOPER_TOKEN |
yes | – | Microsoft Advertising developer token |
BING_ADS_CLIENT_ID |
yes | – | Azure AD app client ID |
BING_ADS_REFRESH_TOKEN |
yes | – | OAuth refresh token |
BING_ADS_CLIENT_SECRET |
no | – | Azure AD app client secret (if confidential client) |
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"bing-ads": {
"type": "http",
"url": "http://localhost:3002"
}
}
}