Feedback

Twitter Client MCP

@mzkrasner Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
mzkrasner
Submitted by
Community
Quality
25
Stars
6

About Twitter Client MCP Server

A Model Context Protocol (MCP) server for secure Twitter client integration using the ElizaOS agent-twitter-client library

Twitter Client MCP is a MCP server in the Other category listed in the AddMCP.net directory, published by mzkrasner. Supported transport: stdio. Runtime: node. The repository has 6 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "twitter-client-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "github:mzkrasner/twitter-client-mcp"
            ],
            "env": {
                "TWITTER_USERNAME": "your_username",
                "TWITTER_PASSWORD": "your_password",
                "TWITTER_EMAIL": "[email protected]"
            }
        }
    }
}

Twitter Client MCP config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "twitter-client-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "github:mzkrasner/twitter-client-mcp"
            ],
            "env": {
                "TWITTER_USERNAME": "your_username",
                "TWITTER_PASSWORD": "your_password",
                "TWITTER_EMAIL": "[email protected]"
            }
        }
    }
}

Twitter Client MCP tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Twitter Client MCP?

Twitter Client MCP is a Model Context Protocol (MCP) server that provides secure access to Twitter functionality through the agent-twitter-client library. It is designed for developers and users who want to let LLM-powered applications (via MCP clients like Cursor) read and write Twitter data while keeping credentials safe.

How to use Twitter Client MCP?

Clone the repository, install dependencies with npm install, and build with npm run build. Set the required environment variables (TWITTER_USERNAME, TWITTER_PASSWORD, TWITTER_EMAIL) and optionally API v2 credentials. Run locally with npm start or use npx to execute directly from GitHub. Configure as a command-type MCP server in your client (e.g., Cursor) pointing to the built index.js, or define it in a .cursor/mcp.json file.

Key features of Twitter Client MCP

  • Get profile information by username or for the authenticated user.
  • Retrieve a specific tweet by ID or list tweets from a user.
  • Post new tweets, like tweets, and retweet tweets.
  • Search for tweets with configurable modes (top, latest, photos, videos).
  • Search for Twitter profiles by query.
  • View a user’s followers, who they follow, and follow new accounts.

Use cases of Twitter Client MCP

  • Automate social media monitoring by fetching recent tweets from specific users.
  • Build an AI assistant that can post, like, or retweet tweets on your behalf.
  • Search for relevant tweets or profiles during a research or marketing campaign.
  • Manage your Twitter relationships (follow/unfollow) programmatically.
  • Integrate Twitter data into a custom dashboard or chatbot powered by an LLM.

Frequently asked questions

1 What credentials does Twitter Client MCP require?

It requires TWITTER_USERNAME, TWITTER_PASSWORD, and TWITTER_EMAIL. Optionally, API v2 credentials (TWITTER_API_KEY, TWITTER_API_SECRET_KEY, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET) can be added for advanced functionality.

2 How does the server protect my Twitter credentials?

Credentials are loaded only during initialization and immediately removed from environment variables after loading. They are never logged or transmitted to the LLM. The server uses secure memory allocation with sodium-native, memory locking, and zeroes out buffers after use.

3 How do I run Twitter Client MPC in Cursor?

In Cursor, go to Settings > MCP Servers, add a server with type command, command node, and arguments pointing to the built dist/index.js. Pass the required environment variables in the configuration. Alternatively, define them in a .cursor/mcp.json file.

4 Can I run Twitter Client MCP without installing it locally?

Yes, you can run it directly using npx with the command TWITTER_USERNAME=... TWITTER_PASSWORD=... TWITTER_EMAIL=... npx -y github:mzkrasner/twitter-client-mcp.

5 What transport does Twitter Client MCP use?

The server communicates with the MCP client over standard input/output (stdio), as it is a command-type server. All debugging output must use console.error() to avoid interfering with the protocol.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