Skip to main content
Glama
rafaljanicki

X (Twitter) MCP server

by rafaljanicki

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TWITTER_API_KEYYesYour Twitter API key from the Twitter Developer Portal
TWITTER_API_SECRETYesYour Twitter API secret from the Twitter Developer Portal
TWITTER_ACCESS_TOKENYesYour Twitter access token from the Twitter Developer Portal
TWITTER_BEARER_TOKENYesYour Twitter bearer token from the Twitter Developer Portal
TWITTER_ACCESS_TOKEN_SECRETYesYour Twitter access token secret from the Twitter Developer Portal

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
get_user_profileB

Get detailed profile information for a user

get_user_by_screen_nameB

Fetches a user by screen name

get_user_by_idB

Fetches a user by ID

get_user_followersC

Retrieves a list of followers for a given user

get_user_followingB

Retrieves users the given user is following

get_user_followers_you_knowC

Retrieves a list of common followers (simulated)

get_user_subscriptionsC

Retrieves a list of users to which the specified user is subscribed (uses following as proxy)

post_tweetB

Post a tweet with optional media, reply, and tags

delete_tweetB

Delete a tweet by its ID

get_tweet_detailsB

Get detailed information about a specific tweet

create_poll_tweetC

Create a tweet with a poll

vote_on_pollC

Vote on a poll (mocked)

favorite_tweetD

Favorites a tweet

unfavorite_tweetC

Unfavorites a tweet

bookmark_tweetB

Adds the tweet to bookmarks

delete_bookmarkB

Removes the tweet from bookmarks

delete_all_bookmarksB

Deletes all bookmarks (simulated)

get_timelineB

Get tweets from your home timeline (For You)

get_latest_timelineB

Get tweets from your home timeline (Following)

search_twitterC

Search Twitter with a query

get_trendsB

Retrieves trending topics on Twitter

get_highlights_tweetsC

Retrieves highlighted tweets from a user's timeline (simulated)

get_user_mentionsB

Get tweets mentioning a specific user

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rafaljanicki/x-twitter-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server