Pandora's Shell

Pandora's Shell

MCP server enabling AI assistants to execute terminal commands through a secure shell interface

Zelaron

Research & Data
Visit Server

README

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 execute
      • directory (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
  • Python 3.10 or higher
  • Git
  • uv (required for package management)

Windows Installation

  1. Install Prerequisites:

    Option A - Using winget (if available on your system):

    winget install python git
    

    Option B - Manual installation (recommended):

  2. Install uv:

    Open Command Prompt (cmd.exe) as administrator and run:

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    

    If you encounter any issues, you may need to restart your terminal or computer for the changes to take effect.

  3. Clone and set up the project:

    git clone https://github.com/Zelaron/Pandoras-Shell.git
    cd Pandoras-Shell
    

    Then create a virtual environment. Try these commands in order until one works:

    python -m venv venv
    

    If that doesn't work, try:

    python3 -m venv venv
    

    Then activate the environment:

    venv\Scripts\activate
    
  4. Install dependencies:

    uv pip install mcp
    pip install -e .
    

Note: If you installed Python from python.org, you'll typically use python. If you installed via winget or from the Microsoft Store, you might need to use python3. Try both commands if one doesn't work.

macOS Installation

  1. Install Prerequisites:

    brew install python git uv
    
  2. Clone and set up the project:

    git clone https://github.com/Zelaron/Pandoras-Shell.git
    cd Pandoras-Shell
    python3 -m venv venv
    source venv/bin/activate
    
  3. Install dependencies:

    uv pip install mcp
    pip install -e .
    

Configuration

Windows

Locate the correct configuration directory - try these paths in order:

  1. %APPDATA%\Claude\ (typically C:\Users\[YourUsername]\AppData\Roaming\Claude\)
  2. %LOCALAPPDATA%\AnthropicClaude\ (typically C:\Users\[YourUsername]\AppData\Local\AnthropicClaude\)

Create or edit claude_desktop_config.json in the correct directory:

{
  "mcpServers": {
    "pandoras-shell": {
      "command": "C:/path/to/cloned/Pandoras-Shell/venv/Scripts/python.exe",
      "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": "/path/to/cloned/Pandoras-Shell/venv/bin/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
  • The command path should point to the Python interpreter inside your virtual environment (venv/bin/python), not the system Python

After Configuration

  1. Restart Claude Desktop completely (quit/exit, not just close the window).
  2. Click the 🔌 icon to verify the server appears in the "Installed MCP Servers" list.
  3. 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

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:

  1. Check logs:

    • Windows: %APPDATA%\Claude\Logs\mcp*.log or %LOCALAPPDATA%\AnthropicClaude\Logs\mcp*.log
    • macOS: ~/Library/Logs/Claude/mcp*.log
  2. 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.
  3. 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.
  4. Environment issues:

    • Make sure virtualenv is activated if using one.
    • Verify PYTHONPATH is set correctly.
    • Check file permissions.
  5. Test server manually:

    # First, make sure you're in the Pandoras-Shell directory:
    cd /path/to/cloned/Pandoras-Shell
    
    # For macOS:
    ./venv/bin/python src/pandoras_shell/executor.py
    
    # For Windows:
    .\venv\Scripts\python.exe src\pandoras_shell\executor.py
    
    # The executor will appear to hang with no output - this is normal.
    # It's waiting for connections from Claude Desktop.
    # Use Ctrl+C to stop it.
    
  6. Connection issues:

    • If you get "Could not connect to MCP server" errors, ensure you're using the virtual environment's Python interpreter in your config file.
    • For macOS: Use /path/to/cloned/Pandoras-Shell/venv/bin/python
    • For Windows: Use C:/path/to/cloned/Pandoras-Shell/venv/Scripts/python.exe

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?

Recommended Servers

Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
MCP PubMed Search

MCP PubMed Search

Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.

Featured
Python
dbt Semantic Layer MCP Server

dbt Semantic Layer MCP Server

A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.

Featured
TypeScript
mixpanel

mixpanel

Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Featured
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python
Nefino MCP Server

Nefino MCP Server

Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.

Official
Python
Vectorize

Vectorize

Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.

Official
JavaScript
Mathematica Documentation MCP server

Mathematica Documentation MCP server

A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.

Local
Python
kb-mcp-server

kb-mcp-server

An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded

Local
Python
Research MCP Server

Research MCP Server

The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.

Local
Python