Twitter Client MCP server

Twitter Client MCP server

twitter-client-mcp•bymzkrasner

A Model Context Protocol server that offers secure access to Twitter functionality, enabling LLM clients to read profiles and tweets, post and search content, and manage relationships.

License: Not specified•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Retrieves profile information, including profiles by username and the authenticated user's own profile.
  • •Provides tweet operations: fetch a tweet by ID, get a user's tweets, post tweets, like tweets, and retweet.
  • •Supports searching for tweets and profiles, and managing relationships by listing followers/following and following users.
  • •Implements credential protections including memory locking, zeroing buffers after use, and removing credentials from environment variables after loading.

BEST FOR

  • •Agents that need to read and post Twitter content such as tweets and replies through MCP tools.
  • •Workflows that require searching Twitter for tweets or profiles and analyzing relationships like followers and following.
  • •Setups where Twitter credentials must be handled with layered protections while running an MCP server.

ABOUT TWITTER-CLIENT-MCP

Twitter Client MCP server is cataloged as an MCP server attributed to mzkrasner. A Model Context Protocol server that offers secure access to Twitter functionality, enabling LLM clients to read profiles and tweets, post and search content, and manage relationships. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Twitter Client MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What credentials does the server require?

It requires the Twitter username, password, and email, with optional Twitter API v2 credentials for advanced functionality.

How does the server protect Twitter credentials?

Credentials are loaded only during initialization, removed from environment variables, kept out of logs, stored in locked memory, and zeroed after use.

上游原版 README

在 GitHub 查看同一版本原文

README.md · c2774b60c2ac · 采集于 2026-11-13 13:55:03 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Twitter Client MCP

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

Features

The Twitter Client MCP provides the following capabilities:

  • 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 ⚠️

IMPORTANT: TWITTER CREDENTIAL PROTECTION

This MCP server requires Twitter credentials to operate. To protect these sensitive credentials:

  1. NEVER share your credentials
  2. NEVER run commands that display your credentials
  3. NEVER allow the LLM to execute shell commands directly without your approval

Multiple Layers of Protection

This server implements several layers of security to keep your credentials safe:

1. Credential Isolation

  • Your credentials are only loaded during initialization
  • After loading, credentials are immediately removed from environment variables
  • Credentials are never logged or transmitted to the LLM

2. Memory Protection

  • Secure memory allocation using sodium-native
  • Memory locking to prevent swapping to disk
  • Zero-out memory buffers after use

3. Access Prevention

  • Secure environment variable handling
  • Strict validation of required environment variables
  • Console output sanitization to prevent leaking secrets

Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Build the project:
    npm run build
    

Required Environment Variables

The Twitter Client MCP requires the following environment variables:

TWITTER_USERNAME=your_username
TWITTER_PASSWORD=your_password
TWITTER_EMAIL=your_email@example.com

Optionally, you can add Twitter API v2 credentials for advanced functionality:

TWITTER_API_KEY=your_api_key
TWITTER_API_SECRET_KEY=your_api_secret
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_access_secret

Tools

The server exposes the following MCP tools:

Tool NameDescriptionParameters
profileByUsernameGet a Twitter profile by usernameusername: String
myProfileGet the authenticated user's profilecheck: Boolean
getTweetGet a specific tweet by IDtweetId: String
getUserTweetsGet tweets from a Twitter userusername: String, count?: Number
sendTweetPost a new tweettext: String, inReplyToId?: String
likeTweetLike a tweettweetId: String
retweetRetweet a tweettweetId: String
searchTweetsSearch for tweetsquery: String, count?: Number, searchMode?: String ('top', 'latest', 'photos', 'videos')
searchProfilesSearch for Twitter profilesquery: String, count?: Number
getFollowersGet a list of users following a Twitter userusername: String, count?: Number
getFollowingGet a list of users that a Twitter user is followingusername: String, count?: Number
followUserFollow a Twitter userusername: String

Usage

Running Locally

# Start the server with environment variables
TWITTER_USERNAME=your_username TWITTER_PASSWORD=your_password TWITTER_EMAIL=your_email@example.com npm start

Adding to Cursor

To add this MCP server to Cursor:

  1. In Cursor, go to Settings > MCP Servers
  2. Click "Add Server"
  3. Configure the server with the following settings:
    • Name: Twitter Client MCP (or any name you prefer)
    • Type: command
    • Command: node
    • Arguments: /path/to/twitter-client-mcp/dist/index.js (replace with your actual path)
    • Environment Variables:
      • TWITTER_USERNAME: Your Twitter username
      • TWITTER_PASSWORD: Your Twitter password
      • TWITTER_EMAIL: Your Twitter email
      • Any other variables you want to set
  4. Click "Save"

You can also use npx to run the MCP server directly from GitHub:

TWITTER_USERNAME=your_username TWITTER_PASSWORD=your_password TWITTER_EMAIL=your_email@example.com npx -y github:mzkrasner/twitter-client-mcp

Using Environment Variables in Cursor Configuration

For more security and ease of use, configure Cursor via the .cursor/mcp.json file in your home directory:

{
  "mcpServers": {
    "twitter-client-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "github:mzkrasner/twitter-client-mcp"
      ],
      "env": {
        "TWITTER_USERNAME": "your_username",
        "TWITTER_PASSWORD": "your_password",
        "TWITTER_EMAIL": "your_email@example.com"
      }
    }
  }
}

Development

Important Note for Development

When developing the MCP server, use console.error() instead of console.log() for all debugging and logging statements. The MCP protocol communicates with the client via stdout, so any console.log() statements will interfere with this communication.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Twitter Client MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/twitter-client-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication