Enables AI models and applications to interact directly with the Twitter/X platform.
Enables AI models and applications to interact directly with the Twitter/X platform. That is what the twitter integration mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
You need to configure Twitter authentication by creating a .env file or directly adding the variables to your environment.
MCP Twitter is a server based on the Model Context Protocol that allows direct interaction with Twitter/X. It exposes various Twitter API functionalities through a standardized set of tools, enabling AI models and applications to perform actions on Twitter.
The server ships on npm as mcp_twitter, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Configuration is passed through the environment: TWITTER_AUTH_MODE, TWITTER_USERNAME, TWITTER_PASSWORD, TWITTER_EMAIL, TWITTER_API_SECRET, YOUR_TWITTER_API_SECRET, TWITTER_ACCESS_TOKEN, YOUR_TWITTER_ACCESS_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.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by 0xhijo; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Twitter Integration's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
{
"mcpServers": {
"twitter-integration-1": {
"command": "npx",
"args": ["-y", "mcp_twitter"],
"env": {
"TWITTER_AUTH_MODE": "your-value",
"TWITTER_USERNAME": "your-value",
"TWITTER_PASSWORD": "your-value",
"TWITTER_EMAIL": "your-value",
"TWITTER_API_SECRET": "your-value",
"YOUR_TWITTER_API_SECRET": "your-value",
"TWITTER_ACCESS_TOKEN": "your-value",
"YOUR_TWITTER_ACCESS_TOKEN": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| TWITTER_AUTH_MODE | Configuration value read at startup. | Optional |
| TWITTER_USERNAME | Configuration value read at startup. | Optional |
| TWITTER_PASSWORD | Configuration value read at startup. | Optional |
| TWITTER_EMAIL | Configuration value read at startup. | Optional |
| TWITTER_API_SECRET | Credential the server authenticates with. | Yes |
| YOUR_TWITTER_API_SECRET | Credential the server authenticates with. | Yes |
| TWITTER_ACCESS_TOKEN | Credential the server authenticates with. | Yes |
| YOUR_TWITTER_ACCESS_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.