Overview
Shell MCP Server is a Model Context Protocol server designed to allow Large Language Models (LLMs) to execute shell commands and retrieve outputs securely.
You can use Shell MCP Server by running it directly with uvx or installing it via pip. After installation, configure it for your development environment to execute commands.
- Executes shell commands and returns the output. - Provides command results including stdout, stderr, and return code. - Configurable to work with different applications like Claude and Zed.
- Automating command execution in development environments.
- Integrating shell command capabilities into AI applications.
- Safely managing system commands from LLM interactions.
Add to your AI client
Use these steps to connect Shell MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"odysseus0-mcp-server-shell-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-odysseus0-mcp-server-shell-mcp-mirror"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"odysseus0-mcp-server-shell-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-odysseus0-mcp-server-shell-mcp-mirror"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"odysseus0-mcp-server-shell-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-odysseus0-mcp-server-shell-mcp-mirror"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"odysseus0-mcp-server-shell-mcp-mirror": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-odysseus0-mcp-server-shell-mcp-mirror"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"odysseus0-mcp-server-shell-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-odysseus0-mcp-server-shell-mcp-mirror"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"odysseus0-mcp-server-shell-mcp-mirror": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-odysseus0-mcp-server-shell-mcp-mirror"
]
}
}
}FAQ
Is this server safe to use?
⚠️ Use with caution as it executes shell commands directly. Implement security measures to prevent unauthorized access.
How can I install the Shell MCP Server?
Install via pip with `pip install mcp-server-shell` or run directly using `uvx` without installation.
Can I contribute to the project?
Yes! Contributions are welcome to enhance the server and improve functionality.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":599,"uuid":"178bcc08-0335-493a-bc94-b7992298f502","name":"odysseus0_mcp-server-shell","title":"Shell MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:23:55.355+00:00","updated_at":"2025-01-05T02:54:30.209+00:00","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"shell-command,mcp-server,command-execution","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/odysseus0_mcp-server-shell","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]