Skip to main content
Glama

Twitter MCP Server

by takiAA

Servidor MCP de Twitter

Un servidor MCP (Protocolo de contexto de modelo) que proporciona herramientas para interactuar con Twitter utilizando la biblioteca agente-twitter-cliente.

Características

  • getTweet : recupera un tweet por su ID
  • sendTweet : Publica un nuevo tweet en Twitter

Prerrequisitos

  • Node.js (v14 o superior)
  • npm o hilo
  • Credenciales de la cuenta de Twitter

Instalación

  1. Clonar este repositorio
  2. Instalar dependencias:
npm install # or yarn install
  1. Crea un archivo .env en el directorio raíz con tus credenciales de Twitter:
TWITTER_USERNAME=your_twitter_username TWITTER_PASSWORD=your_twitter_password TWITTER_EMAIL=your_email@example.com (optional) TWITTER_2FA_SECRET=your_2fa_secret (optional) # Optional API credentials (used as fallback) TWITTER_API_KEY=your_api_key TWITTER_API_SECRET_KEY=your_api_secret_key TWITTER_ACCESS_TOKEN=your_access_token TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret

Uso

Ejecución del servidor

Puede ejecutar el servidor utilizando las herramientas CLI de FastMCP:

# For development and testing in the terminal npx fastmcp dev # For visual inspection with the MCP Inspector npx fastmcp inspect

Usando las herramientas

obtenerTweet

Recupera un tweet por su ID.

Parámetros:

  • tweetId (cadena): el ID del tweet a recuperar

Ejemplo:

getTweet({"tweetId": "1734609533274853865"})
enviarTweet

Publica un nuevo tweet en Twitter.

Parámetros:

  • text (cadena): El contenido de texto del tweet a enviar

Ejemplo:

sendTweet({"text": "Hello World from MCP!"})

Desarrollo

Este servidor está construido utilizando:

Para construir el código TypeScript:

npx tsc

Licencia

Instituto Tecnológico de Massachusetts (MIT)

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Proporciona herramientas para interactuar con Twitter para recuperar tweets por ID y publicar nuevos tweets utilizando la biblioteca agent-twitter-client.

  1. Características
    1. Prerrequisitos
      1. Instalación
        1. Uso
          1. Ejecución del servidor
          2. Usando las herramientas
        2. Desarrollo
          1. Licencia

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              Server for X (Twitter) integration that provides tools for reading your timeline and engaging with tweets. Designed for use with Claude desktop.
              Last updated -
              3
              8
              9
              JavaScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              Enables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.
              Last updated -
              25
              212
              15
              TypeScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              Provides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.
              Last updated -
              4
              1
              JavaScript
              • Apple
            • -
              security
              A
              license
              -
              quality
              Allows Claude and other MCP-compatible AI models to access TweetBinder by Audiense analytics data, enabling analysis of hashtags, users, and conversations on Twitter/X with engagement metrics, sentiment analysis, and report generation.
              Last updated -
              1
              TypeScript
              Apache 2.0
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/takiAA/twitter-scraper-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server