Back to Browse

Shell Exec MCP Server

Developer ToolsUse Caution4.1MCP RegistryLocal
Free

Server data from the Official MCP Registry

Execute bash commands with background job support.

About

Execute bash commands with background job support.

Security Report

4.1
Use Caution4.1High Risk

This server is a local stdio bash executor, so arbitrary command execution, file access, and environment access are inherent to its stated purpose and the HTTP transport was deliberately removed to avoid unauthenticated remote shell access. The main concerns are that the full process environment (which may contain secrets) is inherited and can be returned to the model, and that background job output buffers and job entries are unbounded and only cleared when a finished job is read. No malicious patterns, hardcoded credentials, or dependency issues were found. Supply chain analysis found 7 known vulnerabilities in dependencies (0 critical, 4 high severity). Package verification found 1 issue.

11 files analyzed · 14 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "shell-exec-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shell-exec-mcp@2.0.0"
      ]
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

shell-exec-mcp

MCP server for executing bash commands with background job support.

Use Cases

Run build commands: Execute npm run build, make, or other build tools and get the output.

File operations: Use find, grep, mv, rm, mkdir -p, stat etc. for file management.

Long-running tasks: Start servers or watch processes in background mode, check on them later.

System info: Run df -h, ps aux, env etc. to inspect the system state.

Setup

Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).

Tools

ToolDescription
executeRun a bash command (with optional timeout and background mode)
get_job_statusCheck status of a background job

Contributing

Pull requests are welcomed on GitHub! To get started:

  1. Install Git and Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm run test to run tests
  5. Build with npm run build

Releases

Versions follow the semantic versioning spec.

To release:

  1. Use npm version <major | minor | patch> to bump the version
  2. Run git push --follow-tags to push with tags
  3. Wait for GitHub Actions to publish to the NPM registry.

Reviews

No reviews yet

Be the first to review this server!