google-ads-mcp
MCP server for Google Ads campaign reporting and management via Claude, enabling GAQL queries, performance metrics, and campaign modifications.
README
Google Ads MCP Server
MCP server for Google Ads campaign reporting and management via Claude.
Setup
1. Google Cloud Console
- Go to Google Cloud Console
- Create a new project (or select existing)
- Enable the Google Ads API
- Go to APIs & Services > Credentials
- Create an OAuth 2.0 Client ID (type: Desktop app)
- Note your Client ID and Client Secret
2. Developer Token
- Sign in to your Google Ads account
- Go to Tools & Settings > API Center (
ads.google.com/aw/apicenter) - Apply for a developer token (test accounts get one immediately)
- Note your Developer Token
3. OAuth Refresh Token
# Set your credentials first
export GOOGLE_ADS_CLIENT_ID=your_client_id
export GOOGLE_ADS_CLIENT_SECRET=your_client_secret
# Run the auth setup
npm run auth
This opens a browser for Google sign-in. After authorizing, you'll get a refresh token.
4. Find Your Customer ID
Your Google Ads Customer ID is the 10-digit number shown in the top-right of the Google Ads UI (e.g., 123-456-7890). Enter it without dashes: 1234567890.
5. Configure in Claude Code
Add to your Claude Code settings (~/.claude/settings.local.json or project-level):
{
"mcpServers": {
"google-ads": {
"command": "node",
"args": ["/path/to/google-ads-mcp/dist/index.js"],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "your_developer_token",
"GOOGLE_ADS_CLIENT_ID": "your_client_id",
"GOOGLE_ADS_CLIENT_SECRET": "your_client_secret",
"GOOGLE_ADS_REFRESH_TOKEN": "your_refresh_token",
"GOOGLE_ADS_CUSTOMER_ID": "1234567890"
}
}
}
}
Manager Account (MCC)
If your refresh token is from a Manager Account that manages the target account, add:
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "your_manager_account_id"
Tools (14 total)
Reporting (8 tools)
- gads_query - Execute custom GAQL queries
- gads_campaign_performance - Campaign metrics with date range and status filters
- gads_adgroup_performance - Ad group metrics, filterable by campaign
- gads_keyword_performance - Keyword metrics with quality score
- gads_ad_performance - Ad-level metrics with headlines/descriptions
- gads_search_terms - Search terms that triggered ads
- gads_account_summary - High-level account overview
- gads_budget_report - Budget utilization per campaign
Accounts (1 tool)
- gads_list_accounts - List accessible customer accounts
Management (5 tools)
- gads_list_campaigns - List campaigns with configuration
- gads_set_campaign_status - Enable or pause a campaign
- gads_update_campaign_budget - Update daily budget
- gads_set_adgroup_status - Enable or pause an ad group
- gads_set_keyword_status - Enable, pause, or remove a keyword
Build
npm install
npm run build
Environment Variables
| Variable | Required | Description |
|---|---|---|
GOOGLE_ADS_DEVELOPER_TOKEN |
Yes | From Google Ads API Center |
GOOGLE_ADS_CLIENT_ID |
Yes | OAuth2 client ID |
GOOGLE_ADS_CLIENT_SECRET |
Yes | OAuth2 client secret |
GOOGLE_ADS_REFRESH_TOKEN |
Yes | From npm run auth |
GOOGLE_ADS_CUSTOMER_ID |
Yes | 10-digit account ID (no dashes) |
GOOGLE_ADS_LOGIN_CUSTOMER_ID |
No | Required if using Manager Account |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。