Skip to main content
Glama
XCROP MCP server

XCROP MCP server

Official
by xcrop-io

XCROP MCP server for X (Twitter) data

npm license

An MCP server that gives Claude, Cursor, VS Code and other MCP clients read access to public X (Twitter) data through the XCROP API: profiles, posts, search, followers, trends, and checks for follows, reposts, replies and quotes.

  • 14 read-only tools, nothing is ever posted

  • Runs on your own XCROP API key, free plan included (10,000 credits a month)

  • Zero dependencies, Node.js 18.17 or newer

There are two ways to connect:

When to use

Hosted server https://xcrop.io/api/mcp

Your client supports remote MCP servers over HTTP (Claude Code, Claude, ChatGPT, Cursor, VS Code). Nothing to install. Setup: xcrop.io/mcp

This package npx -y @xcrop/mcp

Your client only runs local (stdio) servers, or you prefer the key in an environment variable

This package is a thin stdio bridge to the hosted server: each message goes to https://xcrop.io/api/mcp with your key, so both ways expose the same tools and the tool list is always current.

Get an API key

Sign up at xcrop.io and create a key in the dashboard. Keys start with xc_live_.

Related MCP server: SocialDataX X Twitter MCP

Setup

Claude Code

claude mcp add xcrop -e XCROP_API_KEY=xc_live_YOUR_KEY -- npx -y @xcrop/mcp

Claude Desktop

Add to claude_desktop_config.json (Settings, Developer, Edit Config), then restart Claude:

{
  "mcpServers": {
    "xcrop": {
      "command": "npx",
      "args": ["-y", "@xcrop/mcp"],
      "env": { "XCROP_API_KEY": "xc_live_YOUR_KEY" }
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "xcrop": {
      "command": "npx",
      "args": ["-y", "@xcrop/mcp"],
      "env": { "XCROP_API_KEY": "xc_live_YOUR_KEY" }
    }
  }
}

VS Code

Add to .vscode/mcp.json, then use Copilot Chat in agent mode:

{
  "servers": {
    "xcrop": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@xcrop/mcp"],
      "env": { "XCROP_API_KEY": "xc_live_YOUR_KEY" }
    }
  }
}

On Windows, if the client cannot start npx, use "command": "cmd" with "args": ["/c", "npx", "-y", "@xcrop/mcp"].

Tools

Every call spends credits from your key; the cost is in each tool's description, so the model sees it too.

Tool

What it returns

Credits

get_user

Profile: name, bio, followers, following, post count, verification, creation date

18

get_user_tweets

Latest posts of an account

15 per post

search_tweets

Post search with X operators (from:, lang:, min_faves:, since: ...)

15 per post

search_users

Accounts matching a name or keyword

18 per account

get_tweet

One post with author, counts and media

15

get_tweet_replies

Replies under a post

15 per reply

get_tweet_quotes

Posts quoting a post

15 per quote

get_tweet_retweeters

Accounts that reposted a post

1 per account

get_followers

Followers of an account

1 per follower

get_following

Accounts an account follows

1 per account

check_follow

Does account A follow account B (both directions)

50

check_interaction

Did an account repost, reply to or quote a post

50

get_trending

Trending topics, worldwide or by country

100

get_credits

Credits left on your key

free

List tools take count and return next_cursor; the model asks for the next page only when it needs it. Prices can change: the server's tool list and xcrop.io/pricing are the reference.

Example prompts

  • "Get the profile of @nasa and its 20 latest posts"

  • "Did @alice repost https://x.com/xcropio/status/123... ?"

  • "Search posts about 'MCP server' from the last week with at least 50 likes"

  • "What is trending in Japan right now?"

Configuration

Variable

Default

Meaning

XCROP_API_KEY

none

Your key (xc_live_...). Without it the tools answer with setup instructions

XCROP_MCP_URL

https://xcrop.io/api/mcp

Server to forward to

The key is sent only to XCROP_MCP_URL, as an Authorization: Bearer header, and is never printed. A URL carrying ?key=xc_live_... also works: the key is taken out of the URL and sent as the header instead.

Development

npm test                      # unit tests, no network
node bin/xcrop-mcp.js         # run the bridge; type JSON-RPC lines on stdin

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A read-only X/Twitter MCP server that enables data retrieval for user profiles, tweets, and social graphs using OAuth 2.0 Bearer Token authentication. It supports searching recent tweets, viewing timelines, and tracking engagement metrics like followers, likes, and retweets.
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      X and Twitter MCP by SocialDataX for public post search and details, comments and replies, user profiles, and user post lists with pagination.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to interact with the X (Twitter) API v2 through 41 typed tools for reading, searching, engaging, publishing, and managing content, with policy-based access control and session credit budgets to prevent overspending.
      41
      50 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP clients to access FxTwitter/FxEmbed read-only APIs, exposing tools for retrieving posts, threads, conversations, user profiles, media, followers, search results, and trends.
      2
      MIT