Skip to content

Menu

Twitter/X MCP Server logo

Twitter/X MCP Server

Published · Updated

At a glance

GitHub repository
EnesCinr/twitter-mcp
Watch out for
get_home_timeline does not work on X's Free API tier; it needs Basic or higher.

twitter-mcp by Enes Çınar is a small community MCP server for Twitter, now X, published on npm as @enescinar/twitter-mcp. It does three things: post a tweet, search tweets and read your home timeline.

post_tweet can post a new tweet, reply to an existing one, or attach up to four local images in JPG, PNG, GIF or WEBP format. search_tweets searches recent tweets. get_home_timeline returns recent tweets from accounts you follow, with options to limit the count, look back a set number of days, or start from a timestamp. That last tool is the most useful day to day: asking for a summary of what the people you follow posted this week is a good way to catch up without scrolling.

It needs your own X developer app credentials: an API key and secret and an access token and secret, from the X Developer Portal. What those can do depends on X's API access tiers, which have changed several times and come with their own limits and pricing; the README notes that get_home_timeline needs a paid tier (Basic or higher) and returns an API error on the Free tier. Because post_tweet publishes as you, keep approval on in your client and review every tweet before it goes out.

How it connects

Your AI app

An assistant or agent that supports MCP

Twitter/X MCP Server

Runs as

  • npx (Node.js)

Gives the agent

  • post_tweet
  • search_tweets
  • get_home_timeline
  • Evals

Twitter/X

Signs in with

  • API key
Your AI app talks to Twitter/X MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

post_tweet
Posts a tweet, optionally as a reply, with up to four local images.
search_tweets
Searches recent tweets matching a query.
get_home_timeline
Returns recent tweets from accounts you follow, with count, since_days and start_time filters.
Evals
The repository includes an evals package for testing tool behaviour during development.

Setting it up

Create a project and app in the X Developer Portal with read and write permissions, and generate an API key and secret and an access token and secret for your account. Then add a server that runs npx -y @enescinar/twitter-mcp with API_KEY, API_SECRET_KEY, ACCESS_TOKEN and ACCESS_TOKEN_SECRET in its environment, as the README's Claude Desktop config shows. Check your X API tier first: the home timeline tool needs a paid tier, and search limits vary by tier. Turn on tool approval so every post_tweet call waits for you.

Run in a terminal
claude mcp add twitter -- npx -y @enescinar/twitter-mcp

Runs the @enescinar/twitter-mcp package from npm. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Summarising what accounts you follow posted in the last few days
  • Searching recent tweets about a release or outage
  • Drafting and posting a tweet with a screenshot after you approve it
  • Replying to a specific tweet from your editor

Limitations and things to watch

  • get_home_timeline does not work on X's Free API tier; it needs Basic or higher.
  • post_tweet publishes publicly as you; approve each one.
  • Only three tools: no DMs, likes, follows or lists.
  • A community project, not an X product.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…