Social media manager connecting X to Claude, with an AI chat and chart on the laptop

How to connect X (Twitter) to Claude and ChatGPT in 2026

How to connect X to Claude comes down to one connector, an MCP server that sends you to X to authorize an app for whichever account you’re signed in to.

X (formerly Twitter) runs its own MCP server, but it needs your developer app and pay-per-use API credits. I tested a directory connector in Claude and ChatGPT so you can see the actual X authorization screen, check which numbers you get for a competitor and follow the same comparison I ran on Nike, Pepsi and Taco Bell.

TL;DR: 3 facts before you connect X

X sets the terms for what a connector can retrieve.

Can Claude connect to X?

Yes, and if you’re looking to connect Twitter to Claude, you have 3 routes.

  1. Add a directory connector such as Sociality MCP. It handles the connection and sends you to X to authorize your account.
  2. Add X’s own server or another X MCP server by URL, using your developer credentials.
  3. Export an X analytics CSV and upload the file to a chat.

Pick the directory route for recurring reports, the developer route to work directly with the API, or a CSV for a question about a fixed period. The same directory setup works for Facebook Pages and Instagram.

Is there an official X MCP server?

Yes. X’s hosted API MCP fetches posts, searches the full archive, looks up users and reads timelines and mentions. The similarly named docs server searches developer documentation, so giving Claude that URL won’t get you a brand’s posts.

OptionWhat it doesWhat you needCost
Hosted API at https://api.x.com/mcpCalls X’s API from a compatible clientYour developer app and OAuth 2.0 PKCE, or an app-only bearer token for eligible readsPrepaid X credits per resource returned
Docs MCPSearches X’s developer docsA compatible client and the docs URLNo post or user reads
Open-source xmcpTurns X API operations into tools you run yourselfYour developer credentials and somewhere to run itX API usage charges

If you already maintain an X app, the hosted server gives you control over authentication and API spend. A user read costs $0.010, and eligible owned reads cost $0.001 when the signed-in user owns the developer app. For a client report, a directory connector saves you that setup. Our guide to MCP for marketing explains how assistants call these tools.

What you need before you connect

For the Sociality MCP route, you need the right logins and workspace access, with no X developer account or API keys.

  • X login. Sign in to X as the account you want to connect. The browser session decides which account gets the authorization request.
  • Workspace role. Only a Sociality.io workspace owner or admin can connect an account.
  • Account slot. A new account uses your plan’s page allowance. Reconnecting an existing account refreshes its token.
  • Claude access. Free, Pro, Max and Ultra have Plugins in the sidebar. Team gets it from 30 November 2026 and Enterprise in the following weeks. Until then, look under Customize. An organization owner enables connectors on Team and Enterprise. Free users can add 1 custom connector.
  • ChatGPT access. Look for Plugins on web, desktop or mobile. On Free, Go, Plus and Pro, check your training preference before bringing client data into a chat. Business, Enterprise and Edu have a different default, covered below.

How to connect X to Claude

Start in Claude’s directory and keep the chat open while you authorize the account on X.

Step 1: add Sociality.io from the directory

Open Plugins or Customize, find the Sociality.io listing, select Connect and sign in. In the chat, switch Sociality.io on under + > Connectors. Claude may ask you to allow a tool once or always.

Sociality.io listing in Claude's connector directory with the Connected button and connector URL
Sociality.io in Claude’s connector directory, checked on 23 November 2026

Give Claude this instruction in the chat where you enabled the connector.

Connect my X account to Sociality.io

Claude replies with a “Connect X to Sociality.io” link. It works once and expires in 10 minutes.

Claude replying with a one-time link to connect an X account to Sociality.io
Claude returns a one-time X link, 27 November 2026

Step 3: authorize the app on X

Open the link and check the account on “Authorize Sociality.io App to access your account?” Under “Sensitive permissions requested,” tick “I trust this app” to enable the grayed-out Authorize app button, then select it. The screen lists every permission the app asks for, and the safety section below explains what they cover.

X's Authorize Sociality.io App screen with the I trust this app checkbox and permission list
X’s authorization screen for Sociality.io, 27 November 2026 (account blurred)

Step 4: return to the conversation

X redirects you to Sociality.io’s “Accounts connected” page. It says, “You can close this page and go back to your conversation. Tell the assistant you are done.”

Step 5: confirm the handle

Say “Done” and Claude names the X account connected to your workspace. My browser was signed in to my personal X account, so that’s the one Claude confirmed. Check the handle before you close the tab.

