GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Run Python, Java, C, C++, C#, Go, Rust and 39 more languages, each run in a fresh, offline sandbox.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
Authorization标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
在终端中运行这条命令
claude mcp add --transport http compiler https://api.onlinecompiler.io/mcp --header 'Authorization: Bearer {api_key}'运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"compiler": {
"url": "https://api.onlinecompiler.io/mcp",
"headers": {
"Authorization": "Bearer {api_key}"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"compiler": {
"type": "http",
"url": "https://api.onlinecompiler.io/mcp",
"headers": {
"Authorization": "Bearer {api_key}"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
Authorization 机密 HTTP header这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
服务器要求先登录,才会列出它的工具。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过域名 onlinecompiler.io 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
在 207 毫秒内响应(HTTP 401)
声明支持 OAuth 登录,你的 AI 应用可以带你去登录
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:Authorization
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(1.2.1)于昨天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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).
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.
Point your MCP client at the URL. No install needed.
https://api.onlinecompiler.io/mcp
There are two ways in:
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.
list_compilersList all available compilers with their identifiers.
run_codeExecute code with a specified compiler.
Parameters:
code (required): Source code to executecompiler (required): Compiler identifier from list_compilers (e.g. python-3.14, gcc-15)input (optional): Standard input for the programtime_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 directorypython-3.14 includes numpy, pandas, scipy, scikit-learn, matplotlib, seaborn, statsmodels, sympy, openpyxl, pillow and duckdb. 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_testsCheck 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 checkcompiler (required): Compiler identifier from list_compilerstests (required): Up to 10 objects, each {"input": "...", "expected_output": "..."}time_limit (optional): Seconds per test, above 0 and at most 30 (default 2); compiling does not count, and Java, Groovy and F# get a start-up allowance on topchecker (optional): trim (default), exact, tokens, float or rows (unordered lines, numbers within tolerance)files (optional): Files shared by every test (input data or helper source files), same shape as in run_codeReturns: an overall verdict, a score from 0 to 100 and a verdict per test.
judge_problemJudge code against one of your stored problems. Hidden tests return only their verdict, never their input or expected output. Nothing is invented: a missing problem or a failed run is an error (for example HTTP 404: Problem not found).
Parameters:
problem (required): The id or slug of one of your stored problemscompiler (required): Compiler identifier from list_compilerscode (required): Source code to judgemode (optional): all (default) runs every test; samples runs only the sample testsReturns: a verdict, a score, a per-test verdict, a summary, a submission id, a signed receipt, and the problem id and version.
In claude.ai or Claude Desktop, open Customize, then Connectors, then Add custom connector. Paste https://api.onlinecompiler.io/mcp, sign in to OnlineCompiler.io when asked and approve. The connector belongs to your Claude account, so it works in the Claude mobile apps too.
Turn on developer mode in ChatGPT's settings, add a custom connector with https://api.onlinecompiler.io/mcp and sign in when asked.
claude mcp add --transport http onlinecompiler https://api.onlinecompiler.io/mcp
Then run /mcp inside Claude Code, pick onlinecompiler and sign in. To use an API key instead:
claude mcp add onlinecompiler https://api.onlinecompiler.io/mcp --transport http --header "Authorization: Bearer YOUR_API_KEY"
Install the extension from this repository:
gemini extensions install https://github.com/onlinecompiler-io/onlinecompiler-mcp
It adds the hosted server at https://api.onlinecompiler.io/mcp and a short context file telling Gemini when to use the tools. Gemini CLI signs you in with OAuth. To use an API key instead, add the server by hand in ~/.gemini/settings.json:
{
"mcpServers": { "onlinecompiler": { "httpUrl": "https://api.onlinecompiler.io/mcp", "headers": { "Authorization": "Bearer your-api-key" } } } }
This repository is also a Claude Code plugin marketplace:
/plugin marketplace add onlinecompiler-io/onlinecompiler-mcp
/plugin install onlinecompiler@onlinecompiler
Then run /mcp, pick onlinecompiler and sign in. The plugin does the same as the claude mcp add command above.
See llms-install.md: add the URL as a remote server with your API key in an Authorization header.
codex mcp add onlinecompiler --url https://api.onlinecompiler.io/mcp
codex mcp login onlinecompiler
To use an API key instead, skip the login and put the key in the environment variable that bearer_token_env_var names, in ~/.codex/config.toml:
[mcp_servers.onlinecompiler]
url = "https://api.onlinecompiler.io/mcp" bearer_token_env_var = "ONLINECOMPILER_API_KEY"
Add to .vscode/mcp.json:
{
"servers": { "onlinecompiler": { "url": "https://api.onlinecompiler.io/mcp", "headers": { "Authorization": "Bearer your-api-key" } } } }
Add to .cursor/mcp.json:
{
"mcpServers": { "onlinecompiler": { "url": "https://api.onlinecompiler.io/mcp", "headers": { "Authorization": "Bearer your-api-key" } } } }