🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

adrex-ai

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adrex-ai

Open-source MCP server for managing Google Ads & Meta Ads from AI assistants like Claude, ChatGPT, and Cursor. 54 tools for campaign management, reporting, keywords, targeting, and more.

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

Adrex AI

MCP server for Google Ads & Meta Ads

Manage your ad campaigns from Claude Code, Cursor, Codex, Gemini, or any MCP client.

Quick Start | 54 Tools | Platform | Discord

What is Adrex AI?

Adrex AI is an MCP (Model Context Protocol) server that connects AI assistants to your Google Ads and Meta Ads accounts. Instead of navigating complex dashboards, you manage campaigns through natural language.

You: "Show me my Google Ads performance for the last 7 days"
Claude: [calls google_ads_campaign_performance] → table with spend, clicks, CTR, ROAS

You: "Pause the campaign with the lowest ROAS"
Claude: [calls google_ads_pause_campaign] → campaign paused, no more spend

You: "Create a Meta campaign for our summer sale, $50/day budget"
Claude: [calls meta_ads_create_campaign] → campaign created PAUSED for your review

You connect your ad accounts once in the Adrex dashboard (secure OAuth — your tokens stay on our servers, never in the MCP client), then drive everything from your AI assistant with a single API key.

Safety First

These tools operate on real ad accounts that spend real money:

  • All campaigns and ads are created PAUSED — no spend until you explicitly resume
  • Destructive and spend-starting actions return clear warnings
  • Read operations (metrics, lists) run freely without side effects

Quick Start

1. Get your API key

Sign up at adrex.ai, connect your Google/Meta ad accounts in Settings, and generate an API key.

2. Add the server to your AI assistant

Adrex ships a standard stdio MCP server, so it works with any MCP client. Pick yours below — every config points at npx -y adrex-ai with your ADREX_API_KEY.

Claude Code:

claude mcp add -s user adrex-ai -e ADREX_API_KEY=your-api-key -- npx -y adrex-ai

Gemini CLI:

gemini mcp add adrex-ai -e ADREX_API_KEY=your-api-key -- npx -y adrex-ai

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json), Cursor (~/.cursor/mcp.json global or .cursor/mcp.json per-project), Gemini CLI (~/.gemini/settings.json), or any client using the JSON mcpServers format:

{
  "mcpServers": {
    "adrex-ai": {
      "command": "npx",
      "args": ["-y", "adrex-ai"],
      "env": {
        "ADREX_API_KEY": "your-api-key"
      }
    }
  }
}

Codex (~/.codex/config.toml) — note Codex uses TOML, not JSON:

[mcp_servers.adrex-ai]
command = "npx"
args = ["-y", "adrex-ai"]
env = { ADREX_API_KEY = "your-api-key" }

Any other MCP client (Cline, Windsurf, Zed, Continue, …): point it at command npx -y adrex-ai with env ADREX_API_KEY set to your key.

That's it — no SDK setup, no developer tokens, no OAuth juggling. The server forwards each request to the Adrex backend, which uses the ad-account credentials you connected in the dashboard.

Behind a corporate proxy? v1.0.4+ automatically routes through HTTP_PROXY / HTTPS_PROXY.

Tools

Google Ads (28 tools)

Campaigns

ToolDescription
google_ads_list_accountsList all accessible Google Ads accounts
google_ads_list_campaignsList campaigns with performance metrics
google_ads_get_campaignGet detailed campaign info and metrics
google_ads_create_search_campaignCreate a Search campaign (created PAUSED)
google_ads_update_campaignUpdate name, budget, or bidding strategy
google_ads_pause_campaignPause a campaign
google_ads_resume_campaignResume a paused campaign
google_ads_delete_campaignPermanently remove a campaign

Ad Groups

