Back to Home
Ali-Hassan2 icon

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

Run Command
cd lab-2_(X_Posting_Agent)/mcp-server && npm install && node index.js

Environment 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

Stats

Interest Score0
Security Score5
Cost ClassMedium
Avg Tokens50
Stars0
Forks0
Last Update2025-12-10

Tags

MCPAI ToolX APISocial Media AutomationNode.js