twitter-mcp-secure
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Twitter MCP Server (Secure Fork)
Security-hardened fork of EnesCinr/twitter-mcp. Fixes sensitive content leakage in stderr logs.
This MCP server allows Clients to interact with X.com (Twitter).
Changes from upstream
Core fix:
console.errorno longer logs tweet content during normalpost_tweet/search_tweetsoperationsResidual fix: error handlers sanitized — log only
error.message, not the full error object (prevents API response payload leakage on errors)
Related MCP server: x-post-mcp
Security Review
A full security review identified and closed residual log-leak vectors. See PR #1 for details.
Quick Start
Get API keys from Twitter Developer Portal
Add this to Claude Desktop config:
{
"mcpServers": {
"twitter-mcp-secure": {
"command": "node",
"args": ["build/index.js"],
"env": {
"API_KEY": "your_key",
"API_SECRET_KEY": "your_key",
"ACCESS_TOKEN": "your_key",
"ACCESS_TOKEN_SECRET": "your_key"
}
}
}
}Restart Claude Desktop
Development
git clone https://github.com/MunhoLau/twitter-mcp-secure.git
cd twitter-mcp-secure
npm install && npm run build && npm startCredit
Forked from EnesCinr/twitter-mcp
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Twitter/X read-only MCP server — 12 tools: search, users, tweets, followers, timelines, trends.
FastMCP server for posting formatted content to X (Twitter) — Tollbooth-monetized, DPYC-native
Official MCP server for twitterapis.com. Read and write Twitter/X: search, users, tweets, DMs.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server for interacting with the X platform (Twitter) via MCP clients like Claude, Cursor AI, and Windsurf AI.206 npm6MIT
- AlicenseAqualityDmaintenanceA minimal MCP server for posting tweets to X (Twitter) via API v2, supporting tweet creation, replies, and quote tweets.18 npmMIT
- AlicenseAqualityAmaintenanceMCP server to read X (Twitter) posts, threads, replies, quotes, and search using your own logged-in session, no API key required.833 PyPI3MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that allows posting, deleting, and reading X (Twitter) tweets using your own browser session cookie, bypassing the official paid API. Includes tools for auth setup, tweet creation, deletion, timeline reading, and regex search.761 PyPI16MIT