Claude confirming the X account is now connected to the Sociality.io workspace
Claude confirms which X account was connected, 27 November 2026 (name blurred)

How to connect X to ChatGPT

To connect X to ChatGPT, open Plugins, select “Sociality.io for social media,” choose Install plugin if shown and sign in when prompted. Type @ in a chat, select Sociality.io and ask it to connect your X account.

ChatGPT composer with the @ menu showing the Sociality.io for social media plugin
Type @ in ChatGPT and pick Sociality.io for social media, checked on 23 November 2026

ChatGPT shows a “Connect X account” card marked “Awaiting authorization.” Its one-time link expires in 10 minutes. Follow it through the same X screens, return to the card and select “I’ve completed authorization.”

ChatGPT showing a Connect X account card from Sociality.io, awaiting authorization
ChatGPT shows a connect card with a one-time link, 27 November 2026

To disconnect the plugin account, open Settings > Plugins > Sociality.io > Connected accounts (or Connection) > ••• > Disconnect.

Your X account vs a competitor’s: what Claude and ChatGPT can see

Both assistants can compare public post performance through Sociality MCP, but account history and private clicks have different limits.

MetricYour account (you connected it)A competitor (public data)Only in X’s own analytics
FollowersCurrent count and historyCurrent count and history from tracking
Following and listed countsCounts over timeNo series
Posts and post typesPosts, post count over time, text, photo and videoTracked posts and their types
Likes, replies, reposts, quotes and bookmarksPer postPer accessible post
ViewsPer postPer accessible post
Engagement and engagement rateLikes + reposts, rate per 1,000 followersSame calculation
Link clicks and profile clicksNot in Sociality MCP’s X dataPrivateOwner only. API access covers posts created in the last 30 days
Organic vs paid splitCombined viewsCombined viewsOwner only, with the same API window

The gap is narrower than on Facebook because views are public for every accessible X post. Clicks and profile visits stay private. For those numbers, use your own X analytics, which requires X Premium.

I asked Claude about Nike, Pepsi and Taco Bell on X

Nike led on typical views and engagements, but Pepsi led relative to its audience. I tested both assistants on 27 November 2026 using public accounts we track. Sociality.io had 336 X followers on 1 November, too small an account for a fair benchmark, so I gave the job to the brands.

Prompt 1: 3 brands, 25 days of posts

I asked for medians so Nike’s biggest video wouldn’t stand in for its typical post.

Using Sociality.io, compare the X posts that Nike, Pepsi and Taco Bell published from 1 to 25 November 2026. For each brand, give the number of posts, the mix of post types, median views per post, median engagements per post, median engagement rate and its top post. Show one table, then a 3-line verdict on which brand got the most out of each post.

Claude table comparing Nike, Pepsi and Taco Bell X posts, median views and top posts
Claude’s answer from Sociality MCP data, 27 November 2026

On 1 November, Nike had about 9.5M followers, Pepsi 2.5M and Taco Bell 1.8M. That changes how you read the results.

  • Nike published 11 posts (5 photos, 4 text, 2 videos), all after 14 November. Its median post earned 126,808 views and 975 engagements, or 0.10 engagements per 1,000 followers at the median. The “2027. Formula 1 x Nike.” video on 19 November reached 916,690 views and 24,005 engagements.
  • Pepsi published 26 text posts. Its medians were 43,121 views, 545 engagements and 0.22 engagements per 1,000 followers, the highest rate. “Pepsi 4ever <3” on 12 November led with 76,728 views and 2,061 engagements.
  • Taco Bell’s 7 text posts had medians of 50,933 views, 353 engagements and 0.20 engagements per 1,000 followers. Its product announcement, “quesarito is back today,” earned 203,930 views and 1,943 engagements on 20 November.
Nike led median views and engagements on X while Pepsi posted most, Sociality.io data
Pepsi posted the most, Nike led on views and engagements per post, 1 to 25 November 2026

ChatGPT took 9 seconds and reported Pepsi’s unrounded median of 544.5 engagements. It highlighted Taco Bell beating Pepsi on median views with 73% fewer posts. Both assistants added a stray percent sign to the rate.

ChatGPT table comparing Nike, Pepsi and Taco Bell X posts by type, views and engagements
ChatGPT’s answer to the same prompt, 27 November 2026

Prompt 2: which posts start conversations

To find conversation starters, I asked for replies separately because Sociality.io leaves them out of engagements.

Now find the posts that got the most replies compared with their likes. What did they have in common?

