twitter-mcp-server

twitter-mcp-server

7

This project provides a robust integration between Twitter and AI agents using the Model Context Protocol. It offers comprehensive Twitter functionalities, enabling AI assistants to seamlessly interact with Twitter through MCP-compatible tools.

Twitter MCP Server

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.

Features

  • Basic Reading: Get tweets, fetch user profiles, search tweets, rate limiting.
  • User Interactions: Like/Unlike tweets, retweet, post tweets with text and media, replies, and quotes.
  • Advanced Features: User relationships, trending topics, different timeline types, list management.
  • Media & Interactions: Media uploads, thread creation, follow/unfollow.

Tools

  • Reading Tools: Fetch tweets, get profile, search tweets.
  • Interaction Tools: Like tweets, retweet, post tweets, create threads.
  • Timeline Tools: Get different timelines, get list tweets, get trends.
  • User Management Tools: Get user relationships, follow/unfollow users.

Installation

  1. Install dependencies (npm install).
  2. Build the server.
  3. Configure environment variables for authentication.
  4. Add server config to MCP client.

Development

Auto-rebuild and debugging with MCP Inspector.