modelscope·@gomarble-ai/google-ads-mcp-server
暂无描述。
A FastMCP-powered Model Context Protocol server for Google Ads API integration with automatic OAuth 2.0 authentication
Connect Google Ads API directly to Claude Desktop and other MCP clients with seamless OAuth 2.0 authentication, automatic token refresh, GAQL querying, and keyword research capabilities.
<video controls width="1920" height="512" src="https://github.com/user-attachments/assets/1dc62f47-ace4-4dcf-8009-593ef7194b43">Your browser does not support the video tag.</video>
For a simpler setup experience, we offer ready-to-use installers:
Download installer - https://gomarble.ai/mcp
Slack Community - AI in Ads
Facebook Ads MCP - Facebook Ads MCP
| Tool | Description | Parameters | Example Usage |
|---|---|---|---|
list_accounts | List all accessible Google Ads accounts | None | "List all my Google Ads accounts" |
run_gaql | Execute GAQL queries with custom formatting | customer_id, query, manager_id (optional) | "Show me campaign performance for account 1234567890" |
run_keyword_planner | Generate keyword ideas with metrics | customer_id, keywords, manager_id, page_url, date range options | "Generate keyword ideas for 'digital marketing'" |
Note: All tools automatically handle authentication - no token parameters required!
Before setting up the MCP server, you'll need:
client_secret_[long-string].json in your project directoryNote: You'll initially get a test token with limited functionality. After testing, you can apply for production access.
Once approved:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)# Clone the repository
git clone https://github.com/yourusername/google-ads-mcp-server.git
cd google-ads-mcp-server
# Create virtual environment (recommended)
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Create a .env file in your project directory:
# Copy the example file
cp .env.example .env
Edit .env with your credentials:
# Required: Google Ads API Developer Token
GOOGLE_ADS_DEVELOPER_TOKEN=your_developer_token_here
# Required: Path to OAuth credentials JSON file (downloaded from Google Cloud)
GOOGLE_ADS_OAUTH_CONFIG_PATH=/full/path/to/your/client_secret_file.json
Example .env file:
GOOGLE_ADS_DEVELOPER_TOKEN=ABCDEFG1234567890
GOOGLE_ADS_OAUTH_CONFIG_PATH=/Users/john/google-ads-mcp/client_secret_138737274875-abc123.apps.googleusercontent.com.json
Find your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.…
# 翻译 一个通过模型上下文协议提供访问Google Search Console数据的服务器,允许用户检索和分析具有自定义维度和报告周期的搜索分析数据。
一种模型上下文协议服务器,允许AI助手通过Dub.co API创建、更新和删除Dub.co短链接。
启用人工智能和大语言模型系统与Buttondown通讯服务的交互,支持通过模型上下文协议接口进行电子邮件草拟、安排、分析检索和列表管理。
为电子邮件活动和潜在客户管理功能提供对Instantly API v2的访问。
提供了一个通过SendGrid的API管理电子邮件营销、联系人列表、动态模板和电子邮件分析的接口。
一个多通道代理服务器,为与Smartlead的API交互提供结构化的接口,将功能组织成逻辑工具,用于活动管理、潜在客户管理和其它营销自动化功能。