Twitter MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
X_API_KEYYesYour Twitter API key
X_API_SECRETYesYour Twitter API secret
X_ACCESS_TOKENYesYour Twitter access token
X_ACCESS_TOKEN_SECRETYesYour Twitter access token secret

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
postTweet

Post a tweet to Twitter

postTweetWithMedia

Post a tweet with media attachment to Twitter

likeTweet

Like a tweet by its ID

unlikeTweet

Unlike a previously liked tweet

getLikedTweets

Get a list of tweets liked by a user

searchTweets

Search for tweets using a query string

replyToTweet

Reply to a tweet

getUserTimeline

Get recent tweets from a user timeline

getTweetById

Get a tweet by its ID

getUserInfo

Get information about a Twitter user

getTweetsByIds

Get multiple tweets by their IDs

retweet

Retweet a tweet by its ID

undoRetweet

Undo a retweet by its ID

getRetweets

Get a list of retweets of a tweet

followUser

Follow a user by their username

unfollowUser

Unfollow a user by their username

getFollowers

Get followers of a user

getFollowing

Get a list of users that a user is following

createList

Create a new Twitter list

addUserToList

Add a user to a Twitter list

removeUserFromList

Remove a user from a Twitter list

getListMembers

Get members of a Twitter list

getUserLists

Get lists owned by a user

getHashtagAnalytics

Get analytics for a specific hashtag

deleteTweet

Delete a tweet by its ID