
twitter_bot
A Twitter bot built using the Twitter API v2 and Model Context Protocol (MCP).
Repository Info
About This Server
A Twitter bot built using the Twitter API v2 and Model Context Protocol (MCP).
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Twitter Bot
A Twitter bot built using the Twitter API v2 and Model Context Protocol (MCP).
Features
- Post tweets
- Search recent tweets from specific users
- MCP server integration for AI model interaction
Prerequisites
- Node.js (v14 or higher)
- Twitter API v2 access token
- npm or yarn
Setup
- Clone the repository:
git clone <your-repo-url>
cd <repo-name>
- Install dependencies:
npm install
- Create a
.envfile in the root directory with your Twitter API credentials:
BEARER_TOKEN=your_twitter_bearer_token
- Start the server:
npm start
Project Structure
index.ts- Main server file with MCP configurationtools/- Directory containing Twitter API toolspostTweet.ts- Tweet posting functionalityrecentSearch.ts- Recent tweet search functionality
Usage
The bot provides two main tools:
post_tweet- Post a new tweetget_tweets- Search recent tweets from a specific user
License
MIT
Quick Start
Clone the repository
git clone https://github.com/mohankrishna213/twitter_botInstall dependencies
cd twitter_bot
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.