Mcp Code Executor

Created bybazinga012bazinga012

The MCP Code Executor is an MCP server that enables LLMs to run Python code in a designated Conda environment.

Overview

What is MCP Code Executor?

The ### MCP Code Executor is a specialized server designed for executing Python code within a specified Conda environment. It serves as a bridge for Large Language Models (LLMs) to run Python scripts seamlessly, ensuring that the necessary dependencies and environments are correctly managed. This tool is particularly useful for developers and researchers who need to test and run code snippets in a controlled environment.

Features of MCP Code Executor

  • Conda Environment Management: Automatically sets up and manages Conda environments to ensure that all dependencies are met for the Python code execution.
  • Integration with LLMs: Allows LLMs to execute Python code, making it easier to leverage AI capabilities in coding tasks.
  • Public Repository: The code is available in a public repository, allowing for community contributions and collaboration.
  • User-Friendly Interface: Designed with usability in mind, making it easy for users to execute code without deep technical knowledge.
  • Open Source: The project is open-source, encouraging developers to contribute and enhance its capabilities.

How to Use MCP Code Executor

  1. Clone the Repository: Start by cloning the MCP Code Executor repository from GitHub.

    git clone https://github.com/bazinga012/mcp_code_executor.git
    
  2. Install Dependencies: Navigate to the cloned directory and install the required dependencies using Conda.

    cd mcp_code_executor
    conda env create -f environment.yml
    conda activate mcp_env
    
  3. Run the Server: Start the MCP Code Executor server to begin executing Python code.

    python server.py
    
  4. Execute Code: Use the provided API or interface to send Python code for execution. The server will handle the execution within the specified Conda environment.

  5. Check Results: Retrieve the output of the executed code through the interface or API response.

Frequently Asked Questions

What programming languages does MCP Code Executor support?

Currently, the MCP Code Executor is designed specifically for Python. However, future updates may include support for other languages.

Is MCP Code Executor free to use?

Yes, the MCP Code Executor is open-source and free to use. You can find the source code on GitHub.

How can I contribute to the MCP Code Executor project?

You can contribute by forking the repository, making your changes, and submitting a pull request. Community contributions are welcomed and encouraged.

What are the system requirements for running MCP Code Executor?

You will need a system that supports Conda and Python. The specific requirements can be found in the environment.yml file in the repository.

Can I use MCP Code Executor for production applications?

While the MCP Code Executor is primarily designed for testing and development, it can be adapted for production use with proper configurations and optimizations.

Details

Server Config

{
  "mcpServers": {
    "mcp-code-executor": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/metorial/mcp-container--bazinga012--mcp_code_executor--mcp-code-executor",
        "node ./build/index.js"
      ],
      "env": {
        "CODE_STORAGE_DIR": "code-storage-dir",
        "CONDA_ENV_NAME": "conda-env-name"
      }
    }
  }
}

Project Info

Author
bazinga012
Created At
Jun 25, 2025
Star
153
Language
JavaScript
Tags
-

Mcp Code Executor Alternative

For some alternatives to Mcp Code Executor that you may need, we provide you with sites divided by category.

MCP Terminal is a terminal control server based on MCP (Model Context Protocol), specifically designed for integration with large language models (LLM) and AI assistants. It provides a standardized interface that allows AI to execute terminal commands and obtain output results.

A powerful Model Context Protocol (MCP) server that offers a comprehensive solution for public web access.

Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.

A complete Elasticsearch MCP server

This read-only MCP Server allows you to connect to Email data from Claude Desktop through CData JDBC Drivers. Free (beta) read/write servers are available at https://www.cdata.com/solutions/mcp

Official Firecrawl MCP Server - Adds powerful web scraping capabilities to Cursor, Claude, and any other LLM clients.

Time
@modelcontextprotocol

Time MCP Server is a Model Context Protocol server that provides time and timezone conversion capabilities. It enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.

View More >>