This repository provides a Model Context Protocol (MCP) server that enables AI models to interact with Twitter through the agent-twitter-client, offering features like tweet operations, user management, and Grok integration.
The agent-twitter-client-mcp
is a Model Context Protocol (MCP) server that enables AI models to interact with Twitter without direct API access. It uses the agent-twitter-client
package and offers features like cookie, username/password, and Twitter API v2 authentication.
Key functionalities include fetching, searching, and sending tweets (with text, media, and polls), as well as liking, retweeting, and quoting. It also supports user operations like getting profiles, following users, and retrieving follower/following lists. A notable feature is Grok integration, allowing AI models to chat with Grok, access web search results, and leverage real-time Twitter data.
The package provides comprehensive documentation, demo scripts, and a testing interface. It can be installed globally or locally via npm. Configuration options include environment variables and Docker Compose. It is designed for AI agents to perform Twitter actions and interact with Grok, with considerations for authentication, rate limits, and security.
ryanmac/agent-twitter-client-mcp
March 7, 2025
March 25, 2025
TypeScript