Model Context Protocol server for Google Ads management
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add google-ads-server-node-js --env GOOGLE_ADS_CONFIG='<GOOGLE_ADS_CONFIG>' --env GOOGLE_ADS_CUSTOMER_ID='<GOOGLE_ADS_CUSTOMER_ID>' -- npx @samihalawa/google-ads-mcp-server~/.codex/config.toml
[mcp_servers.google-ads-server-node-js]
command = "npx"
args = ["@samihalawa/google-ads-mcp-server"]
env = { GOOGLE_ADS_CONFIG = "<GOOGLE_ADS_CONFIG>", GOOGLE_ADS_CUSTOMER_ID = "<GOOGLE_ADS_CUSTOMER_ID>" }
# codex mcp add google-ads-server-node-js --env GOOGLE_ADS_CONFIG='<GOOGLE_ADS_CONFIG>' --env GOOGLE_ADS_CUSTOMER_ID='<GOOGLE_ADS_CUSTOMER_ID>' -- npx @samihalawa/google-ads-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"google-ads-server-node-js": {
"command": "npx",
"args": [
"@samihalawa/google-ads-mcp-server"
],
"env": {
"GOOGLE_ADS_CONFIG": "<GOOGLE_ADS_CONFIG>",
"GOOGLE_ADS_CUSTOMER_ID": "<GOOGLE_ADS_CUSTOMER_ID>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"google-ads-server-node-js": {
"type": "stdio",
"command": "npx",
"args": [
"@samihalawa/google-ads-mcp-server"
],
"env": {
"GOOGLE_ADS_CONFIG": "<GOOGLE_ADS_CONFIG>",
"GOOGLE_ADS_CUSTOMER_ID": "<GOOGLE_ADS_CUSTOMER_ID>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"google-ads-server-node-js": {
"command": "npx",
"args": [
"@samihalawa/google-ads-mcp-server"
],
"env": {
"GOOGLE_ADS_CONFIG": "<GOOGLE_ADS_CONFIG>",
"GOOGLE_ADS_CUSTOMER_ID": "<GOOGLE_ADS_CUSTOMER_ID>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"google-ads-server-node-js": {
"command": "npx",
"args": [
"@samihalawa/google-ads-mcp-server"
],
"env": {
"GOOGLE_ADS_CONFIG": "<GOOGLE_ADS_CONFIG>",
"GOOGLE_ADS_CUSTOMER_ID": "<GOOGLE_ADS_CUSTOMER_ID>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"google-ads-server-node-js": {
"command": "npx",
"args": [
"@samihalawa/google-ads-mcp-server"
],
"env": {
"GOOGLE_ADS_CONFIG": "<GOOGLE_ADS_CONFIG>",
"GOOGLE_ADS_CUSTOMER_ID": "<GOOGLE_ADS_CUSTOMER_ID>"
}
}
}
}Environment variables
GOOGLE_ADS_CONFIGGOOGLE_ADS_CUSTOMER_ID
Replace the placeholders with your own credentials and keep them out of version control.