mcp-server-commands
An MCP server to run arbitrary commands
The MCP server features a tool called `runProcess`, which enables users to execute commands in two distinct modes: `executable` and `shell`. In `executable` mode, users provide an executable file along with its arguments, while in `shell` mode, users can input command lines as if they were typing directly into a shell. This clear distinction helps avoid ambiguity in command execution, ensuring that users know exactly how their commands will be processed. Additionally, the server supports passing input through `stdin`, allowing for more complex interactions such as scripting or file creation. The tool has been tested with various models, including Claude Sonnet 3.5 and gptoss-120b, demonstrating its reliability and effectiveness in handling command execution without issues. Users are advised to exercise caution when running commands to maintain security.
Compatible with
Install
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-server-commands": {
"args": [
"-y",
"@agent-infra/mcp-server-commands"
],
"command": "npx"
}
}
}Config File Location
Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
Some servers require additional setup - check the GitHub README for specific instructions.
Permissions