1. Conduid
  2. Blockchain
  3. Code Executor Server
MCP server · Blockchain

Code Executor Server

dedicated isolated environment for your AI agent

Unclaimed last commit a year ago blockchain
34Low

Scored 7 months ago · breakdown

About Code Executor Server

Code Executor Server is an MCP server published by mouadenna in the Blockchain category: dedicated isolated environment for your AI agent.

The repository has 2 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/mouadenna/mcp-code-executor-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Code Executor Server

Powered by Claude · Grounded in docs

I know everything about Code Executor Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Code Executor Server

A robust Model Context Protocol (MCP) server that enables AI agents to execute code across multiple programming languages in a secure, isolated environment.


🚀 Overview

MCP Code Executor Server standardizes how AI models connect to various programming runtimes by exposing a unified MCP tool endpoint. It allows AI assistants to:

  1. Submit code in a supported language.
  2. Execute it in a controlled, sandboxed environment.
  3. Receive output, including compilation or runtime errors.

🔑 Key Features

  • Multi-Language Support: Java, Python, JavaScript, TypeScript, and C++.
  • Secure Execution: Isolated containers with resource limits (CPU, memory, timeouts).
  • MCP Integration: Conformant MCP server for seamless client discovery.
  • Automatic Compilation: Handles compile-and-run for Java, C++, and TypeScript.
  • Detailed Error Feedback: Returns both compile-time and runtime error messages.
  • Resource Cleanup: Automatically deletes temporary files and enforces execution timeouts.

📐 Architecture

The MCP Code Executor Server follows a client-server model:

  • MCP Client: Protocol client that connects to this server.
  • MCP Server: This application, exposing code-execution tools.
  • Sandboxed Runtimes: Containers or isolated processes per request.

Code Execution Architecture


🏁 Getting Started

Prerequisites

  • Java 17+
  • Python 3.8+
  • Node.js & npm
  • g++ or another C++ compiler

Local Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/mcp-code-executor-server.git
    cd mcp-code-executor-server
    
  2. Build & Run:

    # Build the project
    ./mvnw clean package
    
    # Start the server
    ./mvnw spring-boot:run
    

The server listens on port 8080 by default.

Using Docker

For isolation, run in Docker:

# Build Docker image
docker build -t mcp-code-executor .

# Run container
docker run -p 8080:8080 mcp-code-executor

Or with Docker Compose:

docker-compose up -d

🛠️ Connecting MCP Clients

  1. Start your MCP-compatible AI client.
  2. Point it to http://localhost:8080.
  3. Discover and invoke the code-execution tool.

Example MCP request:

{
  "language": "python",
  "code": "print('Hello, world!')\nprint('hello again')"
}

🤝 Contributing

Contributions are welcome!.


📄 License

Apache License 2.0. See the LICENSE file for details.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Code Executor Server

How do I install Code Executor Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Code Executor Server safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Code Executor Server still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.