X(Twitter) MCP Server
Servidor MCP de X(Twitter)
Un servidor MCP para crear, administrar y publicar publicaciones de X/Twitter directamente a través del chat de Claude.
Configuración rápida
Instalación mediante herrería
Para instalar X(Twitter) MCP Server para Claude Desktop automáticamente a través de Smithery :
npx -y @smithery/cli install x-mcp --client claudeInstalación manual
Clonar el repositorio:
git clone https://github.com/yourusername/x-mcp.gitInstalar UV globalmente usando Homebrew en la Terminal:
brew install uvCrear claude_desktop_config.json:
Para MacOS: Abra el directorio
~/Library/Application Support/Claude/y cree el archivo dentro de élPara Windows: Abra el directorio
%APPDATA%/Claude/y cree el archivo dentro de él
Agregue esta configuración a claude_desktop_config.json:
{
"mcpServers": {
"x_mcp": {
"command": "uv",
"args": [
"--directory",
"/path/to/x-mcp",
"run",
"x-mcp"
],
"env": {
"TWITTER_API_KEY": "your_api_key",
"TWITTER_API_SECRET": "your_api_secret",
"TWITTER_ACCESS_TOKEN": "your_access_token",
"TWITTER_ACCESS_TOKEN_SECRET": "your_access_token_secret"
}
}
}
}Obtén tus credenciales de API de X/Twitter:
Crear un proyecto
En Configuración de autenticación de usuario: configure con permisos de lectura y escritura, tipo de aplicación web
Establezca la URL de devolución de llamada en
http://localhost/y la URL del sitio web enhttp://example.com/Generar y copiar todas las claves y tokens desde la sección Claves y tokens
Actualice el archivo de configuración:
Reemplace
/path/to/x-mcpcon su ruta de repositorio actualAgregue sus credenciales de API de X/Twitter
Salga de Claude por completo y vuelva a abrirlo.
Related MCP server: thread-storm
Ejemplos de uso
"Tuitea '¡Acabo de aprender a tuitear con IA! ¡Qué maravilla! 🤖✨'"
"Crea un hilo sobre la historia de la pizza"
"Muéstrame mis borradores de tweets"
"¡Publica este borrador!"
"Eliminar ese borrador"
Solución de problemas
Si no funciona:
Asegúrese de que UV esté instalado globalmente (si no, desinstálelo con
pip uninstall uvy vuelva a instalarlo conbrew install uv)O busque la ruta UV con
which uvy reemplace"command": "uv"con la ruta completaVerifique que todas las credenciales de X/Twitter sean correctas
Comprueba si la ruta x-mcp en la configuración coincide con la ubicación real de tu repositorio
Available Tools
5 toolscreate_draft_threadC
Create a draft tweet thread
Inputs: contents (required).
create_draft_tweetC
Create a draft tweet
Inputs: content (required).
delete_draftC
Delete a draft tweet or thread
Inputs: draft_id (required).
list_draftsB
List all draft tweets and threads
Inputs: no named parameters.
publish_draftC
Publish a draft tweet or thread
Inputs: draft_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Every tool has a clearly distinct purpose with no ambiguity. Tools are clearly separated by action (create, delete, list, publish) and target (draft tweet vs. draft thread where specified), making misselection unlikely.
All tools follow a consistent verb_noun pattern (e.g., create_draft_thread, list_drafts). The naming is predictable and readable throughout the set, with no deviations in style.
With 5 tools, the count is well-scoped for managing draft tweets and threads. Each tool earns its place, covering essential operations without bloat or thinness for this focused domain.
The toolset provides complete CRUD/lifecycle coverage for drafts (create, list, delete, publish), with minor gaps such as the inability to edit or update existing drafts, but agents can work around this by recreating drafts.
Maintenance
Related MCP Connectors
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted X Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
PostHero MCP server — schedule and publish social media posts from any MCP-compatible AI tool
Hosted MCP server for AI agents to post to LinkedIn profiles and X and upload to YouTube.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.3503 npm411MIT
- AlicenseAqualityDmaintenanceMCP server for publishing threads to Threads and Twitter/X simultaneously from Claude Code. Journal your thoughts, convert them to viral threads, and post everywhere at once.13MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables Claude to automate Twitter posting with AI-generated images and thread support.9 npmMIT
- AlicenseAqualityDmaintenanceA local MCP server that lets Claude post to social media via upload-post.com — text, photos, and videos across 13 platforms.17MIT