Twitter Mcp Js
@yolleygit
About Twitter Mcp Js
A complete Twitter API MCP server implementation based on the API endpoints provided by twitterapi.io.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"twitter-mcp-server": {
"command": "npx",
"args": [
"twitter-mcp-js"
],
"env": {
"TWITTER_API_KEY": "your_api_key_here"
},
"description": "Twitter MCP Server - Complete Twitter API integration with 32 tools for social media automation and analytics"
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Twitter Mcp Js?
A complete Model Context Protocol (MCP) server for the Twitter API, built on endpoints provided by twitterapi.io. It offers 32 tools for reading user data, tweets, communities, trends, and performing actions like posting, liking, following, and messaging.
How to use Twitter Mcp Js?
After cloning the repository and installing dependencies, configure your TWITTER_API_KEY in a .env file. Start the server with npm run dev (development) or npm start (production). Integrate the server with an MCP client using either a local Node.js command or the npx command, both requiring the API key as an environment variable.
Key features of Twitter Mcp Js
- 32 tools covering user, tweet, community, trend, and action endpoints
- Get user info, tweets, followers, followings, and mentions
- Batch retrieve user data and check follow relationships
- Search tweets with advanced queries
- Create, delete, retweet, like, and unlike tweets
- Send direct messages and manage follows
- Community management: create, delete, join, leave, get info/members
- Fetch trending topics and account info
Use cases of Twitter Mcp Js
- Automate Twitter content posting and engagement (like, retweet, follow)
- Monitor user activity, tweets, and mentions for social listening
- Manage community membership and retrieve community data
- Analyze trends and perform advanced tweet searches
- Build AI agents that interact with Twitter through MCP
FAQ from Twitter Mcp Js
What API key does Twitter Mcp Js require?
It requires a TWITTER_API_KEY obtained from twitterapi.io.
How do I run the server locally?
Install dependencies, configure the .env file with your API key, then run npm run dev for development or npm start for production.
How do I configure an MCP client to use this server?
Use the provided JSON configurations: for local development set command to node with the path to src/index.js; for remote use set command to npx with twitter-mcp-js. Both require the TWITTER_API_KEY environment variable.
What actions can the server perform besides reading data?
It supports creating and deleting tweets, retweeting, liking/unliking, following/unfollowing, sending DMs, and creating/deleting/joining/leaving communities.
Does the server include error handling?
Yes, it has comprehensive error handling for API request errors, parameter validation errors, network connection errors, and authentication errors.
Frequently asked questions
What API key does Twitter Mcp Js require?
It requires a `TWITTER_API_KEY` obtained from twitterapi.io.
How do I run the server locally?
Install dependencies, configure the `.env` file with your API key, then run `npm run dev` for development or `npm start` for production.
How do I configure an MCP client to use this server?
Use the provided JSON configurations: for local development set `command` to `node` with the path to `src/index.js`; for remote use set `command` to `npx` with `twitter-mcp-js`. Both require the `TWITTER_API_KEY` environment variable.
What actions can the server perform besides reading data?
It supports creating and deleting tweets, retweeting, liking/unliking, following/unfollowing, sending DMs, and creating/deleting/joining/leaving communities.
Does the server include error handling?
Yes, it has comprehensive error handling for API request errors, parameter validation errors, network connection errors, and authentication errors.
Basic information
More Other MCP servers
ghidraMCP
LaurieWiredMCP Server for Ghidra
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Comments