1. Conduid
  2. Developer Tools
  3. Code Execution MCP
MCP server · Developer Tools

Code Execution MCP

A Model Context Protocol (MCP) server written in Go that provides code execution capabilities for Bash/Zsh scripts, Python code, and Go code. This server enables LLMs to generate and execute code dynamically.

Unclaimed last commit 9 months ago claudemcpcoding-agentsdevtoolsgolang
45Fair

Scored 7 days ago · breakdown

About Code Execution MCP

Code Execution MCP is an MCP server published by tektwister in the Developer Tools category: a Model Context Protocol (MCP) server written in Go that provides code execution capabilities for Bash/Zsh scripts, Python code, and Go code. This server enables LLMs to generate and execute code dynamically.

The repository has 1 stars and 0 forks, with the last commit 9 months 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/tektwister/code_execution_mcp

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 Execution MCP

Powered by Claude · Grounded in docs

I know everything about Code Execution MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

build-2026-01-01-1614Automated Build 2026-01-01-1614 · 1 Jan 2026
build-2026-01-01-1611Automated Build 2026-01-01-1611 · 1 Jan 2026
build-2026-01-01-1608Automated Build 2026-01-01-1608 · 1 Jan 2026
build-2026-01-01-1459Automated Build 2026-01-01-1459 · 1 Jan 2026
build-2026-01-01-1454Automated Build 2026-01-01-1454 · 1 Jan 2026

README

Code Execution MCP Server

A Model Context Protocol (MCP) server written in Go that provides code execution capabilities for Bash/Zsh scripts, Python code, and Go code. This server enables LLMs to generate and execute code dynamically.

Features

Tools

  1. execute_bash_script - Execute Bash/Zsh shell scripts

    • Best for: File operations, system commands, text processing, automation
    • Supports: Arguments, working directory, timeout configuration
  2. execute_python_script - Execute Python 3 code

    • Best for: Data processing, API interactions, machine learning, complex algorithms
    • Supports: Command line arguments (sys.argv), working directory, timeout
  3. execute_golang_code - Execute Go code

    • Best for: High-performance computing, concurrent operations, type-safe code
    • Requires: Complete Go program with package main and func main()

Prompts

  • code_executor - An intelligent prompt that helps LLMs choose the right tool based on the task description. Includes a decision framework and detailed documentation for each tool.

Architecture

For a detailed explanation of the project's internal structure (Hexagonal Architecture), see ARCHITECTURE.md.

Download Pre-built Binaries

Build Status

No need to build from source! Download the latest pre-built binaries for your platform:

📥 Download Latest Release

Available platforms:

  • 🪟 Windows (amd64) - code_execution_mcp-windows-amd64.exe
  • 🐧 Linux (amd64) - code_execution_mcp-linux-amd64
  • 🐧 Linux (ARM64) - code_execution_mcp-linux-arm64
  • 🍎 macOS (Intel) - code_execution_mcp-darwin-amd64
  • 🍎 macOS (Apple Silicon) - code_execution_mcp-darwin-arm64

Automated builds: Binaries are automatically built and released on every commit to the main branch.

Installation

Prerequisites

  • Go 1.23 or later
  • For tool execution:
    • Bash (or Git Bash on Windows)
    • Python 3
    • Go runtime

Build from Source

Using Makefile (Recommended)

# Download dependencies and build
make deps
make build

Manual Build

# Clone the repository
cd code_execution_mcp

# Download dependencies
go mod tidy

# Build the server
go build -o code-execution-mcp ./cmd/server

For more build options, see make help or check the Makefile.

Usage

Running the Server

The MCP server uses stdio transport, which means it communicates via standard input/output:

./code-execution-mcp

Configuration with Claude Desktop

Add this to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "code-execution": {
      "command": "/path/to/code-execution-mcp"
    }
  }
}

Tool Examples

Execute Bash Script

{
  "tool": "execute_bash_script",
  "arguments": {
    "script": "echo 'Hello World' && ls -la",
    "timeout": 30
  }
}

Execute Python Script

{
  "tool": "execute_python_script",
  "arguments": {
    "code": "import json\ndata = {'message': 'Hello from Python'}\nprint(json.dumps(data, indent=2))",
    "timeout": 30
  }
}

Execute Go Code

{
  "tool": "execute_golang_code",
  "arguments": {
    "code": "package main\n\nimport \"fmt\"\n\nfunc main() {\n    fmt.Println(\"Hello from Go!\")\n}",
    "timeout": 60
  }
}

Security Considerations

⚠️ Warning: This MCP server executes arbitrary code on the host machine. Consider the following:

  1. Sandboxing: Consider running in a container or VM for production use
  2. Timeouts: All executions have configurable timeouts (max 300 seconds)
  3. Access Control: Limit who can connect to this MCP server
  4. Code Review: LLMs may generate code that has unintended side effects

Output Format

Each execution returns:

  • Exit Code: 0 for success, non-zero for failure
  • Duration: Time taken for execution
  • Standard Output: Program output
  • Standard Error: Error messages (if any)

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

README fetched from the repository 7 days ago. The original is authoritative.

Questions

About Code Execution MCP

How do I install Code Execution MCP?

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

Is Code Execution MCP safe to use with an AI agent?

Its trust score is 45 out of 100 (fair). It passes 3 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Code Execution MCP still maintained?

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