Back to blog
Article

How to Connect X Ads to Claude

Updated November 3, 2026
17 min read
By InsightfulPipe
On this page
How to Connect X Ads to Claude

InsightfulPipe publishes this guide, and the steps use its hosted X Ads connector. The last sections cover other ways to connect, including X's own Ads MCP server.

Last updated: 2026-09-30

To connect X Ads to Claude, connect X Ads in InsightfulPipe, add https://x-ads.insightfulmcp.com/ as a custom connector in Claude, and click Connect. You sign in with the X login you already use for ads, so you need no X developer app, OAuth client ID or server of your own. Plans start from $29.99 a month.

The quick version

Six steps connect X Ads to Claude, and the first five are clicks with no code.

  1. In InsightfulPipe, open Connected accounts, click Connect account and choose X Ads.
  2. Pick Read-only or Read & write, sign in with X and select your ads accounts.
  3. In Claude, open Customize > Connectors and add https://x-ads.insightfulmcp.com/ as a custom connector.
  4. Click Connect, sign in to InsightfulPipe if asked, and click Authorize access.
  5. In a new chat, click +, open Connectors and switch X Ads on.
  6. Run the read-only check in "Verify it worked" before Claude changes anything.

InsightfulPipe or X's own server, at a glance

InsightfulPipe's X Ads MCP server and X's own Ads MCP are both hosted, and both create new campaigns paused. They differ in setup, documented clients and what a new connection can do.

InsightfulPipe

X's own Ads MCP

What you set up

Sign in with X, paste one URL

An X developer app, a callback URL, an OAuth 2.0 client ID and Ads Project access

Clients documented

Claude, ChatGPT, Claude Code, Cursor, Gemini CLI, Codex

Grok, Grok Build, Claude Code, custom agents

X Ads coverage

80 actions: 52 read, 17 write, 11 destructive

74 tools

New campaigns and line items

Created paused, for you to set live

Created paused

A new Read & write connection can

Run every action but 11 destructive ones, which stay off until an admin switches them on

Run whatever its token's scopes allow: ads.read, ads.write

Other platforms

49 more platforms on the same plan

X Ads only

Price

From $29.99 a month

No price in X's documentation

Watch: connect X Ads to Claude with InsightfulPipe and audit the account from one prompt, 1 minute 17 seconds

The video may show older screens; the steps below follow the current flow.

What you are actually connecting

Claude connects to InsightfulPipe, and InsightfulPipe connects to X, so Claude never holds your X login. The path is Claude → InsightfulPipe's X Ads server → the X ads accounts you authorized.

The MCP Servers page inside InsightfulPipe: one server per platform, the X Ads card among them, plus one server that reaches every connected account.

Claude signs in to InsightfulPipe and gets an InsightfulPipe token, never your X password. InsightfulPipe runs each X Ads API call with the access you granted at sign-in.

Claude sees four tools. It reads through query_data, which the server marks read-only, and makes every change through execute_action. Your AI client can hold that one write tool for your approval.

Your workspace, each account's action list, your InsightfulPipe role and your X login's permission bound what Claude can do.

You need no X developer app, OAuth 2.0 client ID, callback URL, server to host or API version to track.

Before you start

You need X ads access, an InsightfulPipe workspace, the right role and an AI client that supports remote MCP servers.

  • X ads access. An X login that can open the ads account in X Ads Manager.
  • An InsightfulPipe workspace. Plans start from $29.99 a month, and each connected ads account counts as one connection.
  • The right role. Owners, Administrators and Operators can connect accounts. Members with the User role cannot.
  • A remote MCP client. Claude offers custom connectors on Free, Pro, Max, Team and Enterprise, and Free allows one, per Anthropic. ChatGPT, Claude Code, Cursor, Gemini CLI and Codex CLI work too.

X's own roles still apply. X's Ads API documentation lists five account-level permissions: Account administrator, Ad manager, Campaign analyst, Organic analyst and Creative manager. InsightfulPipe cannot expand the authority of the X login you connect. To see yours, ask Claude to run get_authenticated_user_access.

Step 1: Connect X Ads in InsightfulPipe

You choose the access level and the actions first, then sign in with X once.

  1. In InsightfulPipe, open Connected accounts and click Connect account.
  2. On Add an integration, find X Ads and click Connect.
  3. Under Access level, choose Read-only or Read & write.
  4. Check the MCP / CLI actions list. Its Destructive tab starts with all 11 destructive actions off.
  5. Click Continue with X Ads.
  6. Sign in with X and approve access on X's own page.
  7. Select the ads accounts to connect and confirm your choice.

