Shell Exec MCP
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., "@Shell Exec MCPrun 'find . -name *.log' to list all log files"
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.
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
claude mcp add shell-exec-mcp -- npx -y shell-exec-mcpOr with HTTP transport:
# Start the server
MCP_TRANSPORT=http PORT=3000 npx -y shell-exec-mcp
# Add to Claude
claude mcp add --transport http shell-exec-mcp http://localhost:3000/mcpTools
Tool | Description |
| Run a bash command (with optional timeout and background mode) |
| 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 installRun
npm run testto run testsBuild with
npm run build
Releases
Versions follow the semantic versioning spec.
To release:
Use
npm version <major | minor | patch>to bump the versionRun
git push --follow-tagsto push with tagsWait for GitHub Actions to publish to the NPM registry.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/domdomegg/shell-exec-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server