Understand campaign traffic
Report on spend, impressions, link clicks, CTR, CPC, and CPM. X engagement clicks are not treated as website link clicks, and unsupported conversion metrics remain absent.
X Ads MCP server
Use your agent with X advertising accounts, also known as Twitter Ads. Inspect campaigns, line items, and funding instruments, then review spend and traffic with the right metric definitions.
Prefer to run it on your machine? Local setup for X Ads
Report on spend, impressions, link clicks, CTR, CPC, and CPM. X engagement clicks are not treated as website link clicks, and unsupported conversion metrics remain absent.
List campaign line items and existing funding instruments. This reads the billing context needed for campaign planning without creating or changing payment instruments.
Short ranges use synchronous analytics; longer periods use asynchronous jobs in bounded chunks. Date handling follows account timezones and rejects unsupported boundaries.
The npm CLI and MCP server run on your machine. You need Node.js 22.13 or newer, your own provider credentials, and permission to access the ad account.
npm install -g adportadport connect xadport doctor
adport accounts --provider xclaude mcp add --transport stdio adport -- adport mcp{"mcpServers":{"adport":{"command":"adport","args":["mcp"]}}} into your MCP configuration. ChatGPT uses the HTTP endpoint above instead of launching a local process.Adport Cloud is in public early access. Create a free account to connect your ad accounts.
Connect your ad accounts in Adport, then choose your AI assistant below.
Sign in to Adport and choose the project to connect. Select Adport in your conversation.
Open Plugins, choose +, then Add custom MCP server. Name it Adport, paste this server URL, and choose OAuth.
https://app.adport.dev/mcpCreate the plugin, sign in to Adport, and install it. In a new chat, type @ and select Adport before asking your first question.
Your ChatGPT workspace must allow custom MCP plugins. ChatGPT custom MCP documentation ↗
Run this command in your terminal. It adds Adport to the MCP configuration shared by your local Codex clients.
codex mcp add adport --url https://app.adport.dev/mcpComplete the browser sign-in when prompted. If sign-in has not started, run the command below.
codex mcp login adportOpen Customize → Connectors, choose + Add, then Add custom connector. Name it Adport and paste this server URL.
https://app.adport.dev/mcpKeep sign-in enabled and finish connecting to Adport. In your conversation, open + → Connectors and enable Adport.
Run this command in your terminal. User scope makes Adport available across your local Claude Code projects.
claude mcp add --transport http --scope user adport https://app.adport.dev/mcpOpen Claude Code and run /mcp. Select Adport and follow the browser sign-in.
Open the install link and confirm Add in Cursor. Adport uses browser sign-in, so no API key is needed.
Add this configuration to ~/.cursor/mcp.json for manual setup.
{
"mcpServers": {
"adport": {
"url": "https://app.adport.dev/mcp"
}
}
}Complete the sign-in from Cursor’s MCP settings, then start a conversation with Agent.
Add a remote MCP server in your assistant. Name it Adport, paste this URL, and choose Streamable HTTP with OAuth.
https://app.adport.dev/mcpFollow your assistant’s sign-in prompt. If it does not support OAuth, an admin can create an API key under Advanced on the AI assistants page.
Use the MCP URL from AI assistants if you run your own Adport deployment. Client settings, workspace permissions, and advertising-platform approvals still apply.
The first mutation call returns a preview and a short-lived pending-operation token. Applying requires that token and the same arguments. Budget caps and protected accounts are checked by the policy engine; new campaigns are paused by policy.
Local operations are recorded in an append-only audit log. An approved preview is not a guarantee of provider acceptance, and a connected agent does not grant additional account permissions.
No. They refer to the same advertising provider here. Use adport connect x with an Ads API-approved app and OAuth 1.0a user credentials, not general-purpose X bearer-token authentication.
Yes. Install Adport from npm, connect your own X Ads credentials, and register the local MCP server with a stdio-compatible agent such as Claude Code or Cursor. Your provider may have its own approval, access, or billing requirements.
Account discovery, reporting, and mutations can require different permissions. Check the requested account, provider app scopes, advertiser eligibility, and environment. Start with adport doctor and the connection guide above. Do not bypass a denied operation by sharing secrets with the agent.
Adport Cloud early access
Run reports from your AI assistant with the free plan. No credit card required.