Pandora's Shell
β οΈ IMPORTANT SECURITY WARNING: This MCP server grants AI assistants unrestricted ability to execute terminal commands on your system. Only use in controlled environments like virtual machines (VMs) or development systems you can afford to rebuild.
About
An MCP server that empowers AI assistants to execute terminal commands on your system. Due to the unrestricted access this provides, it's crucial to use this software responsibly and be fully aware of the security risks involved.
Note: This server is compatible with any AI assistant that supports the Model Context Protocol (MCP). The provided configuration and setup instructions are specifically tailored for Claude Desktop, which offers comprehensive support for all MCP features.
Features
- Execute any shell command with full system access
- Capture command output (stdout/stderr)
- Set working directory
- Handle command timeouts
API
Tools
- execute_command
- Execute any shell command and return its output
- Inputs:
command
(string): Command to executedirectory
(string, optional): Working directory
- Returns:
- Command exit code
- Standard output
- Standard error
- Features:
- 5-minute timeout
- Working directory support
- Error handling
Installation
Prerequisites
- Claude Desktop with an active Claude Pro/Enterprise subscription
- Download from: Claude AI
- Python 3.10 or higher
- Git
- uv (required for package management)
Windows Installation
-
Install Prerequisites:
# Using winget: winget install python git
-
Install uv (run PowerShell as administrator):
irm https://astral.sh/uv/install.ps1 | iex [Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$HOME\.local\bin", "User")
-
Clone and set up the project:
git clone https://github.com/Zelaron/Pandoras-Shell.git cd Pandoras-Shell python -m venv venv venv\Scripts\activate
-
Install dependencies:
uv pip install mcp pip install -e .
macOS Installation
-
Install Prerequisites:
brew install python git uv
-
Clone and set up the project:
git clone https://github.com/Zelaron/Pandoras-Shell.git cd Pandoras-Shell python -m venv venv source venv/bin/activate
-
Install dependencies:
uv pip install mcp pip install -e .
Configuration
Windows
Locate the correct configuration directory - try these paths in order:
%APPDATA%\Claude\
(typicallyC:\Users\[YourUsername]\AppData\Roaming\Claude\
)%LOCALAPPDATA%\AnthropicClaude\
(typicallyC:\Users\[YourUsername]\AppData\Local\AnthropicClaude\
)
Create or edit claude_desktop_config.json
in the correct directory:
{
"mcpServers": {
"pandoras-shell": {
"command": "python",
"args": [
"C:/path/to/cloned/Pandoras-Shell/src/pandoras_shell/executor.py"
],
"env": {
"PYTHONPATH": "C:/path/to/cloned/Pandoras-Shell/src"
}
}
}
}
Important Notes for Windows:
- Use forward slashes (
/
) in paths, not backslashes (\
) - Replace
[YourUsername]
with your actual Windows username - File must be named exactly
claude_desktop_config.json
- If both possible config locations exist, try each until successful
macOS
Create or edit ~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"pandoras-shell": {
"command": "python",
"args": [
"/path/to/cloned/Pandoras-Shell/src/pandoras_shell/executor.py"
],
"env": {
"PYTHONPATH": "/path/to/cloned/Pandoras-Shell/src"
}
}
}
}
Important Notes for macOS:
- Replace
[YourUsername]
with your actual username - You can use
$HOME
instead of/Users/[YourUsername]
if preferred - File must be named exactly
claude_desktop_config.json
After Configuration
- Restart Claude Desktop completely (quit/exit, not just close the window).
- Click the π icon to verify the server appears in the "Installed MCP Servers" list.
- If the server doesn't appear, check Claude's logs:
- Windows:
%APPDATA%\Claude\Logs\mcp*.log
or%LOCALAPPDATA%\AnthropicClaude\Logs\mcp*.log
- macOS:
~/Library/Logs/Claude/mcp*.log
- Windows:
Security Considerations
This server executes commands with your user privileges. Take these precautions:
- Use only in VMs or disposable development environments.
- Never use on production systems or machines with sensitive data.
- Consider implementing command restrictions if needed.
- Monitor system access and activity.
- Keep backups of important data.
Disclaimer: The developers are not responsible for any damages or losses resulting from the use of this software. Use it at your own risk.
Troubleshooting
If you encounter issues:
-
Check logs:
- Windows:
%APPDATA%\Claude\Logs\mcp*.log
or%LOCALAPPDATA%\AnthropicClaude\Logs\mcp*.log
- macOS:
~/Library/Logs/Claude/mcp*.log
- Windows:
-
Verify installation:
- Ensure
uv
is properly installed and in your PATH. - Check that
mcp
package is installed:pip show mcp
. - Verify Python version is 3.10 or higher.
- Ensure
-
Configuration issues:
- Double-check all paths in
claude_desktop_config.json
. - Verify JSON syntax is valid.
- Ensure proper path separators for your OS.
- Confirm config file is in the correct location.
- Double-check all paths in
-
Environment issues:
- Make sure
virtualenv
is activated if using one. - Verify
PYTHONPATH
is set correctly. - Check file permissions.
- Make sure
-
Test server manually:
python src/pandoras_shell/executor.py
Testing
After setup, try these commands in Claude Desktop:
Can you run 'pwd' and tell me what directory we're in?
or
Can you list the files in my home directory? Which of them are larger than 200 MB?