Skip to main content
Glama
OnlineCompiler MCP Server

OnlineCompiler MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ONLINECOMPILER_API_KEYNoOptional OnlineCompiler.io API key, sent as `Authorization: Bearer <key>` (the bare key also works). Not needed when signing in with OAuth. Get a free key from https://api.onlinecompiler.io/compilers/api-keys/

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server lets you compile and run code in 46 programming languages via the OnlineCompiler.io API. Use list_compilers to see available languages, run_code to execute code, run_tests to judge a solution against test cases, and judge_problem to judge code against one of your stored problems.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_compilersA

List all available compilers/languages supported by OnlineCompiler.io.

Returns a list of compiler objects with id and name. Use the id value as the compiler argument when calling run_code.

run_codeA

Run one program in a sandbox and return its output.

Returns output, error, status, exit_code, time (wall-clock seconds), memory and truncated. Limited to 30 seconds (or time_limit) and 512 MB RAM. To check a solution against expected outputs, use run_tests instead.

python-3.14 includes numpy, pandas, scipy, scikit-learn, matplotlib, seaborn, statsmodels, sympy, openpyxl, pillow, duckdb, polars, wordcloud, pgmpy and nltk (with WordNet, VADER and the English POS tagger data) (no network, so nothing else can be installed). Files a program writes to the directory in $OUTPUT_DIR come back in files (png, svg, csv, json and txt; up to 8 files and 2 MB): PNG charts are returned as images, and SVG, CSV, JSON and text files with their text. plt.show() saves each open figure as figure-N.png, so tutorial code returns its chart. Pass files to give the program input data or helper source files.

run_testsA

Check a program against test cases and judge it like an online judge.

Takes at most 10 tests, each counting as one run. Every test runs unless the code fails to compile or the request runs out of time. Returns an overall verdict, a score from 0 to 100 and a verdict per test. time_limit is seconds per test; compiling before the run does not count against it, and Java, Groovy and F#, which compile as they start, get a start-up allowance on top of it. python-3.14 includes numpy, pandas, scipy, scikit-learn, matplotlib, seaborn, statsmodels, sympy, openpyxl, pillow, duckdb, polars, wordcloud, pgmpy and nltk, and duckdb-1.5 works like sqlite-3, so data questions can be judged with checker "rows" and shared files. Files a program writes to $OUTPUT_DIR come back on visible tests only, as metadata.

judge_problemA

Judge code against one of your stored problems.

Runs the problem's tests and returns a verdict, a score, a summary, a submission id, a signed receipt, and the problem id and version. Hidden tests return only their verdict, never their input or expected output. It never invents results: if the problem is missing or the run fails, you get an error.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 4 tools

Disambiguation4/5

The tools mostly have distinct roles: list_compilers discovers languages, run_code executes one program, run_tests checks arbitrary test cases, and judge_problem evaluates against a stored problem. The only mild overlap is between run_tests and judge_problem, but the descriptions clarify the distinction between ad-hoc tests and stored problem tests.

Naming Consistency5/5

All tool names follow a clear verb_noun snake_case convention: run_tests, judge_problem, list_compilers, run_code. The pattern is predictable and easy to scan.

Tool Count5/5

Four tools is a well-scoped surface for an online compiler service: language discovery, direct execution, custom test judging, and stored-problem judging. Each tool has a clear purpose and none feels redundant.

Completeness3/5

Core execution and judging workflows are covered, but judge_problem depends on stored problems while no tool lists, creates, updates, or retrieves those problems. That is a notable gap for agents trying to manage the problem lifecycle through this server alone.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues