Feedback

Twitter MCP Server — by ryanmac

@ryanmac Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
ryanmac
Submitted by
Community
Quality
35
Stars
31

About Twitter MCP Server

Automate tweet operations, manage profiles, and enable auto tweet post with this TypeScript server for Twitter. Supports Grok AI integration.

Twitter is a MCP server in the Communication category listed in the AddMCP.net directory, published by ryanmac. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 31 GitHub stars. Source code is hosted on github.com. Related topics: agent-twitter-client, communication, community, grok, grok-api.

Setup

{
    "mcpServers": {
        "agent-twitter-client-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "agent-twitter-client-mcp"
            ],
            "env": {
                "AUTH_METHOD": "cookies",
                "TWITTER_COOKIES": "[\"auth_token=YOUR_AUTH_TOKEN; Domain=.twitter.com\", \"ct0=YOUR_CT0_VALUE; Domain=.twitter.com\", \"twid=u%3DYOUR_USER_ID; Domain=.twitter.com\"]"
            }
        }
    }
}

Twitter MCP Server — by ryanmac config

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

{
    "mcpServers": {
        "agent-twitter-client-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "agent-twitter-client-mcp"
            ],
            "env": {
                "AUTH_METHOD": "cookies",
                "TWITTER_COOKIES": "[\"auth_token=YOUR_AUTH_TOKEN; Domain=.twitter.com\", \"ct0=YOUR_CT0_VALUE; Domain=.twitter.com\", \"twid=u%3DYOUR_USER_ID; Domain=.twitter.com\"]"
            }
        }
    }
}

Twitter MCP Server — by ryanmac 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?

A Model Context Protocol (MCP) server that integrates with Twitter using the agent-twitter-client package, allowing AI models to interact with Twitter without direct API access.

How to use Twitter?

Install globally or locally via npm, create a .env file with Twitter credentials (cookies, username/password, or API), and run the server with agent-twitter-client-mcp or npx agent-twitter-client-mcp. Configure it with Claude Desktop by adding the server to the MCP config file with the chosen authentication method. An interactive test CLI is also available via npx agent-twitter-client-mcp-test.

Key features of Twitter

  • Cookie-based, username/password, or Twitter API v2 authentication
  • Fetch, search, post, like, retweet, and quote tweets
  • Create polls with multiple options and duration
  • Get user profiles, follow users, and list followers/following
  • Chat with Grok via Twitter's interface with conversation continuity
  • Health check endpoint for server status

Use cases of Twitter

  • Have an AI assistant search Twitter for recent news or topics
  • Automate posting tweets with text, images, or videos from AI agents
  • Analyze trending topics or user sentiment using Grok's real-time data
  • Manage social media interactions like following, liking, and quoting

Frequently asked questions

1 What authentication methods are supported?

Three methods: cookie-based (recommended), username/password with optional 2FA secret, and Twitter API v2 credentials.

2 Does Grok integration require special dependencies?

Yes, Grok functionality requires agent-twitter-client v0.0.19 or higher.

3 What are the rate limits for Grok?

Non-premium accounts: 25 messages per 2 hours; premium accounts have higher limits. The server returns rate limit info in responses when limits are reached.

4 Can I post tweets with media (images/videos)?

Yes, the server supports posting tweets with images and videos by providing file paths or URLs in the request.

5 Which port does the server use by default?

Default port is 3000. It can be changed via the PORT environment variable or Docker Compose configuration.

Videos

Tutorials, guides, and showcases related to Twitter MCP Server — by ryanmac. The player loads when you press play.

Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.

Comments

No comments yet

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

Sign In

Feedback 💬