Compiler Explorer
io.github.compiler-explorer/compiler-explorer
MCP server OK 7 tools
Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links
Technical sheet
- Author
- compiler-explorer (registry namespace)
- Repository
- github.com/compiler-explorer/compiler-explorer
- Site
- godbolt.org
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://godbolt.org/mcp Streamable HTTP
- Tools
- 7
- Categories
- Development and code
- Last updated
- 18 Aug 2026
- Published
- 18 Aug 2026
Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.compiler-explorer/compiler-explorer)<a href="https://latlas.dev/en/mcp/io.github.compiler-explorer/compiler-explorer"><img src="https://latlas.dev/badge/fiche/io.github.compiler-explorer/compiler-explorer.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://godbolt.org/mcp
- Last result
- OK 28 Nov 2026, 09:25
- Response time
- 755 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- compiler-explorer gh-20548
- Tools
- 7
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 09:25 | OK | 755 ms | 7 |
Exposed tools (7, from tools/list, 28 Nov 2026)
compile
Compile source code and return assembly output, stdout, and stderr
| Parameter | Type | Required | Description |
|---|---|---|---|
| source | string | yes | Source code to compile |
| language | string | yes | Language ID (e.g. "c++", "c", "rust", "python") |
| compiler | string | no | Compiler ID from list_compilers (e.g. "g161"). If omitted, uses the language's `defaultCompiler` from list_languages. |
| options | string | no | Compiler flags (e.g. "-O2 -std=c++20 -Wall") |
| execute | boolean | no | Run the program instead of returning assembly. `asm` becomes empty; runtime output goes to top-level `stdout`/`stderr`; compile diagnostics move to `buildResult.stdout`/`stderr`. |
| stdin | string | no | Standard input for execution (requires execute=true) |
| filters | object | no | Output filters |
| libraries | array<object> | no | Libraries to link. |
| maxAsmLines | integer | no | Cap asm output (default 500 lines). |
| maxStdoutLines | integer | no | Cap each stdout stream — compile and execute separately (default 100). |
| maxStderrLines | integer | no | Cap each stderr stream — compile and execute separately (default 100). |
list_compilers
List available compilers, optionally filtered by language
| Parameter | Type | Required | Description |
|---|---|---|---|
| language | string | no | Language ID to filter by (e.g. "c++", "rust", "python") |
| instructionSet | enum: "6502" | "aarch64" | "amd64" | "x86" | "arm32" | "avr" | "beam" | "c6x" … | no | Target architecture filter. Combine with `latestPerMajor: true` for "newest X for arch Y" (e.g. `{language:"c++", instructionSet:"amd64", latestPerMajor:true}`). |
| match | string | no | Case-insensitive AND-of-tokens filter on id and name. Punctuation splits tokens; numeric tokens match whole-word ("gcc 14.1" matches "14.1.0" not "14.10"); alphanumeric tokens substring-match ("g14" matches "g142"). Literal text only — for "newest version" use `latestPerMajor`; for "newest X on arc… |
| maxResults | integer | no | Cap full-detail entries (default 25). Beyond the cap, degrades to lean (id+name only) with a refinement hint. |
| lean | boolean | no | Force id+name only, regardless of count. Useful to browse the catalog before drilling in. |
| latestPerMajor | boolean | no | "Newest X" filter. By release track (stable/nightly/prerelease/experimental): newest stable per (language, instructionSet, semver major); all nightly + prerelease; experimental skipped unless `includeExperimental: true`. |
| includeExperimental | boolean | no | With `latestPerMajor: true`, also include experimental compilers (c++ proposal forks, llvm-mos platform variants). Off by default — bloats "newest X" answers. |
list_languages
List supported languages. Each entry has `defaultCompiler` and `compilerCount`.
No parameters.
list_libraries
List available libraries for a given programming language
| Parameter | Type | Required | Description |
|---|---|---|---|
| language | string | yes | Language ID (e.g. "c++", "rust") |
| match | string | no | Case-insensitive AND-of-tokens filter on id, name, and version strings (so "boost 1.88" finds Boost when one of its versions matches 1.88.x). Numeric tokens match version-prefix; alphanumeric substring. |
| maxResults | integer | no | Cap full-detail entries (default 25). Beyond the cap, degrades to lean (id+name only) with a refinement hint. |
| lean | boolean | no | Force id+name only, regardless of count. Useful to browse the catalog before drilling in. |
lookup_asm_instruction
Look up documentation for an assembly instruction
| Parameter | Type | Required | Description |
|---|---|---|---|
| instruction_set | enum: "6502" | "aarch64" | "amd64" | "amd_cdna1" | "amd_cdna2" | "amd_cdna3" | "amd_cdna4" | "amd_cdna5" … | yes | Instruction set architecture (no default — must match the asm dialect being looked up). |
| opcode | string | yes | Assembly instruction mnemonic (e.g. "MOV", "ADD", "JMP") |
generate_short_url
Create a Compiler Explorer short URL for sharing code with compiler settings
| Parameter | Type | Required | Description |
|---|---|---|---|
| source | string | yes | Source code |
| language | string | yes | Language ID (e.g. "c++", "c", "rust") |
| compiler | string | yes | Compiler ID from list_compilers (e.g. "g161", "clang_trunk") |
| options | string | no | Compiler flags (e.g. "-O2 -std=c++20") |
| libraries | array<object> | no | Libraries to include. |
get_shortlink_info
Retrieve source and compiler config from a CE short URL. Compiler entries are returned in the `compile` tool's shape ({compiler, options, libraries:[{id, version}]}). Multi-pane shortlinks (executors, conformance views, CMake trees, per-compiler filters/tools) are flattened — only the basic compile inputs survive.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Short link ID or full URL (e.g. "G38YP7eW4" or "https://godbolt.org/z/G38YP7eW4") |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://godbolt.org/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http compiler-explorer https://godbolt.org/mcpCustomize > Connectors > + Add > Add custom connector ; Name : compiler-explorer ; URL : https://godbolt.org/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : compiler-explorer ; Server URL : https://godbolt.org/mcp ; Create as a plugin{
"mcpServers": {
"compiler-explorer": {
"url": "https://godbolt.org/mcp"
}
}
}{
"mcpServers": {
"compiler-explorer": {
"type": "http",
"url": "https://godbolt.org/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"compiler-explorer": {
"url": "https://godbolt.org/mcp"
}
}
}{
"mcpServers": {
"compiler-explorer": {
"httpUrl": "https://godbolt.org/mcp"
}
}
}[mcp_servers.compiler-explorer]
url = "https://godbolt.org/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
Compiler Explorer · L’Atlas · Tested on
[Compiler Explorer — L’Atlas](https://latlas.dev/en/mcp/io.github.compiler-explorer/compiler-explorer)Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.