X Ads
X Ads MCPAdvertising80 actions

X Ads MCP Server

Let your AI agents run X Ads for you, safely.

A hosted X Ads MCP server for Claude, ChatGPT, Cursor and CLI agents. Paste one server URL into your AI client to use its 80 actions. There is nothing to install.

  • Enable or disable every action, per account. Block your agent from doing dangerous actions.

  • Ask in plain English. Create campaigns, pull reports, find insights and take action in X Ads.

  • 80 read and write actions. Every X Ads task your agent needs, from reporting to campaign management.

  • Built for teams. Invite your team and share one connected account.

Works with
ChatGPTChatGPTClaudeClaudeClaude CodeClaude CodeCodexCodexGemini CLIGemini CLICursorCursorMistralMistralOpenClawOpenClawHermesHermesPerplexityGrokn8nWindsurfVS CodeZed
ChatGPT
X Ads
ChatGPT
connected to X Ads MCP
Online
ChatGPT
Actions

Available Actions

80 actions available to automate your X Ads workflows.

80 actions

X Ads
Read

Cancel Async Job

Cancel a PROCESSING async analytics job.

X Ads
Write

Create Ad Tweet

Create a promoted-only (nullcast) tweet for use in ad campaigns. This tweet will NOT appear on the organic timeline.

X Ads
Read

Create Async Job

Create an async analytics job. Max 90 days (non-segmented) or 45 days (segmented).

X Ads
Write

Create Campaign

Create a new campaign (created in PAUSED status for safety).

X Ads
Write

Create Card

Create a card (website, app, or carousel) for use in tweets.

X Ads
Write

Create Line Item

Create a new line item (ad group) under a campaign (created in PAUSED status for safety).

X Ads
Write

Create Media Creative

Create a media creative and associate it with a line item.

X Ads
Write

Create Media Library Item

Add a media asset to the account media library. Also creates an account_media entry.

X Ads
Write

Create Promoted Account

Associate a user account with a line item as a promoted account.

X Ads
Write

Create Promoted Tweet

Associate tweets with a line item as promoted tweets.

X Ads
Write

Create Scheduled Promoted Tweet

Associate a scheduled tweet with a line item as a scheduled promoted tweet.

X Ads
Write

Create Scheduled Tweet

Create a scheduled tweet for future publishing. Defaults to promoted-only (nullcast).

X Ads
Write

Create Targeting Criterion

Create a targeting criterion for a line item.

X Ads
Write

Create Tracking Tag

Create a tracking tag for a line item.

X Ads
Write

Delete Campaign

Delete a campaign.

X Ads
Write

Delete Card

Delete a card.

X Ads
Write

Delete Line Item

Delete a line item.

X Ads
Write

Delete Media Creative

Delete a media creative.

X Ads
Write

Delete Promoted Account

Remove a promoted account association.

X Ads
Write

Delete Promoted Tweet

Remove a promoted tweet association.

X Ads
Write

Delete Scheduled Promoted Tweet

Remove a scheduled promoted tweet association.

X Ads
Write

Delete Scheduled Tweet

Delete a scheduled tweet.

X Ads
Write

Delete Targeting Criterion

Delete a targeting criterion.

X Ads
Write

Delete Tracking Tag

Delete a tracking tag.

X Ads
Read

Get Account

Get details for a specific ad account.

X Ads
Read

Get Account History

Retrieve a summary of changes made to a specific entity on the account.

X Ads
Read

Get Account Media

List account media assets associated with the current account.

X Ads
Read

Get Account Media Item

Get details for a specific account media object.

X Ads
Read

Get Active Entities

Get active entities (campaigns, line items, etc.) that had activity in a time range.

X Ads
Read

Get Advertiser Business Categories

Retrieve valid advertiser business categories for line items.

X Ads
Read

Get Async Jobs

Retrieve details for async analytics jobs. Check job status before downloading results.

X Ads
Read

Get Authenticated User Access

Retrieve the permissions of the authenticated user for the current account.

X Ads
Read

Get Campaign

Get details for a specific campaign.

X Ads
Read

Get Campaigns

List all campaigns for an ad account.

X Ads
Read

Get Card

Get details for a specific card.

X Ads
Read

Get Cards

List cards associated with the current account.

X Ads
Read

