Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bash MCP Serverlist all files in the current directory including hidden ones"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bash MCP Server
A Model Context Protocol (MCP) server that executes bash commands. Returns stdout, stderr, exit code, and execution duration for each command.
View on mpak registry | Built by
Install
Install with mpak:
Claude Code
Claude Desktop
Add to your claude_desktop_config.json:
See the mpak registry page for full install options.
Tools
bash_exec
Execute a bash command and return stdout, stderr, exit code, and duration.
Parameter | Type | Required | Description |
|
| Yes | The bash command to execute |
|
| No | Working directory (defaults to server's cwd) |
|
| No | Timeout in seconds (default: |
|
| No | Additional environment variables to set |
Example call:
Example response:
Security Model
This server executes arbitrary bash commands. Security is secure-by-deployment: the server itself has no allowlist or sandbox. Instead, security is enforced by the deployment environment:
mpak: User approves MTF permissions (
subprocess: "full") at install timeContainers: Linux namespaces, cgroups, and network policies restrict what commands can do
Claude Desktop: Runs under the user's own OS permissions
The MTF permission declaration (subprocess: "full", filesystem: "full", network: "full") accurately reflects that bash commands can read/write files and make network calls.
Quick Start
Local Development
The server supports HTTP transport with:
Health check:
GET /healthMCP endpoint:
POST /mcp
Development
E2E Tests
End-to-end tests validate the full MCPB bundle lifecycle: building the bundle, deploying it into a Docker container, and calling tools over HTTP.
Prerequisites: Docker running, mcpb CLI installed (npm install -g @anthropic-ai/mcpb)
The tests:
Vendor dependencies for the Docker container's Linux architecture
Build a
.mcpbbundle withmcpb packServe the bundle over HTTP
Start a
nimbletools/mcpb-pythoncontainer that downloads and runs the bundleVerify the
/healthendpoint, MCP tool listing, and tool invocation via streamable HTTP
About
Bash MCP Server is published on the mpak registry and built by NimbleBrain. mpak is an open registry for Model Context Protocol servers.
License
MIT