# OnlineCompiler.io

The OnlineCompiler.io MCP server for Claude Code runs programs in 46 languages inside fresh, offline sandboxes. Agents can execute code and check it against tests.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: onlinecompiler-io
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/onlinecompiler-io/onlinecompiler-mcp
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/onlinecompilerio

## What it does

OnlineCompiler.io gives an agent tools to run programs, compare output with test cases, and judge solutions to stored problems. It can list available compilers and run code with input or supplied files. Each run starts in a new sandbox with network access disabled.

The hosted endpoint is `https://api.onlinecompiler.io/mcp`. Access requires OAuth sign-in or an API key, and runs count against the service plan. In Claude Code, add the server with `claude mcp add --transport http onlinecompilerio https://api.onlinecompiler.io/mcp`, then open `/mcp` and sign in. Using a key requires separate configuration.

## Requirements
- Remote server: `https://api.onlinecompiler.io/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http compiler https://api.onlinecompiler.io/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add onlinecompilerio --url https://api.onlinecompiler.io/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "onlinecompilerio": {
            "url": "https://api.onlinecompiler.io/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "onlinecompilerio": {
            "type": "http",
            "url": "https://api.onlinecompiler.io/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http onlinecompilerio https://api.onlinecompiler.io/mcp
```

## When to use it
- run a code snippet with a chosen compiler
- compare program output with test cases
- judge a solution to a stored problem

## Example prompts
- Run this Python code and show me its output.
- Check this program against these tests and compare actual and expected output.
- Judge my solution for the `two-sum` problem.

## Similar
- [javascript-pro](https://affpapa.org/en/nevibecode/skills/javascript-pro.md) — skill · 79 installs
- [cpp-pro](https://affpapa.org/en/nevibecode/skills/cpp-pro.md) — skill · 70 installs
- [mcp-abap-adt](https://affpapa.org/en/nevibecode/mcp/mcp-abap-adt.md) — MCP server · ★ 210 repo stars
- [Benzi](https://affpapa.org/en/nevibecode/mcp/benzi.md) — MCP server · ★ 179 repo stars
- [gograph](https://affpapa.org/en/nevibecode/mcp/gograph.md) — MCP server · ★ 232 repo stars
- [arbor](https://affpapa.org/en/nevibecode/mcp/arbor.md) — MCP server · ★ 161 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
