Compiler Explorer
io.github.compiler-explorer/compiler-explorer
Serveur MCP OK 7 outils
Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links
Fiche technique
- Auteur
- compiler-explorer (espace de noms du registre)
- Dépôt
- github.com/compiler-explorer/compiler-explorer
- Site
- godbolt.org
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://godbolt.org/mcp Streamable HTTP
- Outils
- 7
- Catégories
- Développement et code
- Dernière mise à jour
- 18 août 2026
- Publication
- 18 août 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.compiler-explorer/compiler-explorer)<a href="https://latlas.dev/mcp/io.github.compiler-explorer/compiler-explorer"><img src="https://latlas.dev/badge/fiche/io.github.compiler-explorer/compiler-explorer.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://godbolt.org/mcp
- Dernier résultat
- OK 28 nov. 2026, 09:25
- Temps de réponse
- 755 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- compiler-explorer gh-20548
- Outils
- 7
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 09:25 | OK | 755 ms | 7 |
Outils exposés (7, réponse à tools/list, 28 nov. 2026)
compile
Compile source code and return assembly output, stdout, and stderr
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| source | string | oui | Source code to compile |
| language | string | oui | Language ID (e.g. "c++", "c", "rust", "python") |
| compiler | string | non | Compiler ID from list_compilers (e.g. "g161"). If omitted, uses the language's `defaultCompiler` from list_languages. |
| options | string | non | Compiler flags (e.g. "-O2 -std=c++20 -Wall") |
| execute | boolean | non | 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 | non | Standard input for execution (requires execute=true) |
| filters | object | non | Output filters |
| libraries | array<object> | non | Libraries to link. |
| maxAsmLines | integer | non | Cap asm output (default 500 lines). |
| maxStdoutLines | integer | non | Cap each stdout stream — compile and execute separately (default 100). |
| maxStderrLines | integer | non | Cap each stderr stream — compile and execute separately (default 100). |
list_compilers
List available compilers, optionally filtered by language
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| language | string | non | Language ID to filter by (e.g. "c++", "rust", "python") |
| instructionSet | enum: "6502" | "aarch64" | "amd64" | "x86" | "arm32" | "avr" | "beam" | "c6x" … | non | Target architecture filter. Combine with `latestPerMajor: true` for "newest X for arch Y" (e.g. `{language:"c++", instructionSet:"amd64", latestPerMajor:true}`). |
| match | string | non | 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 | non | Cap full-detail entries (default 25). Beyond the cap, degrades to lean (id+name only) with a refinement hint. |
| lean | boolean | non | Force id+name only, regardless of count. Useful to browse the catalog before drilling in. |
| latestPerMajor | boolean | non | "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 | non | 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`.
Aucun paramètre.
list_libraries
List available libraries for a given programming language
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| language | string | oui | Language ID (e.g. "c++", "rust") |
| match | string | non | 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 | non | Cap full-detail entries (default 25). Beyond the cap, degrades to lean (id+name only) with a refinement hint. |
| lean | boolean | non | 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
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| instruction_set | enum: "6502" | "aarch64" | "amd64" | "amd_cdna1" | "amd_cdna2" | "amd_cdna3" | "amd_cdna4" | "amd_cdna5" … | oui | Instruction set architecture (no default — must match the asm dialect being looked up). |
| opcode | string | oui | Assembly instruction mnemonic (e.g. "MOV", "ADD", "JMP") |
generate_short_url
Create a Compiler Explorer short URL for sharing code with compiler settings
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| source | string | oui | Source code |
| language | string | oui | Language ID (e.g. "c++", "c", "rust") |
| compiler | string | oui | Compiler ID from list_compilers (e.g. "g161", "clang_trunk") |
| options | string | non | Compiler flags (e.g. "-O2 -std=c++20") |
| libraries | array<object> | non | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Short link ID or full URL (e.g. "G38YP7eW4" or "https://godbolt.org/z/G38YP7eW4") |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://godbolt.org/mcp. Formats repris de la documentation de chaque client.
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"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
Compiler Explorer · L’Atlas · Test du
[Compiler Explorer — L’Atlas](https://latlas.dev/mcp/io.github.compiler-explorer/compiler-explorer)Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.