bookmark_tweet
Adds the tweet to bookmarks
Read and post on X — profiles, followers, timelines, search, trends, tweets, polls, bookmarks — with several tools stating in their own text that they are simulated or mocked.
LABSCO SUMMARY
It would have been easy to leave those unlabelled and let a caller assume the data was real — a simulated 'followers you know' returns something plausible either way. Marking them means an agent has a chance of not building on fiction, and it tells you something good about the rest of the surface. The other labelling worth having is delete_all_bookmarks announcing itself as destructive and irreversible before saying what it does. Set expectations correctly: this is a mixed surface where most tools hit the real API, several do not, and the API tier decides which of the real ones work at all.
A broad X client covering user lookup and social graph, tweet reading and posting, engagement, bookmarks, timelines, search and trends.
Python 3.10 or higher and X API credentials — TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET and TWITTER_BEARER_TOKEN, plus TWITTER_OAUTH2_USER_ACCESS_TOKEN for the bookmark tools. Some tools require a specific API access tier, which they name in their own descriptions.
One command plus a key — pip install x-twitter-mcp, then supply credentials
USE CASES
Resolve by screen name or id, read the full profile, and walk the followers and following lists.
Post with media or as a reply, read it back in detail, and delete it if it needs to go.
Choose between the algorithmic For You feed and the chronological Following one — they are separate tools because they are different feeds.
Search with a query, read trending topics, and check who has mentioned a user.
Bookmark and unbookmark individual tweets and read the list — noting that clearing all of them is marked destructive and irreversible.
Favourite and unfavourite tweets, which is the lightweight interaction that does not put anything on your own timeline.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
bookmark_tweetAdds the tweet to bookmarks
create_poll_tweetCreate a tweet with a poll
delete_all_bookmarksDESTRUCTIVE AND IRREVERSIBLE: Permanently deletes ALL bookmarks one by one. This cannot be undone. Always confirm explicitly with the user before calling this tool.
delete_bookmarkRemoves the tweet from bookmarks
delete_tweetDelete a tweet by its ID
favorite_tweetFavorites a tweet
get_bookmarksRetrieves the authenticated user's bookmarked tweets. Requires Basic access tier or higher.
get_highlights_tweetsRetrieves highlighted tweets from a user's timeline (simulated)
get_latest_timelineGet tweets from your home timeline (Following)
get_timelineGet tweets from your home timeline (For You)
get_trendsRetrieves trending topics on Twitter
get_tweet_detailsGet detailed information about a specific tweet
get_user_by_idFetches a user by ID
get_user_by_screen_nameFetches a user by screen name
get_user_followersRetrieves a list of followers for a given user
get_user_followers_you_knowRetrieves a list of common followers (simulated)
get_user_followingRetrieves users the given user is following
get_user_mentionsGet tweets mentioning a specific user
get_user_profileGet detailed profile information for a user
get_user_subscriptionsRetrieves a list of users to which the specified user is subscribed (uses following as proxy)
post_tweetPost a tweet with optional media, reply, and tags
search_twitterSearch Twitter with a query
unfavorite_tweetUnfavorites a tweet
vote_on_pollVote on a poll (mocked)
BEFORE YOU INSTALL
24 tools when we connected. get_bookmarks and delete_all_bookmarks need TWITTER_OAUTH2_USER_ACCESS_TOKEN. vote_on_poll returns a mock response, and get_user_followers_you_know, get_user_subscriptions and get_highlights_tweets are approximations.
CONTEXT COST
Rated by the size of the 24 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
pip install x-twitter-mcpnpx -y @smithery/cli install @rafaljanicki/x-twitter-mcp-server --client claude{
"mcpServers": {
"x-twitter-mcp": {
"command": "x-twitter-mcp-server",
"args": [],
"env": {
"PYTHONUNBUFFERED": "1",
"TWITTER_API_KEY": "<YOUR_TWITTER_API_KEY>",
"TWITTER_API_SECRET": "<YOUR_TWITTER_API_SECRET>",
"TWITTER_ACCESS_TOKEN": "<YOUR_TWITTER_ACCESS_TOKEN>",
"TWITTER_ACCESS_TOKEN_SECRET": "<YOUR_TWITTER_ACCESS_TOKEN_SECRET>",
"TWITTER_BEARER_TOKEN": "<YOUR_TWITTER_BEARER_TOKEN>",
"TWITTER_OAUTH2_USER_ACCESS_TOKEN": "<YOUR_TWITTER_OAUTH2_USER_ACCESS_TOKEN>"
}
}
}
}