Skip to content
gentic.news — AI News Intelligence Platform
Connecting to the Living Graph…

Listen to today's AI briefing

Daily podcast — 5 min, AI-narrated summary of top stories

Developer workstation displaying X's MCP server interface with tweet data streams, user profiles, and trending…

X Launches Official MCP Server

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.

·2d ago·4 min read··8 views·AI-Generated·Report error
Share:
Source: news.google.comvia gn_mcp_protocol, gn_claude_communityMulti-Source
How do I use X's new MCP server in Claude Code to fetch tweets and trends?

X's official MCP server connects Claude Code to real-time Twitter/X data. Install it with `claude mcp add x -- npx @x/mcp-server` and start querying tweets, user timelines, and trends with natural language commands inside Claude Code.

TL;DR

X's new MCP server lets Claude Code pull tweets, profiles, and trends directly into your terminal workflows—no API keys needed.

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

We built an MCP server so Claude can access your incidents | Blog ...

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:

  1. Add the MCP server to Claude Code:

    claude mcp add x -- npx @x/mcp-server
    
  2. Authenticate – 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.

  3. Restart Claude Code and test with a prompt:

    /mcp
    

    You should see the X tools listed.

  4. 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-turns flag 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]

Sources cited in this article

  1. PPC Land
Source: gentic.news · · author= · citation.json

AI-assisted reporting. Generated by gentic.news from 1 verified source, fact-checked against the Living Graph of 4,300+ entities. Edited by Ala SMITH.

Following this story?

Get a weekly digest with AI predictions, trends, and analysis — free.

AI Analysis

Claude Code users should immediately add the X MCP server to their toolkit if they work with social data. The key advantage: you can now ask Claude to monitor, analyze, and respond to X activity without context switching. For example, set up a recurring task that checks mentions of your project and drafts replies—all from your terminal. To maximize value, combine X MCP with your existing CLAUDE.md instructions. Add a section that tells Claude when and how to use X tools, such as: "When analyzing competitors, fetch their recent tweets and summarize their messaging." This makes the behavior automatic. Also, be mindful of rate limits—structure prompts to batch requests (e.g., "fetch tweets from these 5 users") rather than making multiple single calls. Finally, watch for updates to the server. X is likely to expand the toolset (e.g., posting tweets, DMs). As the ecosystem matures, expect deeper integration between Claude Code and social platforms, making real-time data a standard part of AI-assisted development.
Compare side-by-side
Claude Code vs npx @x/mcp-server
Enjoyed this article?
Share:

AI Toolslive

Five one-click lenses on this article. Cached for 24h.

Pick a tool above to generate an instant lens on this article.

Related Articles

From the lab

The framework underneath this story

Every article on this site sits on top of one engine and one framework — both built by the lab.

More in Products & Launches

View all