How to connect X to Claude and ChatGPT using Datajar

Connect X (Twitter) to Datajar with an X sign-in, tick the ad accounts your AI may read, then add one URL to Claude or ChatGPT. Every click, with screenshots: one card for X Ads and your posts, a second X account, first questions and fixes.

How to connect X to Claude and ChatGPT using Datajar

To connect X (formerly Twitter) to Claude or ChatGPT, connect it in Datajar with an X sign-in, tick the X Ads accounts your AI may read, then add Datajar's URL, https://mcp.datajar.co/mcp, to your AI app. It takes about five minutes and needs no code. One X card covers your ad accounts and your own X account: your AI reads ad results, posts and mentions, and it can pause campaigns at once, or raise budgets and post for you after you OK a preview.

7-minute read. Every screenshot below is the real Datajar app with sample data.

Prefer a video? Watch Connect X to Datajar on YouTube.

What do you need before you start?

  • A Datajar account. Sign up at mcp.datajar.co. No card is needed to start.
  • The Pro plan or a plan above it. X is on Pro, Team, Commerce, Agency and Enterprise, and not on Free, Freelancer or E-commerce Brand. See the plans on mcp.datajar.co/pricing.
  • Your X login. For ad results, your X user also needs access to the X Ads account. Without an ad account, your AI still reads your posts, mentions and public X data.
  • An AI app. Claude on any plan, Free included, or ChatGPT on the web with a Business, Enterprise or Edu plan. ChatGPT Pro can add Datajar with read access only: your AI can read X there but cannot post or change ads.

How do you connect X to Datajar?

Step 1. Sign in at mcp.datajar.co and click Connections in the left menu.

Step 2. Scroll to Ads and click Connect on the X card.

The Datajar Connections page: Connections is selected in the left menu (1) and the Connect button on the X card under Ads is marked (2). The card reads "Ads spend and results, your posts, mentions and trends."

Step 3. A panel opens on the right. If your account has Teams, Datajar asks Who can use this connection? Pick Team to share it with your team and their AI, or Only me to keep it to yourself. Without Teams you skip this step.

Step 4. Click Connect X. X opens in a new tab.

The X panel in Datajar on the Sign in step, with a Pro label next to the X name: the Team and Only me choice under "Who can use this connection?" (3) and the Connect X button (4).

Step 5. On X's screen, sign in with the X account you want to connect. X asks which account to use every time, so you can pick a brand account even if you are signed in to X with another one. X then asks you to authorise Datajar: click Authorize app. X sends you back to Datajar.

Step 6. Back in Datajar, the X page lists Ad accounts on @yourhandle: every X Ads account your X user can access, each with its ID. Tick the ad accounts your AI may read. If your X user has one ad account, Datajar ticks it for you. If it has none, there is nothing to tick: your AI can still read and post on your X account.

Step 7. Click Save selection.

The ad accounts list for the sample X account @northwindgoods: Northwind Goods Ads and Northwind Goods Test are both ticked (6) and the Save selection button is marked (7). The footer reads 2 of 2 accounts selected.

The card now shows Connected. The Accounts table lists your X account with its AI can use switch, and the Try asking box further down gives you a first question to copy into your AI. You can come back to this page at any time to tick more ad accounts or untick one.

The X page in Datajar after connecting: a green Connected label next to the X title, the Accounts table with @northwindgoods connected, shared with the Team and AI can use set to On, and the Add X account button at the top right marked (8).

How do you connect a second X account?

Agencies with several clients, and brands with a second account (an outlet, a country account), can put every X account on the same card.

Step 8. On the X page, click Add X account. Without Teams, X opens straight away: sign in with the other X account and skip step 9.

Step 9. With Teams, Datajar first scrolls to the X connection box. Pick Team or Only me, click Connect another account, and sign in with the other X account on X's screen. Its ad accounts appear on the X page, ready to tick.

With Teams: the X connection box on the X page: the Team and Only me choice and the Connect another account button (9).

Step 10. In the Accounts table, the AI can use switch turns each X account on or off for your AI. An account turned off stays connected, but it is never read or posted from.

Step 11. Pick the Default. Your AI uses the Default when you don't name an account, so name the other one in your question, for example "on @northwindoutlet".

The Accounts table with two sample X accounts, @northwindoutlet and @northwindgoods, both connected and shared with the Team. The AI can use switch of @northwindoutlet (10) and its Default choice (11) are marked; @northwindgoods is the Default today. The note reads: Your AI uses the Default when you don't name an account. Accounts turned off are never read or posted from.

How do you add Datajar to Claude?

The fastest way: open Get started in Datajar and click Add to Claude. It opens claude.ai with Datajar's name and URL filled in. Confirm, then sign in to Datajar.

The Connect your AI step on Datajar's Get started page, with the Add to Claude button and the Your Datajar link box (https://mcp.datajar.co/mcp) marked.

To add it by hand in claude.ai or Claude Desktop, follow these steps. The menu names come from Claude's help page on custom connectors (read on 5 December 2026).

Six steps to add Datajar to Claude: 1 open Customize, then Connectors; 2 click Add, then Add custom connector; 3 paste https://mcp.datajar.co/mcp and click Continue; 4 check the name is Datajar, keep OAuth and click Add; 5 sign in to Datajar; 6 in a chat, open +, then Connectors, and turn Datajar on. On Team and Enterprise an Owner adds it once in Organization settings, Connectors, and members click Connect.
  1. Open Customize, then Connectors.
  2. Click Add, then Add custom connector.
  3. Paste https://mcp.datajar.co/mcp and click Continue.
  4. Check that the name is Datajar, keep OAuth as the sign-in method, and click Add.
  5. Sign in to Datajar with the same account that holds your X connection.
  6. In a chat, open the + menu, choose Connectors and turn Datajar on.

