x-mcp-server
x-mcp-server is an enhanced Model Context Protocol (MCP) server for X (formerly Twitter), extended from the implementation by the original author @enescinar. It enables MCP-compatible clients (such as Claude Desktop and Claude Code) to directly post tweets (optionally with media such as images and GIFs), search tweets, and delete tweets. The project supports both OAuth 1.0a and OAuth 2.0 authentication and automatically selects the appropriate X API version based on the authentication type: tweet operations use the v2 API, OAuth 1.0a media uploads use the v1.1 endpoint, and OAuth 2.0 media uploads use the v2 endpoint; tweet deletion can fall back to v1.1 when v2 fails (available only with OAuth 1.0a). The code is written in TypeScript and uses Zod for type validation, with built-in protection against X API rate limits. Before use, you need an X developer account, an app created in the developer portal with read and write permissions and a callback URL configured, and a Node.js 18+ environment.