Back to Home
SahilIjaz icon

twitter-mcp-server

Verified Safe

by SahilIjaz

Overview

An AI-powered chat application that connects to a Model Context Protocol (MCP) server to execute external tools, demonstrating integration with Google GenAI and the Twitter API.

Installation

Run Command
node server/index.js

Environment Variables

  • GEMINI_API_KEY
  • TWITTER_API_KEY
  • TWITTER_API_SECRET
  • TWITTER_ACCESS_TOKEN
  • TWITTER_ACCESS_TOKEN_SECRET

Security Notes

API keys for Google GenAI and Twitter are correctly managed using environment variables via dotenv. Server-side input validation for tool arguments is implemented with Zod. The primary security risk is the potential for the AI model to generate undesirable or malicious tool calls, especially for actions with external side effects like posting to Twitter. Session management for SSE connections, while likely relying on UUIDs from the SDK, could benefit from explicit authentication mechanisms for production environments.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-03

Tags

AILLMToolingTwitterNode.js