Choose Read-only for any account where Claude should only report. It locks every write until an admin reconnects the account with Read & write. Each ads account becomes its own connection, with its own action list.

InsightfulPipe's access level step for X Ads, before any X sign-in: Read & write selected, 69 of 80 actions on, and the Destructive tab showing all 11 destructive actions off, cancel_async_job included.

Step 2: Connect X Ads to Claude with the server URL

Claude needs one URL and a few clicks, in the web app or in Claude Desktop.

  1. Copy the server URL: https://x-ads.insightfulmcp.com/
  2. In Claude, open Customize > Connectors.
  3. Click + Add, then Add custom connector.
  4. Name the connector X Ads and paste the URL.
  5. Click Continue twice, then Add.
  6. Click Connect on the new connector.
  7. Sign in to InsightfulPipe if asked, and click Authorize access. Claude then lists the connector as connected.
The setup section of InsightfulPipe's X Ads MCP server page: the server URL with a copy button, tabs from Claude to Codex CLI, and four Claude steps ending with Click Connect and sign in to InsightfulPipe if asked.

On Team and Enterprise plans, an Owner first adds the connector under Organization settings > Connectors, and each member then clicks Connect in Customize > Connectors.

Claude's Add custom connector dialog with the name X Ads and https://x-ads.insightfulmcp.com/ filled in, ready for Continue.

Step 3: Turn the connector on in a new chat

A connected server stays off until you switch it on in a chat.

  1. Start a new chat in Claude.
  2. Click + and open Connectors.
  3. Switch the X Ads connector on.
A new Claude chat with the + menu open on Connectors and the X Ads connector switched on.

Step 4 (optional): Connect X Ads to ChatGPT

Open the InsightfulPipe listing in ChatGPT Plugins and click Install plugin to connect the full server with every connected account. To add X Ads alone as a custom MCP server, open Plugins in ChatGPT on the web, click Add and choose Add custom MCP server. Name it, paste https://x-ads.insightfulmcp.com/ as the Server URL, keep Authentication on OAuth, tick I understand and want to continue and click Create as a plugin. OpenAI covers these steps in Add a custom MCP server to ChatGPT.

Install the plugin, sign in to InsightfulPipe if asked, and click Authorize access. In a chat, type @ and pick it. Under Settings > Plugin settings, Permission decides when ChatGPT asks before it uses a tool. Every X Ads change runs through execute_action, so with Allow read-only tools each one waits for your click.

Step 5 (optional): Claude Code, Gemini CLI, Codex and Cursor

Terminal clients add the server with one command, then finish with the same InsightfulPipe sign-in and Authorize access step.

claude mcp add --transport http x-ads-mcp https://x-ads.insightfulmcp.com/
gemini mcp add --transport http x-ads-mcp https://x-ads.insightfulmcp.com/
codex mcp add x-ads-mcp --url https://x-ads.insightfulmcp.com/
  • Claude Code: run /mcp, select x-ads-mcp and choose Authenticate. Add --scope user to use it in every project.
  • Gemini CLI: run /mcp auth x-ads-mcp.
  • Codex CLI: sign-in opens after the add command. If no browser opens, run codex mcp login x-ads-mcp.
  • Cursor: add the URL under x-ads-mcp in ~/.cursor/mcp.json. When it shows Needs authentication, click Connect, then Open.
Claude Code in a terminal: claude mcp add registers x-ads-mcp, and claude mcp list shows it waiting for the InsightfulPipe sign-in.

Step 6: Choose which actions Claude may run

Every one of the 80 actions is a switch on the ads account, and an owner, admin or operator can flip it at any time.

  1. In Connected accounts, find the X ads account.
  2. Click its 69/80 actions button, whose tooltip reads Configure actions for this account.
  3. Open the Destructive tab. The 11 destructive actions stay off until you switch them on.
  4. Open the Write tab and switch off anything Claude should not run.
  5. Click Save actions.

The server refuses any action that is off, in every client. On a Read-only connection the write rows stay locked, each with the hint Reconnect with Read & Write to enable.

Verify it worked

Three checks, shortest first, show whether the connection works and where a failure sits.

The connection is live. In Claude, + > Connectors lists X Ads with its switch on. In Claude Code, claude mcp list shows x-ads-mcp as ✔ Connected, or ! Needs authentication until you run /mcp. In InsightfulPipe, MCP Servers shows the X Ads card with your account count.

A prompt that cannot do harm. Paste this into a new chat. It reads account details and changes nothing.

List the X ads accounts available to this connection.
Return the account name, account ID, currency and status.
Do not run a report and do not change anything.

If Claude answers with your account names, the X sign-in and the workspace link both work. If not, see Troubleshooting.

A real read. Ask for last week's spend by campaign, then check one number against X Ads Manager. An empty result usually means the date range or a filter, not the sign-in.

Prompts to run first

Start with reads, then try one write that InsightfulPipe creates paused for your review.

Prompt

What Claude does

"How did my campaigns perform over the last 7 days on spend, engagements and link clicks?"

Pulls synchronous stats per campaign

"Break down last month's impressions by age and location"

Runs a segmented async analytics job

"Find interest and conversation targeting options related to running"

Searches X targeting criteria

"Create a paused Engagements campaign with one line item and a promoted-only post"

Builds the campaign paused for review

Two prompts to copy as they are:

Use X ads account [ACCOUNT_ID].
Compare the last 7 complete days with the 7 days before.
Break the report down by campaign.
Include spend, impressions, engagements, link clicks and cost per engagement.
Use X ads account [ACCOUNT_ID].
Create an async analytics job for the last 30 days, broken down by campaign.
Include impressions, engagements, link clicks and spend.
Read the results when the job is ready. Do not change anything.

The marketing prompt library and the Claude skills library are free to use. The social media ads skills include X.

What Claude may change, and what it cannot

InsightfulPipe's X Ads server has 80 actions: 52 read, 17 write and 11 destructive, and the destructive ones stay off until an admin switches them on. Every limit below is a switch, and the server enforces each one in every client.

  • Control over every single action. Each ads account has its own list with All, Read only, Write and Destructive tabs. An owner, admin or operator switches each action on or off, and the server refuses any action that is off.
  • New campaigns and line items start paused. Both create_campaign and create_line_item force PAUSED whatever the request says, for you to set live when ready.
  • Setting something live is a switch too. The update_campaign and update_line_item actions accept ACTIVE, the step that can start spend. Switch both off, and Claude builds but never launches.
  • New ads on a running line item go live with it. X's campaign management reference shows a new promoted post returned as ACTIVE. Switch off create_promoted_tweet where new ads should wait for you.
  • Ad posts stay promoted-only. The create_ad_tweet action forces a nullcast post that "will NOT appear on the organic timeline". Scheduled posts accept an organic setting, so switch off create_scheduled_tweet where Claude should not post to followers.
  • Destructive actions start off. All 11, from delete_campaign and delete_line_item to delete_tracking_tag and cancel_async_job, stay off until an owner, admin or operator switches one on.
  • Budgets go to X as you ask. The two update switches cover budget edits, and funding instruments stay read-only.
  • Roles hold. Members with the User role run only switched-on reads, on accounts an owner or admin grants them.

Your AI client can add its own check on top. In ChatGPT, Allow read-only tools under Settings > Plugin settings asks before every change, and in Claude you can set each tool to Always allow, Needs approval or Blocked under Customize > Connectors, per Anthropic's connector guide.

That is why InsightfulPipe is the safest way to let an AI agent change X Ads. Every default starts careful, and every one is a switch your admin controls.

Start a trial, connect X Ads and set these switches before Claude runs its first prompt.

Troubleshooting

Most failures are one of these eight, and six of them come with an exact message.

  • The connector is missing from the chat. Switch it on from + > Connectors in a new chat. In ChatGPT, type @ and pick the plugin. In Claude Code, run /mcp.
  • "No accessible accounts" on the Grant access page. Your workspace has no X ads account your login can use, so Authorize access stays greyed out. Connect one in Connected accounts, then click Connect again.
  • "This action is disabled for this connected account. An owner or admin must enable it for the account." Action control is working. An owner, admin or operator switches it on under Configure actions for this account.
  • "This account is connected read-only, so this action cannot be enabled for it. An owner or admin must reconnect it with Read & Write permissions." Reconnect the account with Read & write, or keep the work to reads.
  • "Your role does not have permission to execute write actions. Only operators, admins, and owners can execute write operations." Your workspace role is User. An owner or admin can change it.
  • "You do not have access to this account. Contact your workspace admin to grant access." An owner or admin grants the account under Manage Account Access.
  • "This action modifies data and cannot run through the read-only query_data tool. Send the same body through execute_action instead." Claude used the read tool for a write. Ask it to retry with execute_action.
  • The report is empty or stops short. Synchronous stats stop at 7 days and 20 entities per request, so ask for an async job of up to 90 days. An empty report is not always a sign-in problem.

The other routes, including X's own Ads MCP server

X runs its own server, and other hosted connectors cover X Ads too. We read every capability, default and price from each vendor's own documentation, pricing page or public repository, and ran InsightfulPipe on live accounts.

X's own server. X launched its Ads MCP at https://ads-api.x.com/mcp on 24 August 2026, with 23 tools that day per MediaPost. X's documentation lists 74 today. It creates campaigns and line items PAUSED, and its activate tools set them live.

What it asks of you. An app in the X Developer Console with Read and Write permissions, a registered callback, the app's OAuth 2.0 Client ID and Ads Project access. X keeps one live OAuth grant per app and user, so a second client's sign-in revokes the first.

Where it runs. X documents Grok, Grok Build, Claude Code and custom agents, not claude.ai or ChatGPT. An open report, claude-ai-mcp issue 996, says a claude.ai connector to X's server fails after the X sign-in.

Building your own takes a developer account, an app and approved Ads API access, per X's getting started guide, plus a server you host.

Other hosted connectors, from their own pages:

Connector

Changes X campaigns?

What its own pages say

AdKit

Yes, through drafts

X page: "Every change lands as a draft you approve before X sees it." Docs: new projects start on Draft + Publish, where "a misread request can go live".

Markifact

Yes

32 operations. Writes wait for approval, and campaign create lets you "choose its status".

NotFair

Yes, after approval

40 tools. Its page says "There is no official X Ads MCP."

Porter Metrics

Read-only by default

Its guide says X "doesn't ship an official MCP yet".

Supermetrics

Not for X

Its write list names Facebook, Google, Microsoft, TikTok and LinkedIn Ads, not X.

Adzviser

Reporting

Reads X Ads reporting data.

Two Minute Reports

Reporting

Its README lists no write tools.

CData

Not in its open-source server

Local and read-only, on Java with a licensed JDBC driver.

X's server asks for a developer app and documents Grok, Grok Build, Claude Code and custom agents. InsightfulPipe asks for an X sign-in, works in claude.ai and ChatGPT as well, makes every action a switch per ads account, and runs X beside 49 more platforms on one plan.

HAVE QUESTIONS?

Frequently asked questions

Yes. With InsightfulPipe, connect X Ads, add https://x-ads.insightfulmcp.com/ as a custom connector in Claude, click Connect, and switch the connector on in a new chat.

Sources (checked 2026-09-30)

Every outside claim above comes from the vendor's own page, documentation or repository, opened on 2026-09-30.

Related articles

MCP Server for SEO Reporting with Search Console and GA4
Blog

MCP Server for SEO Reporting with Search Console and GA4

InsightfulPipe's hosted MCP server puts Search Console and GA4 data in one Claude or ChatGPT chat for SEO reporting: connect both in InsightfulPipe, add one connector URL and click Authorize access.

Read article
Best Mailchimp MCP Server in 2026: Official and Community Options Compared
Blog

Best Mailchimp MCP Server in 2026: Official and Community Options Compared

The best Mailchimp MCP server in 2026 is InsightfulPipe, a hosted server that gives an AI agent 231 Mailchimp actions, each one switched on or off per account by your admin.

Read article
MCP Server to Analyze Meta Ads Creative Performance with AI
Blog

MCP Server to Analyze Meta Ads Creative Performance with AI

InsightfulPipe's Meta Ads MCP server and two Claude skills from its free skills library rank Meta ad creatives by cost per result and score creative fatigue on live data, from Claude or ChatGPT. Here is the six-step setup, the prompts to run and the Meta fields behind every number.

Read article
Best Google Sheets MCP Server in 2026: 11 Options Compared
Blog

Best Google Sheets MCP Server in 2026: 11 Options Compared

The best Google Sheets MCP server in 2026 is InsightfulPipe, because it reaches only the spreadsheets you pick and lets your admin switch each of its 26 actions on or off.

Read article
Official Google Analytics MCP vs Hosted GA4 MCP Servers
Blog

Official Google Analytics MCP vs Hosted GA4 MCP Servers

The best hosted GA4 MCP server in 2026 is InsightfulPipe, because it changes GA4 and puts a switch on every action.

Read article
Best Shopify MCP Server in 2026: 12 Options Compared
Blog

Best Shopify MCP Server in 2026: 12 Options Compared

The best Shopify MCP server in 2026 is InsightfulPipe, because it lets an AI agent run real store work within limits you set.

Read article

Ready to connect your data?

Join hundreds of agencies and brands using InsightfulPipe to connect marketing data to AI.

Start a trial today.