Bash MCP (Master Control Program)Server

yannbam
GitHub
bashcommand executionTypeScript

Loading subscription status...

💡 Description

A TypeScript application that allows Claude to execute bash commands securely with safety measures.

📝 JSON Entries

{
  "mcpServers": [
    {
      "Bash MCP": {
        "env": {},
        "args": [
          "install",
          "&&",
          "npm",
          "run",
          "build"
        ],
        "command": "npm"
      }
    }
  ]
}

🛠️ Tools

npm

Features

  • Execute bash commands in a controlled environment
  • Support for both stateful and stateless command execution
  • Whitelisting of commands and directories
  • Command validation and output sanitization
  • Session management for interactive commands

💬 Example Queries

  • List all files in the current directory
  • What is the current working directory?
  • Show the contents of the '/home/user' directory