twitter-mcp-server
Verified Safeby 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
node server/index.jsEnvironment 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
x-twitter-mcp-server
An MCP server for interacting with Twitter (X) via AI tools, allowing natural language commands to fetch, post, search, and manage tweets and user data.
fastchat-mcp
A Python client for integrating Language Models with Model Context Protocol (MCP) servers, allowing natural language interaction with external tools, resources, and prompts.
mcp-agent-starter-kit
A starter kit for building custom AI agents using the Model Context Protocol (MCP) to connect real-world tools with Large Language Models (LLMs).
nova-llm
A full-stack LLM agent workflow with custom tool calling capabilities and configuration with Model Context Protocol (MCP) servers, supporting multiple Gemini models.