Twitter MCP Server based on ElizaOS Agent Twitter Client
Twitter MCP server exists for a simple reason — assistants are far more useful when they can act on Twitter directly instead of describing what you should do. Twitter MCP Server based on ElizaOS Agent Twitter Client.
A powerful Twitter integration for AI agents that leverages the Model Context Protocol (MCP) standard, providing a comprehensive set of Twitter functionality through a clean and consistent interface.
This server provides access to Twitter's features through MCP tools, allowing seamless integration with AI assistants and other MCP-compatible clients. It's built on top of the agent-twitter-client library and provides robust error handling, rate limiting, and consistent response formatting.
Once Twitter is connected, these are the calls the assistant has available:
get_tweets — Fetch recent tweets from a userget_profile — Get a user's profile informationsearch_tweets — Search for tweets by hashtag or keywordlike_tweet — Like or unlike a tweetretweet — Retweet or undo retweetpost_tweet — Post a new tweet with optional mediacreate_thread — Create a Twitter threadget_timeline — Get tweets from different timeline typesget_list_tweets — Get tweets from a Twitter listget_trends — Get current trending topicsget_user_relationships — Get followers or following listfollow_user — Follow or unfollow a userYou will need 4 environment variables: TWITTER_API_KEY, TWITTER_API_SECRET_KEY, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Twitter's toolset — get_tweets, get_profile, search_tweets and 10 more — is a fair guide to whether it matches your workflow. It is maintained by taazkareem; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| get_tweets | Fetch recent tweets from a user |
| get_profile | Get a user's profile information |
| search_tweets | Search for tweets by hashtag or keyword |
| like_tweet | Like or unlike a tweet |
| retweet | Retweet or undo retweet |
| post_tweet | Post a new tweet with optional media |
| create_thread | Create a Twitter thread |
| get_timeline | Get tweets from different timeline types |
| get_list_tweets | Get tweets from a Twitter list |
| get_trends | Get current trending topics |
| get_user_relationships | Get followers or following list |
| follow_user | Follow or unfollow a user |
| Debugging | Since MCP servers communicate over stdio, you can use the MCP Inspector for debugging: bash npm run inspector |
{
"mcpServers": {
"twitter-mcp-server": {
"command": "/path/to/twitter-mcp-server/build/index.js"
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| TWITTER_API_KEY | Credential the server authenticates with. | Yes |
| TWITTER_API_SECRET_KEY | Credential the server authenticates with. | Yes |
| TWITTER_ACCESS_TOKEN | Credential the server authenticates with. | Yes |
| TWITTER_ACCESS_TOKEN_SECRET | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.