Model Context Protocol server that exposes a single run_command tool allowing LLMs to execute arbitrary shell commands via MCP.
https://github.com/g0t4/mcp-server-commandsStop copying and pasting commands between your AI chat and terminal. This MCP server gives Claude, Groq, and other LLMs direct access to execute shell commands on your system—with full stdin/stdout control.
Your AI assistant knows exactly what commands to run, but you're stuck playing messenger between the chat interface and your terminal. You ask for help debugging a server issue, get a perfect systemctl command, then manually copy-paste it to see the output. Then paste the output back to get the next command. It's 2024—this workflow is ridiculous.
With mcp-server-commands, your AI can:
ls -la, grep -r "TODO" ., docker ps, git status—whatever you needcat, pipe data between commandsSystem Debugging: "Check why my Docker container keeps crashing"
docker ps -a, sees the container statusdocker logs <container_id>, analyzes the errorsdocker inspect <container_id> for configuration issuesDevelopment Tasks: "Set up a new React project with TypeScript"
npx create-react-app my-app --template typescriptnpm install @types/nodecat with stdinnpm startLog Analysis: "Find all 404 errors in the last hour"
find /var/log -name "*.log" -mmin -60grep "404" /path/to/access.logInstall via npm:
npx mcp-server-commands
Add to your Claude Desktop config:
{
"mcpServers": {
"mcp-server-commands": {
"command": "npx",
"args": ["mcp-server-commands"]
}
}
}
That's it. Your AI now has terminal access.
The server includes sensible safety controls:
The stdin parameter unlocks advanced workflows:
# AI can write and execute scripts
echo "#!/bin/bash\necho 'Hello World'" | bash
# Create files directly from conversation
cat > config.json << EOF
{
"database": {
"host": "localhost",
"port": 5432
}
}
EOF
# Pass code to interpreters
python3 << EOF
import json
data = {"name": "test"}
print(json.dumps(data, indent=2))
EOF
Instead of being a command-suggestion engine, your AI becomes a capable system administrator and development partner. It can actually diagnose issues, implement solutions, and verify results—all while keeping you in control of what executes.
Your terminal becomes collaborative. Finally.
Install now: npx mcp-server-commands