MCP server for X/Twitter — post tweets, search, follow, and monitor your account with Claude
Connect X to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MCP server for X/Twitter — post tweets, search, follow, and monitor your account with Claude. The x mcp server is what makes that connection.
A Model Context Protocol (MCP) server that enables Claude Desktop (and other MCP clients) to interact with X/Twitter — post tweets, read timelines, search content, manage follows, and monitor your account.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
x_get_timeline — Home timeline — recent posts from followed accountsx_get_notifications — Mentions of the authenticated userx_search_tweets — Search by keyword, hashtag, or from:usernamex_get_tweet_thread — Fetch a tweet and its full conversation threadx_get_profile — User profile by usernamex_get_followers — Followers list for any accountx_get_user_tweets — Recent tweets from a specific userx_search_users — Search for users by name or keywordx_get_media_specs — X/Twitter media format specs (dimensions, size limits, formats)x_create_tweet — Post a tweet (text, link card, image, or video)x_reply — Reply to a tweetx_create_thread — Post a series of connected tweetsInstallation goes through your MCP client rather than a global install: point it at tsc on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Configuration is passed through the environment: X_APP_KEY, X_APP_SECRET, X_ACCESS_TOKEN, X_ACCESS_SECRET, X_BEARER_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. X's toolset — x_get_timeline, x_get_notifications, x_search_tweets and 11 more — is a fair guide to whether it matches your workflow. It is maintained by raveenb; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against X's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| x_get_timeline | Home timeline — recent posts from followed accounts |
| x_get_notifications | Mentions of the authenticated user |
| x_search_tweets | Search by keyword, hashtag, or from:username |
| x_get_tweet_thread | Fetch a tweet and its full conversation thread |
| x_get_profile | User profile by username |
| x_get_followers | Followers list for any account |
| x_get_user_tweets | Recent tweets from a specific user |
| x_search_users | Search for users by name or keyword |
| x_get_media_specs | X/Twitter media format specs (dimensions, size limits, formats) |
| x_create_tweet | Post a tweet (text, link card, image, or video) |
| x_reply | Reply to a tweet |
| x_create_thread | Post a series of connected tweets |
| x_quote_tweet | Quote-tweet with commentary |
| x_like | Like a tweet |
**Claude Desktop configuration:**
```json
{
"mcpServers": {
"x-twitter": {
"command": "npx",
"args": ["--yes", "@luminarylane/x-twitter-mcp-server"],
"env": {
"X_APP_KEY": "your-consumer-key",
"X_APP_SECRET": "your-consumer-secret",
"X_ACCESS_TOKEN": "your-access-token",
"X_ACCESS_SECRET": "your-access-token-secret"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| X_APP_KEY | Credential the server authenticates with. | Yes |
| X_APP_SECRET | Credential the server authenticates with. | Yes |
| X_ACCESS_TOKEN | Credential the server authenticates with. | Yes |
| X_ACCESS_SECRET | Credential the server authenticates with. | Yes |
| X_BEARER_TOKEN | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.