mcp-ai-agents-lab
by Ali-Hassan2
Overview
A Model Context Protocol (MCP) server providing tools for AI agents, specifically to add numbers, echo messages, and critically, post content to the X (formerly Twitter) social media platform.
Installation
cd lab-2_(X_Posting_Agent)/mcp-server && npm install && node index.jsEnvironment Variables
- X_API_KEY
- X_API_KEY_SECRET
- X_ACCESS_TOKEN
- X_ACCESS_SECRET
- GEMENI_API_KEY
- SERVER_URL
Security Notes
The server uses environment variables for sensitive X (Twitter) API credentials (`X_API_KEY`, `X_API_KEY_SECRET`, `X_ACCESS_TOKEN`, `X_ACCESS_SECRET`). However, the `x-tool.js` file explicitly logs these credentials to the console if not found, which is a critical security vulnerability as it can expose secrets in logs. Furthermore, the server uses `StreamableHTTPServerTransport`, exposing its tools over HTTP. Without additional authentication, authorization, or network access controls, this allows any client to call the sensitive X posting tool, posing a significant risk of unauthorized social media activity.
Similar Servers
inspector
A web-based client and proxy server for inspecting and interacting with Model Context Protocol (MCP) servers, allowing users to browse resources, prompts, and tools, perform requests, and debug OAuth authentication flows.
Lynkr
Lynkr is an AI orchestration layer that acts as an LLM gateway, routing language model requests to various providers (Ollama, Databricks, OpenAI, etc.). It provides an OpenAI-compatible API and enables AI-driven coding tasks via a rich set of tools and a multi-agent framework, with a strong focus on security, performance, and token efficiency. It allows AI agents to interact with a defined workspace (reading/writing files, executing shell commands, performing Git operations) and leverages long-term memory and agent learning to enhance task execution.
mcp_massive
An AI agent orchestration server, likely interacting with LLMs and managing multi-agent workflows.
ipybox
A Python code execution sandbox for AI agents to programmatically interact with MCP tools and execute code actions in a stateful, sandboxed environment.