Feedback

Mcp Code Executor Server

@mouadenna Claim

Basic information

Runtime
java
Category
License
MIT license
Transports
stdio
Author
mouadenna
Submitted by
Community
Quality
20
Stars
2

About Mcp Code Executor Server

dedicated isolated environment for your AI agent

Mcp Code Executor Server is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by mouadenna. Supported transport: stdio. Runtime: java. License: MIT license. The repository has 2 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "mcp-code-executor-server": {
            "command": "docker",
            "args": [
                "build",
                "-t",
                "mcp-code-executor",
                "."
            ]
        }
    }
}

Mcp Code Executor Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mcp-code-executor-server": {
            "command": "docker",
            "args": [
                "build",
                "-t",
                "mcp-code-executor",
                "."
            ]
        }
    }
}

Mcp Code Executor Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Mcp Code Executor Server?

Mcp Code Executor Server is a Model Context Protocol (MCP) server that enables AI agents to execute code across multiple programming languages in a secure, isolated environment. It standardizes how AI models connect to various programming runtimes by exposing a unified MCP tool endpoint. The server is for developers integrating code execution capabilities into AI workflows.

How to use Mcp Code Executor Server?

Clone the repository, build with ./mvnw clean package, and start the server with ./mvnw spring-boot:run. The server listens on port 8080 by default. Alternatively, run via Docker using docker build -t mcp-code-executor . and docker run -p 8080:8080 mcp-code-executor. Connect an MCP-compatible AI client to http://localhost:8080 and invoke the code-execution tool with a JSON payload specifying language and code.

Key features of Mcp Code Executor Server

  • Multi-language support: Java, Python, JavaScript, TypeScript, C++
  • Secure execution in isolated containers with resource limits
  • MCP integration for seamless client discovery
  • Automatic compilation for Java, C++, and TypeScript
  • Detailed compile-time and runtime error feedback
  • Automatic cleanup of temporary files and execution timeouts

Use cases of Mcp Code Executor Server

  • AI assistants executing code snippets in a sandboxed environment
  • Automated testing of code in multiple languages from a single interface
  • Providing AI agents with runtime feedback to refine code generation
  • Enabling multi-language code evaluation in educational AI tools
  • Integrating code execution into MCP-compatible client workflows

Frequently asked questions

1 Which programming languages are supported?

Java, Python, JavaScript, TypeScript, and C++.

2 How does the server ensure secure code execution?

It uses isolated containers with resource limits on CPU, memory, and timeouts, and automatically deletes temporary files.

3 What are the prerequisites to run the server locally?

Java 17+, Python 3.8+, Node.js & npm, and a C++ compiler (g++).

4 Can I run the server in a container for additional isolation?

Yes, the README provides Docker and Docker Compose instructions for running the server in a container.

5 How do I connect an MCP client to the server?

Start your MCP-compatible AI client and point it to http://localhost:8080 to discover and invoke the code-execution tool.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