Adrex AI

io.github.gauravapiscean由 GitHub 帳號 gauravapiscean 發布v1.0.12更新於 Oct 24, 2026

Open-source MCP server for Google Ads & Meta Ads — manage campaigns from any AI assistant.

已驗證STDIO僅桌面資料與分析商業與電商

概覽

AI 產生的概覽

開源 MCP 伺服器,讓助理用自然語言管理 Google Ads 與 Meta Ads 的廣告活動、報表、關鍵字和目標設定。

可以做什麼
  • 列出並檢視 Google Ads 與 Meta Ads 的帳戶、廣告活動、廣告群組、廣告和受眾
  • 建立、更新、暫停、恢復和刪除廣告活動、廣告群組、廣告與關鍵字(新建項目預設暫停)
  • 新增關鍵字與排除關鍵字,調整出價、預算和 Meta 目標設定
  • 取得成效報表:廣告活動彙總、每日時間序列、裝置/平台/年齡細分、競價洞察、預算明細
  • 分析關鍵字、廣告與素材成效、搜尋字詞、轉換追蹤健康狀態及近期帳戶變更
  • 執行跨平台帳戶健檢、診斷成效變動原因,並查看已連結的平台
適用情境
適合想在聊天用戶端而非廣告後台檢視、調整或建立 Google Ads 與 Meta Ads 廣告活動的人,例如每週成效檢視、預算調整、關鍵字清理或推出新廣告活動。
執行需求
透過 npx(Node.js)以 stdio 方式在本機執行;廠商另提供搭配瀏覽器登入的遠端 HTTP 方式。需要 Adrex 帳戶並在其後台連結 Google/Meta 廣告帳戶,還需在 ADREX_API_KEY 提供 API 金鑰。可選 ADREX_API_URL 覆寫後端位址,並支援代理環境變數。
安裝前請注意
這些工具操作的是會實際花錢的真實廣告帳戶:可恢復廣告活動、提高預算,並刪除廣告活動、廣告或關鍵字。新建廣告活動和廣告預設暫停,但恢復即開始花費。API 金鑰屬於機密;廣告帳戶的 OAuth 權杖由 Adrex 後端保管,請求會轉送到該託管服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Adrex AI,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Adrex AI

Open-source MCP server for Google Ads & Meta Ads

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

[npm version] [npm downloads] [MIT license]

Quick Start | 64 Tools | Platform | Discord


What is Adrex AI?

Adrex AI is an open-source 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, reporting, keywords, and targeting through natural language — from Claude, Cursor, Codex, or any MCP client.

Platforms: Google Ads and Meta Ads (Facebook & Instagram) today — TikTok and LinkedIn coming soon.

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. There are two ways to connect (see Quick Start): a remote server with browser sign-in — no API key, or this npx server with an 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

First, sign up at adrex.ai and connect your Google/Meta ad accounts in Settings. Then pick one of the two ways to connect.

Option A — Remote server (recommended, no API key)

Connect over HTTP and authorize in your browser — nothing to copy or paste. Your client stores its own secure token. In the Adrex dashboard, Settings → Connect to your AI (MCP) shows a one-command connect with your server URL. It looks like:

Claude Code:

bash
claude mcp add --transport http adrex-ai https://<your-adrex-server>/mcp

Claude Desktop / Cursor / VS Code / other clients (JSON) — or use the one-click Add to Cursor / Add to VS Code buttons in Settings:

json
{  "mcpServers": {    "adrex-ai": { "type": "http", "url": "https://<your-adrex-server>/mcp" }  }}

After adding, your client opens a browser tab — sign in and click Authorize. The consent screen shows which Adrex account you're authorizing as; if a different account is already signed in on that browser, use Not you? Switch before approving.

You can see and revoke every connected app in Settings → Connect to your AI → Connected AI apps.

Connected the wrong account? Every tool will report "Not connected" even though your ad accounts are linked. Revoke the app in Settings, then re-authorize. Note that re-running claude mcp add does nothing once the server is configured (already exists in local config) — instead run /mcp in Claude Code, pick adrex-ai, and clear authentication.

Option B — npx server with an API key

Prefer the classic stdio server? Generate an API key in Settings, then add it below. Adrex ships a standard stdio MCP server, so it works with any MCP client — every config points at npx -y adrex-ai with your ADREX_API_KEY.

Claude Code:

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

Gemini CLI:

bash
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:

json
{  "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:

toml
[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 (35 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
Analysis
ToolDescription
google_ads_keyword_performanceRank keywords by return — which keywords made the most money
google_ads_keyword_insightsFull keyword audit in one call: blocking negatives, wasted-spend themes, missing keywords, Quality Score premiums, budget vs Ad Rank caps, duplicates
google_ads_ad_performanceRank ads by return — which ad copy actually converts
google_ads_search_termsWhat people actually searched, what it cost, and which terms spent with nothing to show
google_ads_conversion_healthCheck conversion tracking is working before trusting any CPA or ROAS
google_ads_conversion_funnelWhich keywords or campaigns produce the event the business is actually paid on, not just form fills — essential when offline conversions are imported
google_ads_recent_changesWho changed what recently — most sudden shifts are something someone did

Meta Ads (26 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
meta_ads_creative_performanceRank ads by return — which creative made money, and which spent for nothing

Cross-Platform (3 tools)

ToolDescription
account_reviewOne call for "how are we doing". Leads with how much a month is at risk across Google and Meta, then splits it: money that bought nothing, spend well above the account's own CPA, and growth left on the table
campaign_diagnosisWhy performance moved: compares the window against the one before and attributes the change
list_connected_platformsWhich ad platforms are connected and ready to use

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

Links

License

MIT License — see LICENSE for details.


Built by the team behind Adrex AI

來源:README.md,提交 0e26f3b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.12最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分