Twitter Integration MCP Server

Enables AI models and applications to interact directly with the Twitter/X platform.

Local serverstdio 11

What is the Twitter Integration MCP server?

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.

The short version

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.

  • create_twitter_post — Create a new X/Twitter post
  • reply_twitter_tweet — Reply to a specific X/Twitter post by ID
  • get_last_tweet — Get the most recent post from a specified X/Twitter account
  • get_last_tweets_options — Get a specified number of posts matching a search query
  • create_and_post_twitter_thread — Create and publish an X/Twitter thread
  • follow_twitter_from_username — Follow an X/Twitter user by username

Getting it running

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.

What it needs from you

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.

How it compares

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.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How to install the Twitter Integration MCP server

{
  "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.

Configuration

VariableDescriptionRequired
TWITTER_AUTH_MODEConfiguration value read at startup.Optional
TWITTER_USERNAMEConfiguration value read at startup.Optional
TWITTER_PASSWORDConfiguration value read at startup.Optional
TWITTER_EMAILConfiguration value read at startup.Optional
TWITTER_API_SECRETCredential the server authenticates with.Yes
YOUR_TWITTER_API_SECRETCredential the server authenticates with.Yes
TWITTER_ACCESS_TOKENCredential the server authenticates with.Yes
YOUR_TWITTER_ACCESS_TOKENCredential the server authenticates with.Yes

Frequently asked questions

MCP Twitter is a server that uses the Model Context Protocol (MCP) to allow AI models and applications to interact directly with Twitter/X. It exposes Twitter API functionalities through a standardized protocol.