command-executor MCP Server
@MCP-Mirror
About command-executor MCP Server
Mirror of
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
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 command-executor MCP Server?
A Model Context Protocol server for executing pre-approved commands securely. It allows AI assistants (like Claude) to run whitelisted system commands through a controlled interface, preventing arbitrary command execution while enabling useful operations.
How to use command-executor MCP Server?
Install with npm install, then build with npm run build. Configure by setting the ALLOWED_COMMANDS environment variable to a comma-separated list of allowed commands. For use with Claude Desktop, add the path to the built index.js in the MCP server configuration file. The server exposes a single tool execute_command that takes a command string parameter.
Key features of command-executor MCP Server
- Secure command execution via a pre-approved command list
- Configurable allowed commands through environment variables
- Built with TypeScript and the MCP SDK
- Communication over stdio for seamless integration
- Error handling and security validations
- Real-time command output streaming
Use cases of command-executor MCP Server
- Allowing an AI assistant to run
git statusorlsto inspect a project - Enabling safe execution of
npm installorpythoncommands under AI guidance - Providing controlled command-line access without exposing a full shell
FAQ from command-executor MCP Server
How do I customize which commands are allowed?
Set the ALLOWED_COMMANDS environment variable to a comma-separated list, e.g., export ALLOWED_COMMANDS=git,ls,mkdir,python.
What commands are allowed by default?
The default allowed commands are git, ls, mkdir, cd, npm, npx, and python.
What are the runtime requirements?
The server requires Node.js and npm for installation and building. It is written in TypeScript and runs as a compiled JavaScript file.
How is security enforced?
Only explicitly allowed commands can be executed. Commands are validated by prefix to prevent injection, and shell execution is avoided. Environment variables are sanitized, and failed commands do not crash the server.
How do I debug the server?
Use the MCP Inspector tool by running npm run inspector in the project directory. This provides a URL for browser-based debugging of stdio communication.
More Other MCP servers
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
Blender
ahujasidOpen-source MCP to use Blender with any LLM
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Servers
modelcontextprotocolModel Context Protocol Servers
Comments