claude-mcp-server
by mbarki-abd
Overview
A server for orchestrating multiple AI agents (e.g., Claude) to manage projects, tasks, filesystem access, and inter-agent communication, featuring real-time dashboard monitoring.
Installation
npm startEnvironment Variables
- MCP_API_KEY
- ENCRYPTION_KEY
- DB_NAME
- DB_USER
- DB_PASSWORD
- MASTER_API_KEY
- MASTER_SHARED_SECRET
- CLAUDE_CLI_PATH
Security Notes
- **Critical: Command Injection Vulnerability**: The `agent-provisioner.ts` service's `generateBootstrapScript` concatenates `additionalTools` directly into a shell script without proper escaping, leading to a command injection vulnerability during agent provisioning. - **High: API Key Exposure**: The `/lina/key` endpoint exposes the master API key and relies solely on path obscurity for security, making it vulnerable to discovery. - **High: Privilege Escalation Risk**: Multiple powerful MCP tools (e.g., `create_agent`, `delete_agent`, `create_agent_token`) are exposed via the `/mcp` endpoint. The `handleToolCall` in `mcp.ts` does not consistently and explicitly verify master token or granular permissions, potentially allowing non-master agents to execute privileged actions. The `api-agents.ts` route for agent creation has checks, but the MCP tool handler might bypass them. - **Medium: Default Credentials**: In development mode, default API keys and encryption keys are used. While `requireEnv` is used for production, these defaults pose a significant risk if deployed incorrectly. - **Medium: `su` Command Usage**: Services like `agent-manager.ts` and `agent-provisioner.ts` heavily rely on `su` to execute commands as specific Unix users, requiring root privileges for the server. Any flaw in command construction or user input sanitization could lead to full system compromise.
Similar Servers
claude-flow
AI Agent Orchestration and Development Platform for Claude Code
zen-mcp-server
A server for coordinating and managing AI agents, likely for simulations or complex task execution, leveraging Claude LLMs.
vibe-check-mcp-server
Provides metacognitive oversight and self-improvement capabilities for AI agents using Chain-Pattern Interrupts (CPI) to prevent reasoning lock-in and over-engineering.
mcp_massive
An AI agent orchestration server, likely interacting with LLMs and managing multi-agent workflows.