Twitter MCP Server

Enables interaction with the X (formerly Twitter) platform for posting tweets, searching content, and managing accounts and lists.

Local serverstdioPython★ 3

What is the Twitter MCP Server?

Enables interaction with the X (formerly Twitter) platform for posting tweets, searching content, and managing accounts and lists.

What you get

This MCP server allows Clients to interact with X (formerly Twitter), enabling comprehensive platform operations including posting tweets, searching content, managing accounts, and organizing lists.

Configuration and credentials

  • Node.js 18.x or higher - X Developer account with API keys - API v1 and v2 access

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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
post_tweetPost new content to X
search_tweetsSearch for content on X
get_profileGet profile information for a user or the authenticated account
update_profileUpdate the authenticated user's profile
follow_userFollow a user
unfollow_userUnfollow a user
list_followersList followers of a user or the authenticated account
list_followingList accounts that a user or the authenticated account is following
create_listCreate a new list
get_list_infoGet information about a list
get_user_listsGet all lists owned by the authenticated user

Configuration

  • Node.js 18.x or higher - X Developer account with API keys - API v1 and v2 access
VariableDescriptionRequired
TWITTER_API_KEYCredential the server authenticates with.Yes
TWITTER_API_SECRETCredential the server authenticates with.Yes
TWITTER_ACCESS_TOKENCredential the server authenticates with.Yes
TWITTER_ACCESS_TOKEN_SECRETCredential the server authenticates with.Yes

Example prompts to try

  • “Use Twitter to post tweet.”
  • “Use Twitter to search tweets.”
  • “Use Twitter to get profile.”

Frequently asked questions

It's a tool that allows you to interact with the X (formerly Twitter) platform programmatically, enabling you to post tweets, search content, manage accounts, and organize lists using an API.