mcp-run-python MCP Server

mcp-run-python MCP Server Github

Discover MCP Run Python: A Sandboxed Python Execution Server

If you're searching for a reliable way to execute Python code securely, MCP Run Python is an excellent solution. Designed as a Model Context Protocol (MCP) server, it allows you to run Python scripts in a sandboxed environment, ensuring isolation from your operating system.

What is MCP Run Python?

MCP Run Python is a server implementation that leverages Pyodide and Deno to execute Python code safely. This setup prevents any unintended access to your system's resources, making it ideal for developers and AI enthusiasts who prioritize security while experimenting with Python scripts.

How to Use MCP Run Python

Getting started with MCP Run Python is straightforward. With Deno installed, you can launch the server using specific commands to enable network access and manage dependencies. It supports different modes like Stdio for local subprocess execution and SSE for HTTP-based local or remote connections. A warmup mode is also available to cache the Python standard library and verify server functionality.

Key Features of MCP Run Python

  • Sandboxed Execution: Ensures code runs in isolation using Pyodide and Deno.
  • Flexible Transport Modes: Choose between Stdio and SSE for local or remote access.
  • Easy Setup: Quick configuration with Deno for dependency management.

User Case for MCP Run Python

Imagine you're building an AI application with PydanticAI. MCP Run Python allows you to integrate and run Python scripts securely as part of your agent setup, ensuring safe computation of tasks like date calculations without risking system exposure.

FAQ About MCP Run Python

  • What is the primary use of MCP Run Python? It's used to execute Python code in a secure, isolated environment.
  • Can I run it remotely? Yes, using the SSE transport mode for HTTP connections.

Explore MCP Run Python for a secure coding experience today! For detailed documentation, visit the official guide.

Visual Examples

## Demo Videos

Demo Videos