Skip to content
Get MCP AdsGet MCP Ads, home

X Ads MCP API reference

Every X Ads tool the MCP server exposes, with its parameters. 26 tools, 0 metrics and 0 dimensions, on a dedicated endpoint.

30 rows

Campaigns, ad groups, promoted posts, targeting and native performance via X’s official MCP.

Connection

Platform id
x_ads
Tool prefix
x_ads_
Account parameter
account_id
Dedicated endpoint
https://mcp.getmcpads.com/x-ads/mcp
Access
Available for authorized, selected accounts.
Tools
26, 10 of which write
Metrics
0
Dimensions
0

Scope requestedLink to this section

ScopeGrantsAllows writes
ads.readRead authorized X Ads accounts, campaigns, creatives, targeting and performance.No
ads.writeCreate and manage X Ads campaigns, ad groups, targeting and promoted posts.Yes
offline.accessRenew the X authorization without another sign-in.No

CataloguesLink to this section

Write tools (10)Link to this section

Absent from the tool list on the Free plan. Each one previews by default and needs a second call with confirm: true.

ToolWhat it doesKindDiscovery
x_ads_activate_campaignActivate a campaign (set entity_status=ACTIVE).WriteOn demand
x_ads_activate_line_itemActivate a line item (set entity_status=ACTIVE).WriteOn demand
x_ads_add_targeting_criterionAdd one targeting criterion to a line item (call once per criterion).WriteOn demand
x_ads_create_ad_postCompose a promoted-only ("nullcasted") post to use as an ad creative.WriteOn demand
x_ads_create_campaignCreate a campaign in an ads account.WriteOn demand
x_ads_create_line_itemCreate a line item (ad group) under a campaign.WriteOn demand
x_ads_promote_postAttach post(s) to a line item as its ad creative(s).WriteOn demand
x_ads_remove_targetingRemove a targeting criterion from its line item (undo a targeting mistake).WriteOn demand
x_ads_update_campaignRename a campaign or pause it (entity_status=PAUSED).WriteOn demand
x_ads_update_line_itemUpdate a line item's bid, budget, name, schedule, placements, goal, pacing, audience expansion (set audience_expansion=EXPANDED to turn on Optimized Targeting) or entity_status.WriteOn demand

Read tools (16)Link to this section

Tools marked Announced appear in your client's tool list. The rest are reachable through search_tools and run_tool, which run the same checks.

ToolWhat it doesKindDiscovery
x_ads_get_account_statsGet synchronous analytics (impressions, engagements, spend) for an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_get_active_entitiesList which ads entities had metrics change in a time window (use before requesting account stats) Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_get_campaignGet a single campaign by ID Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_get_campaign_reachGet reach and average-frequency metrics for campaigns Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_get_line_itemGet a single line item by ID Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_list_account_postsList posts (tweets) usable for promotion by an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_list_ads_accountsList the ads accounts the authenticated user can access Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadAnnounced
x_ads_list_campaignsList campaigns for an account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_list_funding_instrumentsList funding instruments (payment sources) for an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_list_line_item_placementsList valid placement combinations per line item product type Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_list_line_itemsList line items (ad groups) for an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_list_promoted_postsList promoted posts (promoted tweets) for an ads account Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_list_targeting_criteriaList targeting criteria for an ads account's line items Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_list_web_event_tagsList the website conversion event tags (pixels) in an ads account; a tag's id is what a conversion line item takes as its primary_web_event_tag Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.ReadOn demand
x_ads_search_targeting_interestsSearch targetable interest categories by name.ReadOn demand
x_ads_search_targeting_locationsSearch targetable locations by name.ReadOn demand

MCP resourcesLink to this section

Read these with resources/read for machine readable metadata about the source.

NameURI
X Ads reporting and writesx-ads://guide
Esc

Type to search