Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
shell-exec-mcpclaude mcp add shell-exec -- npx -y shell-exec-mcp@1.2.0
{
"mcpServers": {
"shell-exec": {
"command": "npx",
"args": [
"-y",
"shell-exec-mcp@1.2.0"
]
}
}
}
shell-exec-mcpclaude mcp add shell-exec -e 'MCP_TRANSPORT=<MCP_TRANSPORT>' -- npx -y shell-exec-mcp@1.2.0
{
"mcpServers": {
"shell-exec": {
"command": "npx",
"args": [
"-y",
"shell-exec-mcp@1.2.0"
],
"env": {
"MCP_TRANSPORT": "<MCP_TRANSPORT>"
}
}
}
}
Environment variables
MCP_TRANSPORTrequired Transport type.
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
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
| Tool | Description |
|---|---|
execute | Run a bash command (with optional timeout and background mode) |
get_job_status | Check status of a background job |
Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with
npm install - Run
npm run testto run tests - Build with
npm run build
Releases
Versions follow the semantic versioning spec.
To release:
- Use
npm version <major | minor | patch>to bump the version - Run
git push --follow-tagsto push with tags - Wait for GitHub Actions to publish to the NPM registry.
Frequently asked questions
What is Shell Exec?
Execute bash commands with background job support.
How do I install Shell Exec?
It runs on your machine. In Claude Code: claude mcp add shell-exec -- npx -y shell-exec-mcp@1.2.0. For other clients, paste the JSON configuration from this page into their MCP settings.
Does Shell Exec need an API key?
Yes. It expects MCP_TRANSPORT, which you set in its configuration.
Is Shell Exec open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains Shell Exec?
It is published by domdomegg. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.