A simple model context protocol (MCP) server that allows Claude Desktop or other MCP aware clients to run Bash commands on your local machine.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add bash -- python -m venv .venv~/.codex/config.toml
[mcp_servers.bash]
command = "python"
args = ["-m", "venv", ".venv"]
# codex mcp add bash -- python -m venv .venv~/.cursor/mcp.json
{
"mcpServers": {
"bash": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}.vscode/mcp.json
{
"servers": {
"bash": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"bash": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"bash": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"bash": {
"command": "python",
"args": [
"-m",
"venv",
".venv"
]
}
}
}