Skip to main content
Glama
X(Twitter) MCP Server

X(Twitter) MCP Server

by vidhupv

Servidor MCP de X(Twitter)

insignia de herrería

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 claude

Instalación manual

  1. Clonar el repositorio:

git clone https://github.com/yourusername/x-mcp.git
  1. Instalar UV globalmente usando Homebrew en la Terminal:

brew install uv
  1. Crear claude_desktop_config.json:

    • Para MacOS: Abra el directorio ~/Library/Application Support/Claude/ y cree el archivo dentro de él

    • Para Windows: Abra el directorio %APPDATA%/Claude/ y cree el archivo dentro de él

  2. 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"
      }
    }
  }
}
  1. Obtén tus credenciales de API de X/Twitter:

    • Ir al portal para desarrolladores de X API

    • 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 en http://example.com/

    • Generar y copiar todas las claves y tokens desde la sección Claves y tokens

  2. Actualice el archivo de configuración:

    • Reemplace /path/to/x-mcp con su ruta de repositorio actual

    • Agregue sus credenciales de API de X/Twitter

  3. 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 uv y vuelva a instalarlo con brew install uv )

  • O busque la ruta UV con which uv y reemplace "command": "uv" con la ruta completa

  • Verifique 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 tools
create_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

    B3.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      An MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.
      3
      503 npm
      411
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP 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.
      13
      MIT