
OnlineCompiler.io
Runs code in 46 languages in an offline sandbox, with test running and judging
- Pricing
- Freemium
- Platforms
- API, Web
- Runs
- Remotely
- Version
- 1.2.1
- Listing updated
- 3 days ago
About OnlineCompiler.io
OnlineCompiler.io is a freemium MCP server for developer tools. It runs as a hosted remote server, so there is nothing to install locally.
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.
Install
Run in a terminal
claude mcp add --transport http compiler https://api.onlinecompiler.io/mcpAdd to Settings → Connectors → Add custom connector
https://api.onlinecompiler.io/mcpAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"compiler": {
"url": "https://api.onlinecompiler.io/mcp"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"compiler": {
"type": "http",
"url": "https://api.onlinecompiler.io/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"compiler": {
"serverUrl": "https://api.onlinecompiler.io/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"compiler": {
"type": "http",
"url": "https://api.onlinecompiler.io/mcp"
}
}
}Tools this server provides (4)
Taken from the project documentation; the running server may differ.
- 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.
What it does
- 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
Pricing
Freemium, from $10 a month
Free to 100,000 runs/mo; Starter $10, Pro $49, Business $199
Prices change. Check onlinecompiler.io before you buy.
OnlineCompiler.io 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 to OnlineCompiler.io

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools