+

Claude Code + X Ads

Connect Claude Code to X Ads

Run X Ads from Claude Code. Add AdAgnt to Claude Code, sign in once, and connect X Ads with X's own sign-in. Ask in plain English; every change waits for your approval.

  1. 1
    Add AdAgnt to Claude Code

    Run this in a terminal. Add --scope user to use it in every project.

    claude mcp add --transport http adagnt https://mcp.adagnt.com/mcp

    Claude Code MCP docs ↗

  2. 2
    Sign in to AdAgnt

    In Claude Code, type /mcp, choose adagnt and Authenticate. Your browser opens AdAgnt's sign-in.

    No AdAgnt account yet? This creates one on the Free plan. No card, no password.

  3. 3
    Connect X Ads

    Ask: Show my ad connections. It replies with a Connect link for each platform; open the one for X Ads.

    Sign in with X and authorize AdAgnt for your ads account. AdAgnt never sees your X Ads password.

    Then say “check my connections”, and X Ads shows Live. You can also connect it in the web app: app.adagnt.com → Accounts.

  4. 4
    Ask, then approve
    Which X campaigns had the lowest cost per click last week?

    Campaigns, line items, promoted posts and targeting: reads, and changes you approve.

    Answers come straight back. A change comes back as a proposal: nothing reaches X Ads until you approve it, and AdAgnt then reads X Ads back to confirm it landed. Approve it at app.adagnt.com → Approvals.

Click a screenshot to see it full size.

Questions about Claude Code and X Ads

Does AdAgnt work with Claude Code and X Ads today?

Yes. Connect your X Ads account with X's own sign-in, and Claude Code can read it and propose changes. Each change waits for your approval.

Can Claude Code change my X Ads campaigns without asking?

No. A change comes back as a proposal, and nothing reaches X Ads until you approve it at app.adagnt.com → Approvals. After it runs, AdAgnt reads X Ads back to confirm it landed.

Does AdAgnt see my X Ads password?

No. You sign in on X's own page. AdAgnt stores the access token encrypted (AES-256-GCM) on its server, never in Claude Code, and you can disconnect at any time.

What is AdAgnt?

A hosted MCP server that connects your AI assistant to your ad accounts, so you can ask about campaigns and propose changes in plain English. You add one URL to Claude Code and sign in; no platform API keys.

What does it cost?

AdAgnt's Free plan connects every ad account you run, with 20 reads and 10 changes a month (no cap during launch), no card. Paid plans start at $29 a month, plus applicable tax.

Claude Code with other ad platforms

X Ads from other AIs

Two minutes from here to your first answer.

Free plan: every ad account, 20 reads and 10 changes a month (no cap during launch).

Start freeAll 64 connections