Container-MCP provides a secure, sandboxed environment for executing code, running commands, accessing files, and performing web operations on behalf of large language models. Built by 54rt1n, it implements multiple layers of security including container isolation, AppArmor profiles, Firejail sandboxing, and strict resource limits to ensure safe execution of potentially risky operations. The architecture uses domain-specific managers for different operation types (Bash, Python, file operations, web browsing) and runs inside an Ubuntu container with carefully controlled permissions and access restrictions. This implementation is particularly valuable for AI workflows requiring secure tool execution without exposing the host system to potential risks.
No reviews yet. Be the first to review!
Sign in to join the conversation
Executes bash commands in a secure sandbox environment. Parameters: command (string, required), working_dir (string, optional)
Executes Python code in a secure sandbox environment. Parameters: code (string, required), working_dir (string, optional)
Gets environment variable values. Parameters: var_name (string, optional)
Gets server health status and system information. Parameters: None
Reads file contents safely. Parameters: path (string, required), encoding (string, optional)
Writes content to a file safely. Parameters: path (string, required), content (string, required), encoding (string, optional)
Lists contents of a directory safely. Parameters: path (string, optional), pattern (string, optional), recursive (boolean, optional)
Deletes a file safely. Parameters: path (string, required)
Moves or renames a file safely. Parameters: source_path (string, required), destination_path (string, required)
Applies a unified diff patch to a file in the sandbox filesystem. Parameters: path (string, required), diff (string, required)
Uses a search engine to find information on the web. Parameters: query (string, required)
Scrapes a specific URL and returns the content. Parameters: url (string, required), selector (string, optional), output_format (string, optional)
Interactively browses a website using Playwright. Parameters: url (string, required)
Creates a new document in the knowledge base with optional metadata and content. Parameters: uri (string, required), metadata (object, optional), content (string, optional)
Writes content to an existing document in the knowledge base. Parameters: uri (string, required), content (string, required), force (boolean, optional)
Reads document data from the knowledge base. Parameters: uri (string, optional), recursive (boolean, optional), include_content (boolean, optional), include_index (boolean, optional)
Manages RDF triples for documents. Parameters: action (string, required), triple_type (string, required), uri (string, required), predicate (string, required), object (string, optional), ref_uri (string, optional)
Searches the knowledge base using text queries. Parameters: query (string, optional), seed_uris (array, optional), root_uri (string, optional), expand_hops (integer, optional), filter_uris (array, optional), relation_predicates (array, optional), top_k_sparse (integer, optional), top_k_rerank (integer, optional), include_content (boolean, optional), include_index (boolean, optional), use_reranker (boolean, optional)
Manages knowledge base operations like moving documents and rebuilding search indices. Parameters: action (string, required), options (object, required)
Creates a new organized list for tasks, notes, shopping, or any collection. Parameters: name (string, required), title (string, optional), list_type (string, optional), description (string, optional), tags (array, optional), properties (object, optional)
Retrieves and browses lists with flexible filtering options. Parameters: name (string, optional), include_items (boolean, optional), summary_only (boolean, optional), status_filter (string, optional), tag_filter (array, optional)
Modifies list items by adding, updating, or removing them. Parameters: list_name (string, required), action (string, required), item_text (string, optional), item_index (integer, optional), status (string, optional), tags (array, optional), properties (object, optional)
Updates list properties and metadata. Parameters: name (string, required), title (string, optional), list_type (string, optional), description (string, optional), tags (array, optional), author (string, optional), properties (object, optional)
Permanently deletes an entire list and all its items. Parameters: name (string, required)
Searches for items across multiple lists by text or tags. Parameters: query (string, required), list_names (array, optional), search_in (array, optional), case_sensitive (boolean, optional)
Queries stock or cryptocurrency prices with fundamentals, news, and trend analysis. Parameters: symbol (string, required), period (string, optional), interval (string, optional), news_count (integer, optional)
Fetches and parses an RSS or Atom feed, returning structured items. Parameters: url (string, required), limit (integer, optional)