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.

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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