csharp-runner
by sdcb·★ 109·Score 46
A fast, secure C# code execution platform with container isolation and MCP protocol support.
Overview
C# Runner is a high-performance platform for executing C# code online securely. It implements a Host-Worker architecture with Docker container isolation, preventing untrusted code from affecting the host system. The platform supports both HTTP REST API and MCP protocols, making it suitable for integration with various AI systems. With features like resource limits, network isolation, worker recycling, and load balancing, it provides a robust solution for running C# code safely while maintaining performance.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose C# Runner when you need a secure, isolated environment for executing C# code, especially if you're already using Docker and want both HTTP API and MCP protocol support.
When NOT to choose this
Don't choose this if you need to execute code in languages other than C#, or if you require more granular security controls beyond container isolation.
Tools this server exposes
1 tool extracted from the READMErun_codeExecute C# code in a secure environment
Comparable tools
Installation
Installation
Using Docker Compose (recommended):
# Download the docker-compose.yml file
curl -L https://raw.githubusercontent.com/sdcb/csharp-runner/refs/heads/master/docker-compose.yml -o docker-compose.yml
# Start the services in detached mode
docker compose up -dClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"csharp-runner": {
"command": "docker",
"args": ["run", "--rm", "-i", "sdcb/csharp-runner-host", "mcp"]
}
}
}FAQ
- What security measures does C# Runner implement?
- C# Runner uses Docker container isolation to prevent untrusted code from affecting the host. It also supports CPU, memory, and execution timeout limits, network isolation, and worker recycling to maintain a clean environment.
- Can I use C# Runner without Docker?
- The project primarily provides Docker images for deployment. While you could theoretically run the host and worker services directly on your system using the .NET runtime, the containerized approach is the recommended and supported method.
Compare csharp-runner with
Last updated · Auto-generated from public README + GitHub signals.