Claude ranking Nike, Pepsi and Taco Bell X posts by replies per 100 likes
Claude ranks the posts that started conversations, 27 November 2026

Claude ranked all 44 posts, and Pepsi’s convenience-store question on 2 November came out on top with 506 replies on 894 likes, or 57 replies per 100 likes. Its “can, bottle, or fountain?” question followed with 43.

Taco Bell’s fire sauce confession scored 38 and its Cinnabon Delights post 30, while Pepsi’s post about the soda vs pop argument scored 22.

All 5 were text posts without a link, image or offer. Readers could answer from personal experience. Nike’s athlete photos drew 1 to 3 replies per 100 likes, and Pepsi’s Josh Allen congratulations drew 1.5.

Prompt 3: the question the data can’t answer

I asked a traffic question to see where Claude would draw the line.

Which of these brands drove the most website clicks from X?

Claude explaining it can't rank competitors' website clicks from X public data
Claude explains why it can’t rank website clicks, 27 November 2026

Claude couldn’t rank the brands. Only Nike included links, in 3 text posts on 16 November. Those posts got 17,000 to 20,000 views each and 37 to 56 engagements. Claude said that “suggests the clicks were modest,” but neither number tells you how many people followed a link.

Early-November posts had longer to accumulate views. Engagement leaves replies out, the rate is per 1,000 followers, clicks and profile visits stay private, and competitor history begins when tracking starts. Carry those limits into your next competitive analysis with AI.

What to ask Claude or ChatGPT about X

Ask for the account, period and metric you’d put in the client report.

Your own account

For a content review, start with the question that would change next week’s calendar.

Which of our text, photo and video posts had the highest median views last month? Show the post count for each format.

Add these follow-ups to make the answer more useful in a meeting.

  • Which of our posts got people replying even when likes were low?
  • How did our follower count change over the same period?

Competitors

For competitors, stick to public posts and the numbers under them.

  • Which tracked brand earned the most reposts on a typical post?
  • Which competitor questions got people talking about their own preferences?
  • Does the ranking change if you compare engagements per 1,000 followers?

Other ways to get X data into Claude or ChatGPT

Choose the tool by what you need to report or publish.

ToolWhat X dataAssistantsSetupFree option or price
X’s own MCPPosts, search, users, timelinesCompatible MCP clientsDeveloper app and credentialsPay per resource
Windsor.aiOwned organic posts and profile counts, including impressions and clicksClaude, ChatGPTOwn X developer credentialsFree for 1 source and 30 days. Paid from $19/month billed annually, plus X usage
Minter.ioOwned analytics from Minter reportsChatGPTConnect reports without an API key14-day trial
SupermetricsOrganic reporting, with quote-post gaps and possible null link clicksClaude, ChatGPTSupermetrics MCP14-day trial
MetricoolX analytics and competitorsClaude, ChatGPTMetricool connector and X add-on$10 per connected X account/month as an add-on
ComposioPost analytics, posting and recent searchClaude, ChatGPTManaged X toolkitFree entry plan. X charges may apply
Porter Metrics / Coupler.ioX Ads campaign reports onlyClaude, ChatGPTConnect X Ads via MCPCheck provider pricing
PostelDrafting, scheduling and publishingClaudeConnect X through Postel$1 for 7 days, then from $29/month
X analytics CSVSnapshot of up to 30 days and 3,000 postsClaude, ChatGPTExport and uploadFree export where your X account offers it

Older tutorials lead to dead ends because Zapier retired its native Twitter integration and Make retired its native X app. For tools covering other networks too, see social media MCP servers compared.

Connected but something’s off?

Match what you’re seeing to the fix.

  • Wrong X account? Switch accounts on x.com and ask for a new link. Authorization follows the browser login.
  • Link expired or already used? It works once, for 10 minutes. When I opened an incomplete link, X said “This link is no longer valid,” and asking Claude for a new one fixed it.
  • Authorize app grayed out? Tick “I trust this app” on X’s screen.
  • Percent sign next to engagement rate? Label it “engagements per 1,000 followers.”
  • Engagement differs from X analytics? Sociality.io counts likes plus reposts. X counts every interaction, including clicks.
  • Competitor history looks short? Check when you started tracking the account. The latest 1 to 3 days may also be unavailable.

Is it safe to connect X to Claude or ChatGPT?

Review X’s permission list before you authorize, particularly for a client account. X identifies the app as “Sociality.io App, By Sociality.io Limited” and flags sensitive permissions. For agency work, use the client’s own X login and a workspace the client approves.

X says the app’s access could allow it to see protected timeline posts, lists, collections, profile settings and accounts you follow, mute or block. The list also covers following and unfollowing, editing settings, creating or deleting posts and lists, engaging with posts, muting, blocking or reporting accounts, and sending, reading, managing or deleting DMs.

Sociality MCP’s tools read published data, connect an account and add a competitor. They don’t publish, schedule, reply, follow, delete or read DMs. You can disconnect in Sociality.io, remove the plugin connection in ChatGPT Settings > Plugins, or revoke the app in X by opening Apps and sessions in your X settings, selecting Sociality.io App and choosing Revoke access.

On Claude consumer plans, chats used to improve models exclude raw connector content. Claude commercial plans exclude training by default. ChatGPT doesn’t train on app information by default on Business, Enterprise or Edu. On Free, Go, Plus and Pro, it may if “Improve the model for everyone” is on.

Sociality.io holds its own platform to enterprise-grade security standards, with a firewall, intrusion detection and DDoS protection around its cloud network, TLS in transit and encryption at rest, two-factor authentication, single sign-on for enterprise customers, role-based access and yearly third-party penetration tests. Our security page has the full list.

Wrapping up đź‘‹

I’d add Sociality MCP first for a report that puts your own posts beside the competitors you track. Check the handle, pick a period everyone shares and ask for a median with the posts behind it.

Which brand won depends on the job you gave the posts. Nike led on typical views, Pepsi led on engagements relative to its audience, and a question about soda got people talking. For website traffic, even the most confident answer needs a number only the account owner can see.

FAQs about connecting X to Claude

Can I ask Claude or ChatGPT about my X analytics?

Yes. Once you authorize your X account, either assistant can retrieve your posts, follower history and public post metrics. Sociality.io is the best fit when you want your own account and tracked competitors in one place. Use the Sociality.io dashboard to review the accounts and Sociality MCP to ask questions in chat.

Is there an official X MCP server?

Yes. X hosts its API MCP at https://api.x.com/mcp. It can search the full archive, fetch posts and read timelines and mentions using your developer app. If you found a Twitter MCP result pointing to docs.x.com/mcp, that’s a separate service for searching developer documentation. It can’t retrieve the posts for your report.

Do I need X API keys or a paid X plan?

If you’re looking up how to connect X to Claude through Sociality MCP, you don’t need developer keys or X Premium for the connection. You need a workspace role that lets you add accounts and an available account slot. X’s own server requires developer credentials and API credits, while X’s own analytics page requires Premium.

Can Claude see a competitor’s X impressions or link clicks?

Claude can retrieve the public impression count for an accessible post through a connector. That count combines organic and promoted views. Link clicks and profile clicks are private to the owner, so a competitor’s views, likes and reposts can’t tell you how much website traffic the post generated.

Why doesn’t engagement match X’s own number?

Sociality.io adds likes and reposts to calculate X engagements. X analytics counts a wider set of interactions, including clicks, so the totals can differ for the same post. For a conversation report, request replies separately. For an audience-adjusted comparison, label the Sociality.io rate as engagements per 1,000 followers.

Can Claude read an X post from a link?

Sometimes an assistant can read a public post from its link, but neither Claude nor ChatGPT promises that pasting a URL will retrieve it. X’s terms require written consent for crawling. A link grants no access to private metrics. For a post comparison, use a connector that can fetch the underlying data.

Can I post to X from Claude?

Yes, with a tool that supports publishing. Postel can draft, schedule and publish X posts from Claude, and Composio includes posting in its X toolkit. Sociality MCP reads published data and handles account setup. If you ask it to publish a reply or schedule a post, it has no tool for that action.

How do I disconnect X from Claude or ChatGPT?

To withdraw X authorization, open Connected apps under Apps and sessions in X, choose Sociality.io App and select Revoke access. You can also disconnect the account in Sociality.io. To remove ChatGPT’s plugin connection, open Settings, select Plugins and Sociality.io, then find Disconnect in the menu beside the connected account.

Share this post
Hasan Toprakkaya
Hasan Toprakkaya

Hasan is a lifelong entrepreneur with a result-oriented perspective 🎯 He is the co-founder and CEO of Sociality.io, an all-in-one social media management platform trusted by global teams. With 20 years of startup building and over 10 years of SaaS experience in social media management tools, Hasan brings deep expertise in helping businesses grow through scalable, data-driven strategies. Outside of work, he’s also the proud father of Leon and Mira 👶.

Website | LinkedIn