
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 分