O
onlinecompiler-io/onlinecompiler-mcp
An MCP server that lets AI assistants execute code in 46 programming languages via OnlineCompiler.io.
更新 2026-11-18
在 GitHub 查看 ↗直链 · 无中转页
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- ★ 数取值
- 0 ★ · onlinecompiler-io/onlinecompiler-mcp · 取自 GitHub 搜索 API · (2026-11-19 20:00:48 核对)
- 来源明细
- 收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-18 · 最近见到 2026-11-20 · 共见到 3 次 · 被 3 个来源列出
- 评分构成
- 综合分 300 · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
onlinecompiler-io/onlinecompiler-mcp;我们收录于 2026-11-18;最近见到 2026-11-20。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。README 原文(英文,未翻译) · 在 GitHub 读完整 README →
# OnlineCompiler MCP Server
以下摘录自该仓库的 README(片段)
An MCP server that lets AI assistants execute code in 46 programming languages via OnlineCompiler.io.
Each run starts a fresh gVisor sandbox (512 MB RAM, 30 s timeout, no network access).
## Supported Languages
Python, C, C++, Fortran, Java, C#, F#, Visual Basic, Go, Rust, PHP, Ruby, Haskell, TypeScript (Deno), JavaScript (Node.js), Kotlin, R, Bash, SQL (SQLite), SQL (DuckDB), Swift, COBOL, Perl, Julia, Pascal, Octave, Assembly (NASM), Lua, OCaml, Common Lisp, Erlang, Elixir, Prolog, D, FreeBASIC, Dart, Clojure, Groovy, Scala, Zig, Nim, Crystal, Ada, PowerShell, Racket and Objective-C. list_compilers returns the current list with versions.
## Setup
Point your MCP client at the URL. No install needed.
https://api.onlinecompiler.io/mcp
There are two ways in:
Sign in (OAuth). Clients that support MCP sign-in (claude.ai, Claude Desktop and mobile, ChatGPT, Claude Code, Codex) open an OnlineCompiler.io sign-in page (Google or an email link) and ask you to approve. The app then appears as a key named after it, for example "Claude (connected app)", on your API Keys page. Disable that key to disconnect the app.
API key. Send your key as Authorization: Bearer (the bare key works too). Get a free key on the API Keys page.
Runs count against your plan either way. A wrong or disabled key gets 401.
To run the server yourself instead (version 0.6.0 and later): onlinecompiler-mcp serves Streamable HTTP on port 8080 (MCP_HOST, MCP_PORT) and takes each caller's key as a Bearer token, while onlinecompiler-mcp --transport stdio speaks stdio for local clients and reads your key from ONLINECOMPILER_API_KEY.
## Tools
### list_compilers
List all available compilers with their identifiers.
### run_code
Execute code with a specified compiler.
Parameters:
code (required): Source code to execute
compiler (required): Compiler identifier from list_compilers (e.g. python-3.14, gcc-15)
input (optional): Standard input for the program
time_limit (optional): Seconds the run may take, above 0 and at most 30 (default 30)
files (optional): Files the program can use, up to 20 and 1,000,000 decoded bytes in total: helper source files (compiled with the program) and input data. Each {"name": "util.py" or "pkg/util.py", "content": "...", "encoding": "utf8" or "base64"}; the program finds them in its working directory
python-3.14 includes numpy, pandas, scipy, scikit-learn, matplotlib, seaborn, statsmodels, sympy, openpyxl, pillow, duckdb, polars, wordcloud, pgmpy and nltk. Files a program writes to $OUTPUT_DIR come back (png, svg, csv, json, txt; up to 8 files and 2 MB), and plt.show() saves each open figure as a PNG.
Returns: output, error, status, exit_code, time, memory, truncated, files, files_truncated. PNG files arrive as MCP image content; SVG, CSV, JSON and text files are listed with their text (cut at 64 KB).
### run_tests
Check a program against test cases and judge it like an online judge. At most 10 tests per call, each counting as one run. Every test runs unless the code fails to compile or the request runs out of time.
Parameters:
code (required): Source code to check
compiler (required): Compiler identifier from list_compilers
Each run starts a fresh gVisor sandbox (512 MB RAM, 30 s timeout, no network access).
## Supported Languages
Python, C, C++, Fortran, Java, C#, F#, Visual Basic, Go, Rust, PHP, Ruby, Haskell, TypeScript (Deno), JavaScript (Node.js), Kotlin, R, Bash, SQL (SQLite), SQL (DuckDB), Swift, COBOL, Perl, Julia, Pascal, Octave, Assembly (NASM), Lua, OCaml, Common Lisp, Erlang, Elixir, Prolog, D, FreeBASIC, Dart, Clojure, Groovy, Scala, Zig, Nim, Crystal, Ada, PowerShell, Racket and Objective-C. list_compilers returns the current list with versions.
## Setup
Point your MCP client at the URL. No install needed.
https://api.onlinecompiler.io/mcp
There are two ways in:
Sign in (OAuth). Clients that support MCP sign-in (claude.ai, Claude Desktop and mobile, ChatGPT, Claude Code, Codex) open an OnlineCompiler.io sign-in page (Google or an email link) and ask you to approve. The app then appears as a key named after it, for example "Claude (connected app)", on your API Keys page. Disable that key to disconnect the app.
API key. Send your key as Authorization: Bearer (the bare key works too). Get a free key on the API Keys page.
Runs count against your plan either way. A wrong or disabled key gets 401.
To run the server yourself instead (version 0.6.0 and later): onlinecompiler-mcp serves Streamable HTTP on port 8080 (MCP_HOST, MCP_PORT) and takes each caller's key as a Bearer token, while onlinecompiler-mcp --transport stdio speaks stdio for local clients and reads your key from ONLINECOMPILER_API_KEY.
## Tools
### list_compilers
List all available compilers with their identifiers.
### run_code
Execute code with a specified compiler.
Parameters:
code (required): Source code to execute
compiler (required): Compiler identifier from list_compilers (e.g. python-3.14, gcc-15)
input (optional): Standard input for the program
time_limit (optional): Seconds the run may take, above 0 and at most 30 (default 30)
files (optional): Files the program can use, up to 20 and 1,000,000 decoded bytes in total: helper source files (compiled with the program) and input data. Each {"name": "util.py" or "pkg/util.py", "content": "...", "encoding": "utf8" or "base64"}; the program finds them in its working directory
python-3.14 includes numpy, pandas, scipy, scikit-learn, matplotlib, seaborn, statsmodels, sympy, openpyxl, pillow, duckdb, polars, wordcloud, pgmpy and nltk. Files a program writes to $OUTPUT_DIR come back (png, svg, csv, json, txt; up to 8 files and 2 MB), and plt.show() saves each open figure as a PNG.
Returns: output, error, status, exit_code, time, memory, truncated, files, files_truncated. PNG files arrive as MCP image content; SVG, CSV, JSON and text files are listed with their text (cut at 64 KB).
### run_tests
Check a program against test cases and judge it like an online judge. At most 10 tests per call, each counting as one run. Every test runs unless the code fails to compile or the request runs out of time.
Parameters:
code (required): Source code to check
compiler (required): Compiler identifier from list_compilers
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/onlinecompiler-io-onlinecompiler-mcp/)
- 来源
- awesome · https://github.com/onlinecompiler-io/onlinecompiler-mcp
- 按领域浏览
- MCP 服务
- 收录来源
- 3 个独立来源
- 收录于
- 今天
更多 MCP 服务器
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。