Back to Home
rafaljanicki icon

x-twitter-mcp-server

Verified Safe

by 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

Run Command
npx -y @smithery/cli install @rafaljanicki/x-twitter-mcp-server --client claude

Environment 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

Stats

Interest Score40
Security Score8
Cost ClassMedium
Avg Tokens7500
Stars19
Forks13
Last Update2026-01-18

Tags

TwitterXSocial MediaAI ToolsMCP