# OnlineCompiler.io

> OnlineCompiler.io is a freemium MCP server for developer tools. Runs code in 46 languages in an offline sandbox, with test running and judging. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $10 a month
- **Platforms:** API, Web
- **Website:** https://onlinecompiler.io/mcp-code-execution
- **Repository:** https://github.com/onlinecompiler-io/onlinecompiler-mcp
- **MCP Registry name:** io.onlinecompiler/compiler
- **Categories:** developer tools, cloud and infrastructure
- **Listing updated:** 2026-11-14

## About

Code the agent writes runs on OnlineCompiler.io's servers in a fresh sandbox with no network, not on your machine. Four tools: list_compilers returns the 46 compiler ids, run_code takes code, compiler, optional stdin and a time limit up to 30 seconds and returns output, exit code, run time and memory, run_tests checks up to 10 cases with several output checkers, and judge_problem judges against stored problems.

claude.ai, ChatGPT, Claude Code and Codex sign in through OAuth and create an API key named after the app, which can be disabled to disconnect. Cursor and VS Code use a key header.

The free plan covers 100,000 runs a month including commercial use; Starter is $10, Pro $49, Business $199. Paid plans stop at their limit with no overage charges. The authors note they make the service and compare it with competitors.

## Features

- **46 languages:** Python, Java, C, C++, Go, Rust and more.
- **Offline sandbox:** Fresh sandbox, no network.
- **Test running:** Up to 10 tests with checker modes.
- **Problem judging:** Judge against stored problems.
- **Key-based disconnect:** Disable an app's key to revoke it.

## Good for

- Verify code an agent wrote
- Run test cases
- Grade submissions
- Try a snippet in a rare language

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http compiler https://api.onlinecompiler.io/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.onlinecompiler.io/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "compiler": {
      "url": "https://api.onlinecompiler.io/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "compiler": {
      "type": "http",
      "url": "https://api.onlinecompiler.io/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "compiler": {
      "serverUrl": "https://api.onlinecompiler.io/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "compiler": {
      "type": "http",
      "url": "https://api.onlinecompiler.io/mcp"
    }
  }
}
```

## Tools

- `list_compilers`: Lists the 46 compiler ids and names.
- `run_code`: Runs code and returns output, status and resource use.
- `run_tests`: Runs code against up to 10 tests.
- `judge_problem`: Judges code against a stored problem.

## FAQ

### Is it free?

Up to 100,000 runs a month, commercial use included.

### Can code reach the internet?

No, sandboxes are offline.

### Max time per run?

30 seconds.

### How do I connect?

https://api.onlinecompiler.io/mcp.

### Is OnlineCompiler.io free?

OnlineCompiler.io has a free plan, with paid plans for more usage or features. Paid plans start at $10 a month.

### How do I add OnlineCompiler.io to Claude Code?

Run this command in your terminal: claude mcp add --transport http compiler https://api.onlinecompiler.io/mcp

### What are the best alternatives to OnlineCompiler.io?

The closest alternatives to OnlineCompiler.io are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/onlinecompiler-io