ToolDescription
google_ads_list_ad_groupsList ad groups with metrics
google_ads_create_ad_groupCreate an ad group with CPC bid
google_ads_update_ad_groupUpdate name, bid, or status
google_ads_pause_ad_groupPause an ad group
google_ads_delete_ad_groupRemove an ad group

Ads

ToolDescription
google_ads_list_adsList ads with headlines, URLs, and metrics
google_ads_create_responsive_search_adCreate RSA with headlines & descriptions
google_ads_pause_adPause an ad
google_ads_enable_adEnable a paused ad
google_ads_delete_adRemove an ad

Keywords

ToolDescription
google_ads_list_keywordsList keywords with quality score and metrics
google_ads_add_keywordsAdd keywords (BROAD, PHRASE, EXACT)
google_ads_add_negative_keywordsAdd negative keywords to a campaign
google_ads_pause_keywordPause a keyword
google_ads_remove_keywordRemove a keyword

Reporting

ToolDescription
google_ads_campaign_performancePerformance summary across all campaigns
google_ads_time_seriesDaily metrics over a date range
google_ads_breakdownsBreakdowns by device or network
google_ads_auction_insightsCompetitive auction metrics
google_ads_get_budgetCampaign budget details

Meta Ads (25 tools)

Campaigns

ToolDescription
meta_ads_list_accountsList all Meta ad accounts
meta_ads_list_campaignsList campaigns with metrics
meta_ads_get_campaignGet detailed campaign info
meta_ads_create_campaignCreate a campaign (created PAUSED)
meta_ads_update_campaignUpdate name, budget, or status
meta_ads_pause_campaignPause a campaign
meta_ads_resume_campaignActivate a paused campaign
meta_ads_delete_campaignDelete a campaign

Ad Sets

ToolDescription
meta_ads_list_ad_setsList ad sets with targeting and metrics
meta_ads_create_ad_setCreate ad set with targeting options
meta_ads_update_ad_setUpdate name, budget, or status
meta_ads_pause_ad_setPause an ad set
meta_ads_delete_ad_setDelete an ad set

Ads

ToolDescription
meta_ads_list_adsList ads with creative details and metrics
meta_ads_create_adCreate ad with copy, image, and CTA
meta_ads_pause_adPause an ad
meta_ads_enable_adActivate a paused ad
meta_ads_delete_adDelete an ad

Targeting & Audiences

ToolDescription
meta_ads_search_interestsSearch targeting interests and behaviors
meta_ads_list_audiencesList custom audiences
meta_ads_list_pagesList your Facebook pages
meta_ads_update_targetingUpdate ad set targeting

Reporting

ToolDescription
meta_ads_campaign_performancePerformance summary across campaigns
meta_ads_time_seriesDaily performance time series
meta_ads_breakdownsBreakdowns by device, platform, age, gender

Cross-Platform (1 tool)

ToolDescription
list_connected_platformsCheck which platforms are connected and your usage

Use Cases

Performance Review

"How are my Google Ads campaigns performing this month? Show me the ones with ROAS below 2x."

Campaign Management

"Create a new Meta traffic campaign called 'Summer Sale 2026' with a $75/day budget targeting ages 25-45 in the US."

Keyword Optimization

"Show me keywords in my 'Brand Terms' ad group. Pause any with quality score below 5."

Budget Control

"Increase the budget on my top-performing campaign by 20% and pause the one that's losing money."

Want More?

The MCP server gives you full campaign management from chat. The Adrex AI Platform adds:

  • AI Campaign Agent — autonomous optimization with guardrails and rollback
  • Creative Studio — AI-generated ad copy and images
  • A/B Testing — native platform experiments
  • Competitor Intelligence — track competitor ads across Google and Meta
  • Budget Rules Engine — automated rules with natural language parsing
  • Visual Dashboard — interactive charts, breakdowns, and time-series

License

MIT License — see LICENSE for details.

Built by the team behind Adrex AI

Keywords

mcp

FAQs

Package last updated on 09 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts