mcp-server-python
Verified Safeby zerolagtime
Overview
A Minimal Compute Platform (MCP) tool for the continue.dev VSCode plugin to execute, lint, type-check, and security-scan Python code in an isolated Docker environment.
Installation
docker run --rm -i -v "${workspaceFolder}:/workspace" python-mcpSecurity Notes
The server implements robust sandboxing mechanisms, including running in an isolated Docker container as a non-root user, dynamically blocking dangerous Python imports/builtins (like 'eval', 'exec', 'compile', network modules, and system execution modules) from user code, and using isolated temporary directories for each session. This significantly reduces the risk of malicious code execution or data exfiltration. Execution also includes a 30-second timeout. While no sandbox is perfectly impenetrable, these measures provide a high level of security for untrusted code execution.
Similar Servers
mcp-server-code-execution-mode
This server enables LLM agents to execute Python code in a highly secure, isolated container environment, facilitating complex multi-tool orchestration and data analysis with minimal LLM context token usage.
Mcpwn
Automated security testing framework for Model Context Protocol (MCP) servers, detecting RCE, path traversal, prompt injection, and protocol vulnerabilities.
continue-snyk-mcp
Integrates Snyk security scanning and automated vulnerability patching into the Continue AI coding assistant workflow.
ai-calls-editor
Facilitates AI-powered code refactoring within a VS Code environment by exposing an MCP server to AI assistants.