agent-twitter-client-mcp
agent-twitter-client-mcp is an MCP server that facilitates AI interactions with Twitter by using the agent-twitter-client package, bypassing the need for direct API access. It offers comprehensive features for tweet and user operations, Grok integration, and supports multiple authentication methods.
agent-twitter-client-mcp
A Model Context Protocol (MCP) server that integrates with Twitter through the agent-twitter-client
package, enabling AI models to interact with Twitter without direct API access.
Features
- Authentication Options: Cookie-based authentication, username/password authentication, Twitter API credentials.
- Tweet Operations: Fetch, get, search, send tweets, create polls, like, retweet, and quote tweets.
- User Operations: Get profiles, follow users, get followers and following lists.
- Grok Integration: Chat via Twitter's interface, continue conversations by IDs, access real-time data.
Documentation
- Developer, testing, agent guides and more are available in the
docs
folder.
Quick Start
Install with npm, configure .env
with Twitter credentials, run the MCP server, and access demo scripts.
Port Configuration
Configure port using environment variables or Docker Compose.
Setup with Claude Desktop
Instructions provided for configuring Claude Desktop for MCP usage.
Authentication Methods
Support for cookie, username/password, and Twitter API authentication.
Available Tools
Includes functions like getting user tweets, profiles, sending tweets, and more.
Testing Interface
Interactive command-line interface for testing commands like health check, profile retrieval, and chatting with Grok.