X just made its data available to AI agents with an official MCP server. For Claude Code users, this means you can now pull tweets, user profiles, and trending topics directly into your coding workflows—no more copying and pasting from the web or writing custom API wrappers.
Key Takeaways
- X's official MCP server lets Claude Code query live tweets, profiles, and trends natively.
- Install with
claude mcp add x -- npx @x/mcp-server, authenticate, and start pulling real-time social data into your workflows.
What Changed

X (formerly Twitter) launched an official Model Context Protocol (MCP) server, joining the growing ecosystem of platforms adopting Anthropic's open standard. This server exposes X's core data endpoints as MCP tools, which Claude Code can call natively.
While the full toolset isn't yet documented publicly, the server is designed to provide:
- Fetching recent tweets from a specific user
- Searching tweets by keyword or hashtag
- Retrieving trending topics for a region
- Getting user profile details
This is significant because X previously had no official MCP integration. Developers had to rely on unofficial wrappers or manually hit the API with curl commands. Now, it's a first-class citizen.
What It Means For You
If you're a Claude Code user who does any of the following, this is a game-changer:
- Social media monitoring: Build a Claude Code task that checks mentions of your product and summarizes sentiment.
- Market research: Pull trending topics in your niche and ask Claude to identify opportunities.
- Content creation: Generate tweet drafts based on real-time trends, then post them via the API.
- Customer support: Fetch recent tweets from a user who filed a bug report and get context without leaving your terminal.
Because MCP tools are context-aware, Claude Code can reason about the data it fetches. For example, you could ask: "What are the top 3 trending topics in tech right now, and what's the sentiment around each?" Claude will fetch the trends, analyze related tweets, and give you a structured answer.
Try It Now
Here's how to get started in under two minutes:
Add the MCP server to Claude Code:
claude mcp add x -- npx @x/mcp-serverAuthenticate – you'll need to log in with your X account. The server handles OAuth flow, so you don't need to manually generate API keys.
Restart Claude Code and test with a prompt:
/mcpYou should see the X tools listed.
Try a real query:
Fetch the last 10 tweets from @OpenAI and summarize the key topics.
If you're already using other MCP servers (like the lead enrichment one we covered), you can combine them. For example, pull tweets mentioning a lead, then enrich that lead's data with your existing MCP tools.
Caveats to Keep in Mind
- Rate limits: X's API has strict rate limits. The MCP server will hit them if you make too many calls in a short period. Use Claude Code's
--max-turnsflag to control how many tool calls happen per session. - Authentication: You need an X account with API access. Free tier may be limited, but it's enough for experimentation.
- Privacy: Be careful with user data. Don't store or process tweets in ways that violate X's developer terms.
The Bigger Picture
This launch is part of a larger trend: platforms are racing to make their data accessible to AI agents via MCP. Google has been investing heavily in MCP (we've covered Gemini Enterprise's MCP connectors), and now X is following suit. For Claude Code users, this means the terminal is becoming a hub for real-time data—not just code.
As more services launch MCP servers, your Claude Code setup becomes more powerful. You're no longer limited to local files and APIs you manually wire up. You can pull in social data, enrich it, and act on it—all from one interface.
Bottom Line
X's MCP server is a practical addition to any Claude Code workflow that touches social media. Install it, test it, and start building automations that react to live X activity. The era of AI agents with real-time social data access is here.
Source: news.google.com
[Updated 26 Aug via gn_claude_community]
The new X Ads MCP server, separate from the core data server, ships with 23 dedicated tools for running ad campaigns directly from Grok and Claude Code. This allows AI agents to create, manage, and optimize ads natively, covering campaign setup, budget adjustments, and performance analysis. It marks a significant step beyond data retrieval, enabling autonomous advertising workflows from the terminal. [per PPC Land]







