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.
Power your agent
The publisher's own command. Not a PlugMCP endpoint.
Host a copy with our keys and logs.
npx -y @getmcpads/[email protected]Claude Code has no install link for a local command. Copy the command below and run it in a terminal.
X_ADS_ACCESS_TOKEN=<secret> X_ADS_ACCOUNT_IDS=<value> X_ADS_SCOPES=<value> X_ADS_ENABLE_WRITES=<value> claude mcp add com.getmcpads-x-ads -- npx -y @getmcpads/x-ads-mcp-server@1.1.2Run in a terminal.
{ "mcpServers": { "com.getmcpads-x-ads": { "command": "npx", "args": [ "-y", "@getmcpads/[email protected]" ], "env": { "X_ADS_ACCESS_TOKEN": "<secret>", "X_ADS_ACCOUNT_IDS": "<value>", "X_ADS_SCOPES": "<value>", "X_ADS_ENABLE_WRITES": "<value>" } } }}claude_desktop_config.json
Remote URL or a command on your machine? How the two installs differ
Run on PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
LaunchThe 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 · 19 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.
v1.0.1: First standalone release · September 20, 2026
Requires Node.js 22.12 or newer. CI covers Node 22 and 24. 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.
This is a GitHub source release. npm and MCP Registry versions are published separately. The commands below select this exact version; unpinned npx examples later in this document select the version currently available on npm.
git clone --branch v1.0.1 --depth 1 https://github.com/get-mcp-ads/x-ads-mcp-server.git
cd x-ads-mcp-server
npm ci
npm run build
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.
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.
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.
getmcpads for X Ads manages the hosted connection and account selection. Hosted and source releases can differ. Contact: [email protected].
npm run typecheck
npm run lint
npm run build
npm test
npm run catalog
All tests run offline with synthetic responses. No live account is changed.
Every tool is listed below. See server-card.json for complete parameter and output schemas.
Disabled by default. Calls preview unless explicitly confirmed. Check the configuration and exact schema before use.
Apache License 2.0. See NOTICE.
Maintained by Emmanuel at getmcpads. Questions: [email protected].
© 2026 MCP Directory.
{ "mcpServers": { "com.getmcpads-x-ads": { "command": "npx", "args": [ "-y", "@getmcpads/[email protected]" ], "env": { "X_ADS_ACCESS_TOKEN": "<secret>", "X_ADS_ACCOUNT_IDS": "<value>", "X_ADS_SCOPES": "<value>", "X_ADS_ENABLE_WRITES": "<value>" } } }}Tools
No tool list yet. Remote servers get one after the first health check.
FAQ
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
The publisher lists these environment variables: X_ADS_ACCESS_TOKEN, X_ADS_ACCOUNT_IDS, X_ADS_SCOPES, X_ADS_ENABLE_WRITES.
X Ads runs locally over stdio.
Last checked 2026-11-14. X Ads MCP server: 25 read tools, 21 opt-in preview-first writes.