L'Atlas / MCP servers / Compiler Explorer
MCP server

Compiler Explorer

io.github.compiler-explorer/compiler-explorer

MCP server OK 7 tools

Get a review See pricing

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

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.compiler-explorer/compiler-explorer.svg?lang=en)](https://latlas.dev/en/mcp/io.github.compiler-explorer/compiler-explorer)
HTML
<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

DateResultResponseTools
28 Nov 2026, 09:25OK755 ms7

Exposed tools (7, from tools/list, 28 Nov 2026)

compile

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

ParameterTypeRequiredDescription
sourcestringyesSource code to compile
languagestringyesLanguage ID (e.g. "c++", "c", "rust", "python")
compilerstringnoCompiler ID from list_compilers (e.g. "g161"). If omitted, uses the language's `defaultCompiler` from list_languages.
optionsstringnoCompiler flags (e.g. "-O2 -std=c++20 -Wall")
executebooleannoRun the program instead of returning assembly. `asm` becomes empty; runtime output goes to top-level `stdout`/`stderr`; compile diagnostics move to `buildResult.stdout`/`stderr`.
stdinstringnoStandard input for execution (requires execute=true)
filtersobjectnoOutput filters
librariesarray<object>noLibraries to link.
maxAsmLinesintegernoCap asm output (default 500 lines).
maxStdoutLinesintegernoCap each stdout stream — compile and execute separately (default 100).
maxStderrLinesintegernoCap each stderr stream — compile and execute separately (default 100).

list_compilers

List available compilers, optionally filtered by language

ParameterTypeRequiredDescription
languagestringnoLanguage ID to filter by (e.g. "c++", "rust", "python")
instructionSetenum: "6502" | "aarch64" | "amd64" | "x86" | "arm32" | "avr" | "beam" | "c6x" …noTarget architecture filter. Combine with `latestPerMajor: true` for "newest X for arch Y" (e.g. `{language:"c++", instructionSet:"amd64", latestPerMajor:true}`).
matchstringnoCase-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…
maxResultsintegernoCap full-detail entries (default 25). Beyond the cap, degrades to lean (id+name only) with a refinement hint.
leanbooleannoForce id+name only, regardless of count. Useful to browse the catalog before drilling in.
latestPerMajorbooleanno"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`.
includeExperimentalbooleannoWith `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

ParameterTypeRequiredDescription
languagestringyesLanguage ID (e.g. "c++", "rust")
matchstringnoCase-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.
maxResultsintegernoCap full-detail entries (default 25). Beyond the cap, degrades to lean (id+name only) with a refinement hint.
leanbooleannoForce id+name only, regardless of count. Useful to browse the catalog before drilling in.

lookup_asm_instruction

Look up documentation for an assembly instruction

ParameterTypeRequiredDescription
instruction_setenum: "6502" | "aarch64" | "amd64" | "amd_cdna1" | "amd_cdna2" | "amd_cdna3" | "amd_cdna4" | "amd_cdna5" …yesInstruction set architecture (no default — must match the asm dialect being looked up).
opcodestringyesAssembly instruction mnemonic (e.g. "MOV", "ADD", "JMP")

generate_short_url

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

ParameterTypeRequiredDescription
sourcestringyesSource code
languagestringyesLanguage ID (e.g. "c++", "c", "rust")
compilerstringyesCompiler ID from list_compilers (e.g. "g161", "clang_trunk")
optionsstringnoCompiler flags (e.g. "-O2 -std=c++20")
librariesarray<object>noLibraries 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.

ParameterTypeRequiredDescription
idstringyesShort 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.

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

Ready-to-copy configs

Remote address used: https://godbolt.org/mcp. Formats taken from each client’s documentation.

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"

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

Markdown
[Compiler Explorer — L’Atlas](https://latlas.dev/en/mcp/io.github.compiler-explorer/compiler-explorer)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.