twitter-client-mcp

twitter-client-mcp

0

The Twitter Client MCP is a Model Context Protocol server designed to provide secure access to Twitter functions, including profile information, tweeting, and relationship management, while ensuring credential protection through multiple security layers.

Twitter Client MCP

A Model Context Protocol (MCP) server that facilitates secure access to Twitter functionality through the agent-twitter-client library.

Features

  • Profile Operations

    • Get profile information by username
    • Get the authenticated user's profile
  • Tweet Operations

    • Get a specific tweet by ID
    • Get tweets from a user
    • Send new tweets
    • Like tweets
    • Retweet tweets
  • Search Operations

    • Search for tweets
    • Search for profiles
  • Relationship Operations

    • Get followers of a user
    • Get users that a user is following
    • Follow a user

Security ⚠️

The server employs multiple layers of security to protect Twitter credentials, involving credential isolation, memory protection, and access prevention.

Setup

  1. Clone the repository
  2. Install dependencies
  3. Build the project

Required Environment Variables

  • Twitter username, password, email
  • Optional: Twitter API v2 credentials

Tools

  • Provides tools for interacting with Twitter profiles, tweets, searches, and relationships.

Usage

Instructions for running the server locally and adding it to Cursor.

Development

Use console.error() for debugging to avoid interfering with MCP protocol communication.