Back to Home
Shreyas2877 icon

Troj-MCP

by Shreyas2877

Overview

A versatile Model Context Protocol (MCP) server for integrating AI models with system operations, file management, calendar, and email tools.

Installation

Run Command
docker run -d --name troj-mcp -p 8000:8000 trojan2877/troj-mcp:latest

Environment Variables

  • SERVER_HOST
  • SERVER_PORT
  • DEBUG
  • LOG_LEVEL
  • SECRET_KEY
  • JWT_ALGORITHM
  • JWT_EXPIRATION_HOURS
  • DATABASE_URL
  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • EMAIL_SERVICE_URL
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION

Security Notes

The `execute_command` function in `src/macro_man/tools/system.py` uses `subprocess.run(command, shell=True)`. While it attempts to filter dangerous commands with a blacklist, this approach is fundamentally insecure and highly prone to bypass via various shell injection techniques (e.g., command substitution, encoding, alternative syntax). This allows for arbitrary code execution. Additionally, a default `SECRET_KEY` is present, which should be updated in production.

Similar Servers

Stats

Interest Score30
Security Score2
Cost ClassLow
Stars1
Forks0
Last Update2025-11-29

Tags

MCP ServerAI AgentSystem AutomationFile ManagementCommunication