Secure Command Executor MCP Server
@HappyAny
About Secure Command Executor MCP Server
A robust command execution service with daily log rotation, designed to securely manage and execute system commands with safety checks and logging.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"secure-command-executor-mcp-server": {
"command": "node",
"args": [
"index.js",
"--file",
"commands.json",
"--logs",
"logs",
"--port",
"3000"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Secure Command Executor MCP Server?
A robust command execution MCP service with daily log rotation, designed to securely manage and execute system commands with safety checks and logging. It is intended for developers or system administrators who need controlled, auditable command execution through the Model Context Protocol.
How to use Secure Command Executor MCP Server?
Clone the repository, install dependencies (minimist, @modelcontextprotocol/sdk, zod), configure commands.json, and start the service with node index.js --file commands.json --logs logs --port 3000. Integrate it via MCP settings by specifying the script path and arguments. Use the provided HTTP API endpoints to execute, manage, and query commands and logs.
Key features of Secure Command Executor MCP Server
- Execute system commands with optional arguments.
- Safety checks and confirmation prompts for dangerous commands.
- Add, update, remove, enable, or disable commands.
- Daily log rotation with detailed action tracking.
- Query commands and logs with filters.
Use cases of Secure Command Executor MCP Server
- Safely executing system commands through an MCP server.
- Managing a controlled set of allowed commands.
- Auditing command execution history with log rotation.
- Preventing accidental dangerous commands via confirmation prompts.
- Querying available commands and their statuses.
FAQ from Secure Command Executor MCP Server
How does the server handle dangerous commands?
Commands marked as dangerous: true trigger a warning and require explicit confirmation before execution, based on the confirmationPrompt and consequences fields defined in commands.json.
Where are logs stored and how are they rotated?
Logs are stored in the directory specified by the --logs argument (default logs). Each day’s logs are saved in a separate file named YYYY-MM-DD.json, achieving daily rotation.
How can I configure the available commands?
Modify the commands.json file to define command names, descriptions, examples, danger flags, and enabled status. Alternatively, use the /manageCommand API endpoint to add, update, or remove commands at runtime.
What dependencies are required to run the server?
The server requires Node.js and the npm packages minimist, @modelcontextprotocol/sdk, and zod. These are installed via npm install.
Can I change the port or other runtime settings?
Yes, use command-line arguments --port (default 3000), --file for commands path, and --logs for logs directory. Environment variables PORT and NODE_ENV are also supported.
Frequently asked questions
How does the server handle dangerous commands?
Commands marked as `dangerous: true` trigger a warning and require explicit confirmation before execution, based on the `confirmationPrompt` and `consequences` fields defined in `commands.json`.
Where are logs stored and how are they rotated?
Logs are stored in the directory specified by the `--logs` argument (default `logs`). Each day’s logs are saved in a separate file named `YYYY-MM-DD.json`, achieving daily rotation.
How can I configure the available commands?
Modify the `commands.json` file to define command names, descriptions, examples, danger flags, and enabled status. Alternatively, use the `/manageCommand` API endpoint to add, update, or remove commands at runtime.
What dependencies are required to run the server?
The server requires Node.js and the npm packages `minimist`, `@modelcontextprotocol/sdk`, and `zod`. These are installed via `npm install`.
Can I change the port or other runtime settings?
Yes, use command-line arguments `--port` (default 3000), `--file` for commands path, and `--logs` for logs directory. Environment variables `PORT` and `NODE_ENV` are also supported.
Basic information
More Other MCP servers
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
Awesome Mlops
visengerA curated list of references for MLOps
Comments