
X Ads
com.getmcpads由 getmcpads.com 發布v1.1.2更新於 Nov 8, 2026
X Ads MCP server: 25 read tools, 21 opt-in preview-first writes.
概覽
本機 stdio MCP 伺服器,讓助理讀取 X 廣告帳戶、廣告活動、廣告群組、定向與成效資料,並可選擇啟用先預覽的寫入工具。
- 可以做什麼
- 列出並檢視廣告帳戶、廣告活動、廣告群組、付款工具、卡片、媒體庫物件、推廣貼文與網站轉換事件標籤
- 讀取定向條件與版位,並依名稱搜尋可定向的興趣與地區
- 取得帳戶分析資料、活躍實體與廣告活動觸及指標
- 啟用寫入後,可建立、重新命名、暫停或啟用廣告活動與廣告群組,掛上貼文,新增或移除定向,管理卡片、媒體與轉換標籤,以及上傳媒體
- 寫入預設只產生預覽,需再次呼叫並確認後才生效
- 適用情境
- 適合讓助理檢視 X 廣告成效、稽核廣告結構與定向設定,或為指定帳戶準備並確認廣告變更,而不必離開 MCP 用戶端。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行,需要 Node.js(22.23.4、24.22.1、26.12.1 或更新版本)與支援 stdio 的 MCP 用戶端。需要使用者 OAuth 2.0 存取權杖(X_ADS_ACCESS_TOKEN,僅應用程式層級的 bearer 權杖不足)、以逗號分隔的 X_ADS_ACCOUNT_IDS,可選 X_ADS_SCOPES 與 X_ADS_ENABLE_WRITES。此套件不執行 OAuth 流程,也不會更新權杖。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 X Ads,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
X Ads MCP server
Bring your X Ads accounts into your MCP client.
Read campaigns and performance, inspect targeting and prepare changes for explicitly selected accounts.
[Release] [CI] [Smithery] [License: Apache 2.0] [Node]
Watch the film · What's new · Install · Tool reference · Try hosted getmcpads
[Watch the getmcpads film: every ad account in one conversation with your AI assistant]
The film shows hosted getmcpads with sample data. Its MCP Apps, from creative galleries and alerts to Google Sheets exports and bulk launches, belong to the hosted product. This repository provides the standalone native API tools.
25 read tools · 21 write tools, disabled by default.
Run locally with your own platform credentials and a client that supports stdio MCP, such as Claude Desktop, Claude Code or Cursor. Your requests go directly to the platform. For managed connections, including supported ChatGPT setups, use the hosted option.
What's new
v1.1.1: Zod 4 security update · October 26, 2026
- Update
zodto 4.6.7. Every Zod release before 4.6.6 is covered by the high-severity advisory GHSA-mrhx-c7xc-m3w5: validating an oversized constrained collection can exhaust memory, and no Zod 3 release carries the fix.npm audit --omit=devreports no vulnerability again. - Keep the Zod 3 validation behaviour. A parameter default is still validated and completed before use, so an omitted object must still supply its required fields.
- Keep each parameter's own description when the parameter is optional or has a default. Zod 4 stores a description on the wrapped schema only, so the shared fallback description could otherwise replace it.
- Tool names, parameters and descriptions published over MCP are unchanged.
server-card.jsonis regenerated with Zod 4's JSON Schema output, which spells some constraints differently.
Earlier releases
Source synchronization: SOURCE_SYNC.md.
Upgrade notes
Requires Node.js 22.23.4, 24.22.1, 26.12.1 or a newer release. These carry the October 2026 security fixes, and the server prints a warning on stderr when it runs on an older one. CI covers Node 22, 24 and 26.
No breaking change. Configuration variables and accepted values are unchanged: X_ADS_ACCOUNT_IDS stays required and only true enables writes, as in 1.0. The rename tools are writes: they appear only with X_ADS_ENABLE_WRITES=true and need ads.write in X_ADS_SCOPES.
Read the current tool schemas before reusing saved arguments. Writes remain optional and require explicit confirmation. Hosted creative integrations and MCP Apps UI are outside this release.
Install this release
This is a GitHub source release. npm and MCP Registry versions are published separately. The commands below select this exact version.
Configure your MCP client to run node with the absolute path to dist/cli.js and the platform credentials documented below.
Prefer a managed connection? Use X Ads with hosted getmcpads. Connect your account, select the data your assistant may access and use the hosted MCP connection. See the site for current features and plans.
Configuration
Provide these environment variables through the client's secret configuration:
Obtain your token and Ads Project access using X's official setup guide.
Use ads.read for reporting, ads.write for campaign changes and media.write for uploads and media-library writes.
Setting X_ADS_SCOPES does not grant permissions. This package accepts a token; it does not run an OAuth browser flow or persist rotating refresh tokens. When the token expires, renew it securely and restart the server.
Safety and coverage
Writes preview by default. Review the exact account, target and parameters before repeating the call with confirm: true.
Campaigns and line items are created paused. Activation can spend advertising budget. Media uploads can consume X API credits and are limited to 4 MB.
Do not retry a write automatically when its result is uncertain. Read the account and reconcile it first.
Selected-account checks apply before dispatch and filter account discovery responses. Unknown arguments are rejected.
Native pagination, attribution and monetary _micro fields are preserved. A micro unit is one millionth of the account currency.
This server exposes a reviewed subset of the official API. It does not automatically expose new upstream tools.
Native media reads and writes are included. Hosted creative galleries, visual editors and MCP Apps UI are excluded.
Use tools/list or server-card.json for exact schemas and the official API reference for provider details.
Hosted option
getmcpads for X Ads manages the hosted connection and account selection. Hosted and source releases can differ. Contact: [email protected].
Development
All tests run offline with synthetic responses. No live account is changed.
Tools
Every tool is listed below. See server-card.json for complete parameter and output schemas.
25 read tools
21 write tools
Disabled by default. Calls preview unless explicitly confirmed. Check the configuration and exact schema before use.
1 resource
License
Apache License 2.0. See NOTICE.
More from getmcpads
Meta Ads · Google Ads · Google Analytics 4 · Google Search Console · TikTok Ads · Pinterest Ads
Maintained by Emmanuel at getmcpads. Questions: [email protected].
來源:README.md,提交 5790b87
工具
0版本歷史
3- v1.1.1Oct 26, 2026
- v1.1.0Oct 23, 2026
- v1.0.1Sep 23, 2026
評分
已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具必需15 分
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分