Twitter MCP Server
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
Related MCP server: Twitter MCP Server
Prerrequisitos
Node.js (v14 o superior)
npm o hilo
Credenciales de la cuenta de Twitter
Instalación
Clonar este repositorio
Instalar dependencias:
npm install
# or
yarn installCrea un archivo
.enven 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_secretUso
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 inspectUsando 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:
FastMCP : un marco de TypeScript para crear servidores MCP
agent-twitter-client : una biblioteca de clientes de Twitter
Para construir el código TypeScript:
npx tscLicencia
Instituto Tecnológico de Massachusetts (MIT)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides 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.2020MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLM agents to interact with Twitter (X) for searching tweets, posting content with images, analyzing engagement, and extracting topics using the Twitter API.
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Twitter/X through Playwright browser automation without requiring an official API key. It provides tools for posting content, searching tweets, reading feeds, and managing social interactions like follows and likes.2MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents and coding assistants with Twitter data access including tweets, user profiles, followers, and search functionality.MIT
Related MCP Connectors
X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
Discover, search, invoke, and rate A2A (Agent-to-Agent) protocol agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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