AgentStack
MCP verified MIT Self-run

Twitter Ai Agent

mcp-adarshpheonix2810-twitter-ai-agent Β· by adarshpheonix2810

πŸ€– AI Twitter Agent - A Node.js app using Google's Gemini AI to post tweets via natural language. Demonstrates AI + Twitter API integration for intelligent social media automation. Built for developers interested in AI and API development.

β€” No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add mcp-adarshpheonix2810-twitter-ai-agent

βœ“ scanned Β· βœ“ verified β€” works with Claude Code, Cursor, and more.

Security review

βœ“ Passed

No issues found. Passed automated security review. Β· v0.1.0 How review works β†’

  • βœ“ Prompt-injection patterns
  • βœ“ Secret / credential exfiltration
  • βœ“ Dangerous shell & filesystem operations
  • βœ“ Untrusted network calls
  • βœ“ Known-malicious package signatures

What it can access

  • βœ“ Network access No
  • βœ“ Filesystem access No
  • βœ“ Shell / process execution No
  • ● Environment & secrets Used
  • βœ“ Dynamic code execution No

From automated source analysis of v0.1.0. β€œUsed” means the capability is present in the source β€” more access means more to trust, not that it’s unsafe.

Are you the author of Twitter Ai Agent? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Twitter Ai Agent with Gemini Integration πŸ€–

[](https://opensource.org/licenses/MIT)

An intelligent Twitter (X) agent powered by Google's Gemini AI that allows you to post tweets using natural language commands. This project demonstrates the integration of AI with social media APIs to create powerful automation tools.

✨ Features

  • Natural Language Processing: Post tweets using everyday language
  • AI-Powered: Leverages Google's Gemini 2.0 Flash model
  • Real-time Interaction: Command-line interface for seamless interaction
  • Secure: Environment-based configuration for sensitive credentials
  • Extensible: Built with a modular architecture for easy expansion

πŸ› οΈ Tech Stack

  • Backend: Node.js, Express
  • AI: Google Gemini 2.0 Flash
  • APIs: Twitter API v2
  • Protocol: Model Context Protocol (MCP)
  • Authentication: OAuth 1.0a

πŸ“¦ Prerequisites

  • Node.js (v16+)
  • npm or yarn
  • Twitter Developer Account
  • Google Cloud Project with Gemini API enabled

Installation

  1. Clone the repository

``bash git clone https://github.com/adarshpheonix2810/Twitter-Ai-Agent.git cd Twitter-Ai-Agent ``

  1. Install dependencies

```bash # Install server dependencies cd server npm install

# Install client dependencies cd ../client npm install ```

  1. Set up environment variables

Create a .env file in both client and server directories:

client/.env `` GEMINI_API_KEY=your_gemini_api_key_here ``

server/.env `` TWITTER_API_KEY=your_twitter_api_key TWITTER_API_SECRET=your_twitter_api_secret TWITTER_ACCESS_TOKEN=your_twitter_access_token TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_token_secret ``

πŸƒβ€β™‚οΈ Running the Application

  1. Start the server

``bash cd server node index.js ``

  1. In a new terminal, start the client

``bash cd client node index.js ``

  1. Start interacting!

Type your message in the command line, for example: `` Post a tweet saying "Hello from my new AI Twitter agent! #AI #TwitterBot" ``

πŸ› οΈ Project Structure

twitter-ai-agent/
β”œβ”€β”€ client/                   # Client application
β”‚   β”œβ”€β”€ index.js             # Main client file
β”‚   β”œβ”€β”€ package.json         # Client dependencies
β”‚   └── .env                 # Client environment variables
β”œβ”€β”€ server/                  # Server application
β”‚   β”œβ”€β”€ index.js             # Main server file
β”‚   β”œβ”€β”€ twittertool.js       # Twitter API integration
β”‚   β”œβ”€β”€ package.json         # Server dependencies
β”‚   └── .env                 # Server environment variables
β”œβ”€β”€ .gitignore              # Git ignore file
└── README.md               # This file

πŸ”’ Security Considerations

  • Never commit your .env files
  • Keep your API keys secure
  • Use environment variables for all sensitive information
  • Consider implementing user authentication for production use

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

Distributed under the MIT License. See LICENSE for more information.

πŸ“§ Contact

Your Name - Adarsh Singh

Project Link: https://github.com/adarshpheonix2810/twitter-ai-agent

πŸ™ Acknowledgments

🌟 Show your support

Give a ⭐️ if this project helped you!


Made with ❀️ by Adarsh Singh

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source β€” we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet β€” be the first.

Versions

  • v0.1.0 Imported from the upstream source.