Get Content Categories

Retrieve content categories for preroll video targeting.

X Ads
Read

Get Features

Retrieve features enabled for the current account.

X Ads
Read

Get Funding Instrument

Get details for a specific funding instrument.

X Ads
Read

Get Funding Instruments

List all funding instruments for an ad account.

X Ads
Read

Get Iab Categories

Retrieve IAB content categories.

X Ads
Read

Get Line Item

Get details for a specific line item.

X Ads
Read

Get Line Items

List all line items for an ad account.

X Ads
Read

Get Media Creative

Get details for a specific media creative.

X Ads
Read

Get Media Creatives

List all media creatives for an ad account.

X Ads
Read

Get Media Library

List media library objects associated with the current account.

X Ads
Read

Get Media Library Item

Get details for a specific media library object.

X Ads
Read

Get Promotable User

Get details for a specific promotable user.

X Ads
Read

Get Promotable Users

List promotable users associated with the current account.

X Ads
Read

Get Promoted Account

Get details for a specific promoted account.

X Ads
Read

Get Promoted Accounts

List promoted accounts associated with line items under the current account.

X Ads
Read

Get Promoted Tweet

Get details for a specific promoted tweet.

X Ads
Read

Get Promoted Tweets

List promoted tweets associated with line items under the current account.

X Ads
Read

Get Recommendations

Retrieve campaign optimization recommendations for the account.

X Ads
Read

Get Scheduled Promoted Tweet

Get details for a specific scheduled promoted tweet.

X Ads
Read

Get Scheduled Promoted Tweets

List scheduled promoted tweets associated with the current account.

X Ads
Read

Get Stats

Retrieve synchronous analytics for an ad account. Max 7 days time range.

X Ads
Read

Get Targeting App Store Categories

Discover available app store category-based targeting criteria.

X Ads
Read

Get Targeting Conversations

Discover available conversation-based targeting criteria.

X Ads
Read

Get Targeting Criteria

List targeting criteria associated with line items under the current account.

X Ads
Read

Get Targeting Criterion

Get details for a specific targeting criterion.

X Ads
Read

Get Targeting Devices

Discover available device-based targeting criteria.

X Ads
Read

Get Targeting Events

Discover available event-based targeting criteria.

X Ads
Read

Get Targeting Interests

Discover available interest-based targeting criteria.

X Ads
Read

Get Targeting Languages

Discover available language targeting criteria.

X Ads
Read

Get Targeting Locations

Discover available location-based targeting criteria (countries, regions, cities, postal codes, metros).

X Ads
Read

Get Targeting Network Operators

Discover available network operator (carrier) targeting criteria.

X Ads
Read

Get Targeting Platform Versions

Discover available mobile OS version-based targeting criteria.

X Ads
Read

Get Targeting Platforms

Discover available platform-based targeting criteria (iOS, Android, etc.).

X Ads
Read

Get Targeting Suggestions

Get keyword or user targeting suggestions to complement your targeting selection.

X Ads
Read

Get Targeting Tv Markets

Discover available TV markets where TV shows can be targeted.

X Ads
Read

Get Targeting Tv Shows

Discover available TV show-based targeting criteria.

X Ads
Read

Get Tax Settings

Retrieve tax setting details for the current account.

X Ads
Read

Get Tracking Tag

Get details for a specific tracking tag.

X Ads
Read

Get Tracking Tags

List tracking tags associated with the current account.

X Ads
Write

Update Campaign

Update an existing campaign.

X Ads
Write

Update Line Item

Update an existing line item.

X Ads
Write

Update Media Library Item

Update a media library object's metadata.

X Ads
Write

Update Tracking Tag

Update an existing tracking tag.

X Ads
Write

Upload Media

Upload an image for use in ads. Pass image_url (public HTTPS) or media_data (base64). Returns media_id to use with create_media_library_item.

Compare

X Ads MCP servers compared: hosted vs official

X offers its own hosted X Ads MCP server. It is a good fit if you already have an X developer app with Ads API access and want X's core ads tools. InsightfulPipe is a hosted alternative for teams that want quick setup, a wider X Ads action set and account-level controls.

