Provides tools for remote Python code execution and evaluation, enabling real-time sandbox testing and code assessment within a virtual lab environment.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Lab Virtual MCP Serverrun a python script to calculate the first 10 prime numbers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
execution in a secure and scalable lab setup.
βοΈ Lab Virtual MCP Server (Execute Code Remotely via Claude AI) Create a virtual lab for users to run custom code remotely using the Model Context Protocol (MCP) and integrate with Claude AI or other clients.
π GitHub Repo
π This repo has moved to base/base-mcp
π What This Lab Server Does π§ Enables remote Python code execution through cline AI
π§ͺ Supports real-time lab scenarios (code evaluation, sandbox testing, etc.)
π Prerequisites Ensure you have the following on your system:
β Python 3.10.11
β pip (Python package manager)
β fastmcp (to serve the MCP endpoint)
β uv (virtual environment manager, via scoop or curl)
β Access to Claude Desktop or Cursor or cline (for testing)
π§± Installation Steps
Clone the MCP Server Repo
Set up Python Environment
cd McpSever_Remote_code_execution
Set Up Virtual Environment
Install Dependencies
Run the Server
You now have a remote code execution server listening for requests via MCP.
π§ͺ MCP Client Configuration For Claude Desktop / Cursor, update your mcp_config.json:
Beofre start Mcp set path
β Available Tools (Prebuilt in MCP)
Tool Description execute_code Executes user-provided Python code
π‘ Recommendations for Lab Admins β Add sandboxing logic to app.py if users can run arbitrary code.
β Use Docker or subprocess isolation for safer execution (optional).
β Monitor logs and set execution timeouts.