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
- Clonar este repositorio
- Instalar dependencias:
- Crea un archivo
.env
en el directorio raíz con tus credenciales de Twitter:
Uso
Ejecución del servidor
Puede ejecutar el servidor utilizando las herramientas CLI de FastMCP:
Usando las herramientas
obtenerTweet
Recupera un tweet por su ID.
Parámetros:
tweetId
(cadena): el ID del tweet a recuperar
Ejemplo:
enviarTweet
Publica un nuevo tweet en Twitter.
Parámetros:
text
(cadena): El contenido de texto del tweet a enviar
Ejemplo:
Desarrollo
Este servidor está construido utilizando:
- FastMCP : un marco de TypeScript para crear servidores MCP
- agent-twitter-client : una biblioteca de clientes de Twitter
Para construir el código TypeScript:
Licencia
Instituto Tecnológico de Massachusetts (MIT)
This server cannot be installed
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.
Related Resources
Related MCP Servers
- -securityAlicense-qualityEnables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.Last updated -25318TypeScriptMIT License
- -securityFlicense-qualityProvides 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 -511JavaScript
- -securityAlicense-qualityA Model Context Protocol server that enables AI agents to interact with Twitter without direct API access, supporting tweet operations, user interactions, and Grok AI integration.Last updated -1513TypeScriptMIT License
- -securityFlicense-qualityA Python-based tool that streamlines social media tasks by enabling users to post tweets, track username changes, fetch recent tweets, and send direct messages on Twitter.Last updated -Python