HostingHosted by InsightfulPipe: paste one URLHosted by X at ads-api.x.com/mcp
SetupSign in with X and choose ads accountsX developer app with Ads API access and an OAuth 2.0 client ID; the agent uses your own OAuth 2.0 token
Tools80 actions: 53 read and 27 write, including cards, scheduled promoted posts, tracking tags and async analytics23 tools: 9 account and inventory reads, 2 analytics, 2 targeting lookups and 10 writes
Write safetyCampaigns and line items created paused, ad posts promoted-only, delete actions off by default, per-account action controlsCampaigns and line items are created paused
Documented clientsClaude, ChatGPT, Claude Code, Cursor, Gemini CLI and Codex, plus a CLIGrok, Claude Code and custom agents
Other platformsGoogle Ads, Meta Ads, GA4 and 40+ more MCP serversX Ads only
PriceIncluded in plans from $29.99/month, with a 7-day free trialNo price listed in X's documentation
Overview

What you can do with the X Ads MCP

The InsightfulPipe X Ads MCP server is a hosted Model Context Protocol server that connects your X ads accounts to AI assistants such as Claude, ChatGPT, Cursor, Claude Code, Gemini CLI and Codex. You sign in with X, choose the ads accounts to connect and paste one server URL into your AI client.

ClaudeX AdsAcme StoreRead-only
Ask about your X Ads account…
01Report on campaign performance

Report on campaign performance

Ask for impressions, engagements, clicks, spend and conversions by campaign or line item and get a plain-English summary.

See all X Ads actions
ClaudeX AdsAcme StoreRead-only
Ask about your X Ads account…
02Find your best promoted posts

Find your best promoted posts

Compare promoted posts by engagement rate, reposts, replies and link clicks to see which messages work.

See all X Ads actions
ClaudeX AdsAcme StoreRead-only
Ask about your X Ads account…
03Research targeting

Research targeting

Look up interests, conversation topics, events, locations and TV shows, and get keyword and handle suggestions for a line item.

See all X Ads actions
80
actions
one server URL
53
read actions
reports, audits, research
27
write actions
create, update, manage
Setup

How to connect the X Ads MCP server

Add the server URL to your AI client, then sign in with your InsightfulPipe account to authorize access. The server is hosted, so there is nothing to install.

MCP server URL

https://x-ads.insightfulmcp.com/

Connect X Ads to Claude

Fastest: add InsightfulPipe from the Claude Directory

One click connects the full InsightfulPipe MCP with all your connected accounts. To add a server scoped to X Ads only, follow the steps below.

Open Claude Directory

Or add the X Ads server manually:

  1. 01
    Copy the server URL:
    https://x-ads.insightfulmcp.com/
  2. 02
    Open Claude connector settings (Customize > Connectors), click + and then Add custom connector.
  3. 03
    Paste the URL and click Add.
  4. 04
    Click Connect, then click Authorize access in the browser.

Start a new chat, click +, open Connectors and turn the connector on to use it.

The Free plan can add one custom connector. On Team and Enterprise plans, an Owner first adds it under Organization settings > Connectors, then each member clicks Connect in Customize > Connectors.

Watch the setup tutorial

Playbook

Prompts and skills that run on the X Ads MCP

Copy a prompt into any connected client, or install a Claude skill that chains the actions for you.

Prompt

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

Uses synchronous stats for campaigns

Skill

Social Ads Budget Allocator

Claude skill that compares efficiency across Meta, TikTok, LinkedIn, Pinterest, X and Snapchat ads and recommends how to reallocate social budget.

Prompt

Which promoted posts got the most reposts and replies this week?

Compares promoted post engagement

Prompt

Break down last month's impressions by age and location

Runs a segmented async analytics job

Prompt

Find interest and conversation targeting options related to running

Searches X targeting criteria

Prompt

Which line items had website purchases from the X Pixel last week?

Reads web conversion metrics

Prompt

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

Builds the campaign paused for review

Prompt

Show the recent changes made to this ads account

Reads account history

HAVE QUESTIONS?

Frequently asked questions

An X Ads MCP server connects X Ads (formerly Twitter Ads) to AI assistants through the Model Context Protocol (MCP), an open standard for giving AI tools access to data and actions. Once connected, you can ask Claude, ChatGPT or Cursor about campaign performance and ask it to make changes, instead of working through X Ads Manager.

Ready to connect your data?

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

Start a free trial today.