L'Atlas / Serveurs MCP / Compiler Explorer
Serveur MCP

Compiler Explorer

io.github.compiler-explorer/compiler-explorer

Serveur MCP OK 7 outils

Faire examiner Voir les tarifs

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

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.github.compiler-explorer/compiler-explorer.svg)](https://latlas.dev/mcp/io.github.compiler-explorer/compiler-explorer)
HTML
<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

DateRésultatRéponseOutils
28 nov. 2026, 09:25OK755 ms7

Outils exposés (7, réponse à tools/list, 28 nov. 2026)

compile

Compile source code and return assembly output, stdout, and stderr

ParamètreTypeRequisDescription
sourcestringouiSource code to compile
languagestringouiLanguage ID (e.g. "c++", "c", "rust", "python")
compilerstringnonCompiler ID from list_compilers (e.g. "g161"). If omitted, uses the language's `defaultCompiler` from list_languages.
optionsstringnonCompiler flags (e.g. "-O2 -std=c++20 -Wall")
executebooleannonRun the program instead of returning assembly. `asm` becomes empty; runtime output goes to top-level `stdout`/`stderr`; compile diagnostics move to `buildResult.stdout`/`stderr`.
stdinstringnonStandard input for execution (requires execute=true)
filtersobjectnonOutput filters
librariesarray<object>nonLibraries to link.
maxAsmLinesintegernonCap asm output (default 500 lines).
maxStdoutLinesintegernonCap each stdout stream — compile and execute separately (default 100).
maxStderrLinesintegernonCap each stderr stream — compile and execute separately (default 100).

list_compilers

List available compilers, optionally filtered by language

ParamètreTypeRequisDescription
languagestringnonLanguage ID to filter by (e.g. "c++", "rust", "python")
instructionSetenum: "6502" | "aarch64" | "amd64" | "x86" | "arm32" | "avr" | "beam" | "c6x" …nonTarget architecture filter. Combine with `latestPerMajor: true` for "newest X for arch Y" (e.g. `{language:"c++", instructionSet:"amd64", latestPerMajor:true}`).
matchstringnonCase-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…
maxResultsintegernonCap full-detail entries (default 25). Beyond the cap, degrades to lean (id+name only) with a refinement hint.
leanbooleannonForce id+name only, regardless of count. Useful to browse the catalog before drilling in.
latestPerMajorbooleannon"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`.
includeExperimentalbooleannonWith `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ètreTypeRequisDescription
languagestringouiLanguage ID (e.g. "c++", "rust")
matchstringnonCase-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.
maxResultsintegernonCap full-detail entries (default 25). Beyond the cap, degrades to lean (id+name only) with a refinement hint.
leanbooleannonForce 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ètreTypeRequisDescription
instruction_setenum: "6502" | "aarch64" | "amd64" | "amd_cdna1" | "amd_cdna2" | "amd_cdna3" | "amd_cdna4" | "amd_cdna5" …ouiInstruction set architecture (no default — must match the asm dialect being looked up).
opcodestringouiAssembly instruction mnemonic (e.g. "MOV", "ADD", "JMP")

generate_short_url

Create a Compiler Explorer short URL for sharing code with compiler settings

ParamètreTypeRequisDescription
sourcestringouiSource code
languagestringouiLanguage ID (e.g. "c++", "c", "rust")
compilerstringouiCompiler ID from list_compilers (e.g. "g161", "clang_trunk")
optionsstringnonCompiler flags (e.g. "-O2 -std=c++20")
librariesarray<object>nonLibraries 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ètreTypeRequisDescription
idstringouiShort 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.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport acceptédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Adresse distante utilisée : https://godbolt.org/mcp. Formats repris de la documentation de chaque client.

Claude Code
claude mcp add --transport http compiler-explorer https://godbolt.org/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : compiler-explorer ; URL : https://godbolt.org/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : compiler-explorer ; Server URL : https://godbolt.org/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "compiler-explorer": {
      "url": "https://godbolt.org/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "compiler-explorer": {
      "type": "http",
      "url": "https://godbolt.org/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "compiler-explorer": {
      "url": "https://godbolt.org/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "compiler-explorer": {
      "httpUrl": "https://godbolt.org/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[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

Markdown
[Compiler Explorer — L’Atlas](https://latlas.dev/mcp/io.github.compiler-explorer/compiler-explorer)
Méthode et limites des tests

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.