shell-command-mcp
The shell-command-mcp is an MCP server designed for executing shell commands. It operates in a Node.js environment and is implemented in TypeScript. A key feature is the use of the ALLOWED_COMMANDS environment variable, which allows you to control which commands can be executed, enhancing security by restricting execution to specific commands. It can be easily launched from the command line and is capable of integration with applications like ChatWise.
GitHub Stars
39
User Rating
Not Rated
Forks
2
Issues
1
Views
1
Favorites
0
shell-command-mcp
MCP server for executing shell commands.
This project is sponsored by ChatWise, an all-in-one LLM chatbot with first-class MCP support.
Usage
Configure manually
# stdio server
npx -y shell-command-mcp
JSON config
{
"mcpServers": {
"shell-command": {
"command": "npx",
"args": ["-y", "shell-command-mcp"],
"env": {
"ALLOWED_COMMANDS": "cat,ls,echo"
}
}
}
}
Allowed commands
Use ALLOWED_COMMANDS
environment variable to explictly allow the commands that this server can run, separate each command by ,
. You can use *
to allow any command, but this is potentially dangerous.
License
MIT.