On the Free plan Claude allows one custom connector. On Team and Enterprise plans, an Owner adds Datajar once in Organization settings, Connectors, and each member then clicks Connect.

How do you add Datajar to ChatGPT?

In Datajar's Get started page, click Connect to ChatGPT. It copies your Datajar link and opens ChatGPT's Plugins page.

The Connect your AI step on Datajar's Get started page, with the Connect to ChatGPT button and the Your Datajar link box marked. The card lists the next ChatGPT steps and says it works on ChatGPT on the web with a Business, Enterprise or Edu plan.

Then follow these steps from OpenAI's help page on MCP apps in ChatGPT (read on 5 December 2026):

Seven steps to add Datajar to ChatGPT on the web: 1 open Plugins; 2 click the plus button, then Add custom MCP server; 3 name it Datajar and paste https://mcp.datajar.co/mcp as the connection; 4 choose OAuth; 5 tick "I understand and want to continue", then Create as a plugin; 6 sign in to Datajar; 7 in a chat, type @ and pick Datajar.
  1. Open Plugins in ChatGPT on the web.
  2. Click the plus button, then Add custom MCP server.
  3. Name it Datajar and paste https://mcp.datajar.co/mcp as the connection.
  4. Choose OAuth as the sign-in method.
  5. Read the risk warning, tick I understand and want to continue, then click Create as a plugin.
  6. Sign in to Datajar.
  7. In a new chat, type @ and pick Datajar.

On ChatGPT Business, only an admin or owner can create the plugin for the company account. Custom MCP servers work on ChatGPT on the web, not in the mobile app. On ChatGPT Pro, Datajar can read your X data but cannot post or change your ads.

What can you ask about your X data?

Your AI reads X Ads results for up to 84 days per question (spend, impressions, clicks, link clicks, CPC, conversions, ROAS, video views and more, by campaign, line item or promoted post), your own posts with their results, your mentions, and public X data. Try these:

Show my X Ads spend, impressions, link clicks and CPC by campaign for the last 30 days.
Which X campaigns brought website purchases last month? Show sales, ROAS and cost per purchase.
Split my X Ads spend and clicks by age and gender for the last 14 days.
Which of my X posts from the last 30 days had the best engagement rate, and which posting hours work best?
Who mentioned @northwindgoods this week, and what were they saying?
What is trending on X in the UK right now, and how many posts did the top trend get each day this week?

To make a change, ask in plain words. Your AI shows you what it will do before anything reaches X:

Pause the X campaign "Winter Sale UK".
Raise the daily budget of "Winter Sale UK" to £80.
Draft an X post on @northwindgoods announcing free UK delivery this weekend. Show me the text first.

Pausing happens at once. A higher budget, enabling a campaign, new campaigns, line items and ads (always created paused) and every post or reply come back as a preview, and your AI sends them only after you say yes. Datajar never deletes an ad, campaign or line item. Reading X posts (yours, mentions or public ones) uses research records from your plan, 5 per post. The Usage page shows how many you have left.

What if something goes wrong?

  • "X is not on your Freelancer plan. It starts on the Pro plan." X needs Pro or a plan above it. Pick one in Plans & billing, then connect again.
  • "Connection cancelled". The X screen was closed or access was not authorised. Click Connect again and click Authorize app on X's screen. Nothing was saved, so you can retry at once.
  • No ad accounts to tick. The X user you signed in with cannot access any X Ads account. Ask the ad account's administrator to give your X user access in X Ads Manager, then reconnect. Your posts, mentions and public X data work without an ad account.
  • "Reconnect X to let your AI make changes. This connection can only read." Your X connection was made before Datajar could make changes. Reconnect X from its page in Connections to let your AI pause, change budgets and post.
  • "Every connected X account is turned off in Datajar." Turn the AI can use switch back on for at least one account on the X page in Connections.
  • "You have several X Ads accounts connected. Say which one to use." The message lists your ticked ad accounts. Name one in your question, for example "on Northwind Goods Ads".

Connect X today

Your X ads and posts are a sign-in away from your AI chat. Start free on Datajar, move to Pro when you connect X, and ask your first question in five minutes.

More guides:

More connection guides

Ads

Social and messaging

Stores and payments

Analytics, search and sheets

Business tools

Frequently asked questions

Can Datajar post on X or change my X ads?
Yes, when you ask your AI to. Pausing a campaign, line item or ad happens at once. Enabling, raising a daily budget, new campaigns, line items and ads (created paused), and every post, reply or post delete first show a preview, and nothing is sent to X until you say yes. Datajar never deletes an ad, campaign or line item.
Which Datajar plan includes X?
X is on the Pro plan and every plan above it (Team, Commerce, Agency and Enterprise). It is not on Free, Freelancer or E-commerce Brand. The plans are listed at mcp.datajar.co/pricing.
Do I need an X Ads account to connect X?
No. With only your X login, your AI can read your profile, your posts and their results, your mentions, any public account's posts, search and trends, and it can post for you with your OK. Ad spend and results need an X Ads account that your X user can access.
Can I connect more than one X account?
Yes. Click Add X account on the X page in Connections and sign in with the other X account. Each X account has its own AI can use switch, and one is the Default: your AI uses it when you don't name an account. An agency can connect each client's X account this way.
Does it work with ChatGPT Plus or the free ChatGPT plan?
OpenAI lets you add a custom MCP server on ChatGPT Business, Enterprise and Edu. ChatGPT Pro gets read and fetch access only, so your AI can read your X data there but cannot post or change your ads. Plus and Free are not covered on OpenAI's help page (5 December 2026). Claude works on every plan, Free included.

See it on your own numbers.

Connect your store and ask Datajar the questions this post raises, or book a demo and we set it up with you.

Book a demo