Twitter MCP Server

Twitter MCP Server is an MCP server that provides tools for interacting with Twitter (X) directly through Model Context Protocol clients. Built on the agent-twitter-client library, it connects AI assistants to Twitter to perform read, write, and social management operations. AI developers and automation engineers use it to enable language models to query timelines, search posts, publish content, and manage account interactions. The server enables users to fetch tweets from profiles, search by keywords or hashtags, and retrieve home, following, or user timelines. It also supports posting new tweets with optional media attachments such as JPEG, PNG, GIF, or MP4 files, publishing multi-tweet threads, liking or retweeting posts, and following or unfollowing accounts. In addition, the server offers tools for fetching trending topics, inspecting followers or following relationships, and reading Twitter lists, all managed with rate limiting and structured text responses over stdio.

Category: Communication & Messaging

Tags: microblogging, social-media, twitter, x

Visit Twitter MCP Server

How to install and configure Twitter MCP Server

  1. Clone the repository and install dependencies: bash npm install 2. Build the project: bash npm run build 3. Configure required environment variables for authentication: bash TWITTER_USERNAME=your_username TWITTER_PASSWORD=your_password TWITTER_EMAIL=your_email Optional Twitter API credentials can also be set (TWITTER_API_KEY, TWITTER_API_SECRET_KEY, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET). 4. Register the server in your Claude Desktop configuration file (claude_desktop_config.json): json { "mcpServers": { "twitter-mcp-server": { "command": "/path/to/twitter-mcp-server/build/index.js" } } } 5. Restart your MCP client to load the tools.

What you can do with Twitter MCP Server

  • Publishing automated updates, announcements, or multi-part threads with image or video media attachments directly from an AI workflow. - Searching recent tweets by keyword or hashtag to monitor specific discussions, sentiment, or brand mentions across the platform. - Reading user profiles, relationship lists, and custom Twitter lists to analyze community interactions and audience demographics. - Automating engagement actions by allowing an agent to like, retweet, or follow specific accounts based on contextual rules. - Inspecting trending topics and timeline feeds to summarize current social discussions for daily briefings or content ideation.

Key facts

  • https://github.com/taazkareem/twitter-mcp-server
  • Communication & Messaging, Other & General Purpose
  • microblogging, social-media, twitter, x

Part of MCP Servers

Related MCP servers

  • MCP Media Player — MCP Media Player is an MCP server that exposes playback controls for Home Assistant media players to AI agents. It…
  • MCP Marvel Rivals — MCP Marvel Rivals is an MCP server that provides access to Marvel Rivals game data through a standardized interface. It…
  • MCP Notify Server — MCP Notify Server is an MCP server that sends desktop notifications accompanied by audio alerts when AI agents complete tasks.…
  • MCP Notification Server — MCP Notification Server is an MCP server that sends periodic notifications at fixed intervals of every 10 seconds. Built around…
  • MCP Microsoft Office Bridge — MCP Microsoft Office Bridge is an MCP server that connects AI assistants like Claude to Microsoft 365 services through the…
  • MCP Naver News — MCP Naver News is an MCP server that connects AI assistants to the Naver News API, enabling automated search and…

How do I install Twitter MCP Server?

You can install Twitter MCP Server by cloning its repository from GitHub, running npm install, and building the project with npm run build. Then, supply your Twitter account credentials as environment variables and configure your MCP client to execute the compiled build/index.js file over standard input and output.

What can Twitter MCP Server do?

Twitter MCP Server allows an AI client to read user profiles, search tweets by keywords or hashtags, and fetch home, following, or user timelines. It also supports posting single tweets, attaching images or videos, creating threads, liking, retweeting, following or unfollowing users, reading lists, and tracking trending topics.

Which MCP clients work with Twitter MCP Server?

Twitter MCP Server works with any client that implements the Model Context Protocol over stdio transport. It is tested and documented for Claude Desktop on macOS and Windows, and developers can also test and inspect tools locally using the MCP Inspector.

Is Twitter MCP Server open source?

Yes, Twitter MCP Server is open source and distributed under the MIT License on GitHub. You can freely inspect the codebase, modify the implementation, and contribute improvements via pull requests.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories