container-mcp

container-mcp

3.4

If you are the rightful owner of container-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Container-MCP is a secure, container-based implementation of the Model Context Protocol (MCP) for executing tools on behalf of large language models.

Container-MCP provides a sandboxed environment for safely executing code, running commands, accessing files, and performing web operations requested by large language models. It implements the MCP protocol to expose these capabilities as tools that can be discovered and called by AI systems in a secure manner. The architecture uses a domain-specific manager pattern with multi-layered security to ensure tools execute in isolated environments with appropriate restrictions, protecting the host system from potentially harmful operations.

Features

  • Multi-layered Security: Container isolation using Podman/Docker, AppArmor profiles, Firejail sandboxing, resource limits, path traversal prevention, and allowed extension restrictions.
  • MCP Protocol Implementation: Standardized tool discovery and execution, resource management, and async execution support.
  • Domain-Specific Managers: Includes BashManager for secure command execution, PythonManager for sandboxed Python code execution, FileManager for safe file operations, and WebManager for secure web browsing and scraping.
  • Configurable Environment: Extensive configuration via environment variables, custom environment support, and development and production modes.

Tools

  1. system_run_command

    Executes bash commands in a secure sandbox environment.

  2. system_run_python

    Executes Python code in a secure sandbox environment.

  3. system_env_var

    Gets environment variable values.

  4. file_read

    Reads file contents safely.

  5. file_write

    Writes content to a file safely.

  6. file_list

    Lists contents of a directory safely.

  7. file_delete

    Deletes a file safely.

  8. file_move

    Moves or renames a file safely.

  9. web_search

    Uses a search engine to find information on the web.

  10. web_scrape

    Scrapes a specific URL and returns the content.

  11. web_browse

    Interactively browses a website using Playwright.