x-twitter-mcp-server
Verified Safeby rafaljanicki
Overview
An MCP server for interacting with Twitter (X) via AI tools, allowing natural language commands to fetch, post, search, and manage tweets and user data.
Installation
npx -y @smithery/cli install @rafaljanicki/x-twitter-mcp-server --client claudeEnvironment Variables
- TWITTER_API_KEY
- TWITTER_API_SECRET
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_TOKEN_SECRET
- TWITTER_BEARER_TOKEN
- PORT
Security Notes
The server uses environment variables for all Twitter API credentials, which is good practice. It explicitly uses Twitter API v2 with proper authentication, avoiding insecure username/password methods. In-memory rate limiting is implemented to prevent API abuse. The SmitheryConfigMiddleware decodes base64-encoded credentials from URL query parameters and sets them as environment variables, which relies on the security of the transport layer and the handling of URLs by clients (e.g., logging). The CORS configuration allows all origins (`allow_origins=["*"]`), which is broad but common for local/private MCP deployments. No 'eval' or obvious malicious patterns were found.
Similar Servers
xiaohongshu-mcp
Automate content creation, publishing, and interaction (search, detail, comment, like, favorite) on the Xiaohongshu platform via Model Context Protocol (MCP) and HTTP APIs, primarily for AI agent integration.
mcp-discord
Enables AI assistants to interact with the Discord platform by providing a set of Discord-related functionalities via the Model Context Protocol (MCP).
reddit-mcp-server
Provides tools for fetching and creating Reddit content through a Model Context Protocol (MCP) server.
atproto-mcp
Provides LLMs with direct access to the AT Protocol ecosystem, enabling seamless interaction with Bluesky and other AT Protocol-based social networks.