Lab Virtual MCP Server
Enables remote Python code execution via the Model Context Protocol for secure, real-time lab scenarios and sandbox testing. It allows AI clients like Claude and Cursor to execute and evaluate code within a virtual lab environment.
README
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.
<img src="video/test.gif" alt="description" height="300" width="900" />
๐ GitHub Repo <pre> ๐ฆ https://github.com/Nuvepro-Technologies-Pvt-Ltd/McpSever_Remote_code_execution.git </pre> ๐ 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 <pre> git clone https://github.com/Nuvepro-Technologies-Pvt-Ltd/McpSever_Remote_code_execution.git </pre>
-
Set up Python Environment
<pre> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser </pre>
<pre> scoop install python </pre>
<pre> scoop install uv </pre>
cd McpSever_Remote_code_execution
- Set Up Virtual Environment
<pre> python -m venv .venv </pre> <pre> ..venv\Scripts\activate # Windows </pre> <pre> source .venv/bin/activate # macOS/Linux </pre>
- Install Dependencies
<pre> pip install fastmcp </pre>
<pre> pip install cryptography </pre>
<pre> pip install shelve </pre>
- Run the Server <pre> fastmcp run app.py </pre> 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:
<pre> { "mcpServers": { "CloudlabMcp": { "disabled": false, "timeout": 500, "type": "stdio", "command": "uv", "args": [ "run", "--with", "fastmcp", "python", "%PROJECT_PATH%\app.py" ], "env": { "API_KEY": "your_private_key", "Baseurl": "your seed phrase here", "compnaykey": "your_private_key" }, "autoApprove": [*] } } }
</pre>
Beofre start Mcp set path <pre> set PROJECT_PATH=D:\YourProject </pre> <pre> cline run CloudlabMcp </pre>
โ 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.