Skip to content

Compiler Explorer

by compiler-explorer · remote · no sign-in to list tools · v1.0.0 · published by GitHub user compiler-explorer

Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links

Changes · 2

7 tools: 2 change things and 5 only read.

Scanned Oct 21, 2026

No check matched anything in the tool definitions. No finding is not a safety guarantee. How the checks work.

claude mcp add --transport http compiler-explorer https://godbolt.org/mcp

Tools

Open a tool for its reasons and full description. Descriptions are the publisher's own words, shown as they are.

7 tools

Changes things 2Claude Code: ask
  • compileCompile source code and return assembly output, stdout, and stderrNo findings

    Why it is in this group

    • Nothing in its name or description says what it does, so it is counted as a write.
    • The server marks it read-only (readOnlyHint: true), but an annotation never lowers a class.
    Description, as the server wrote it
    Compile source code and return assembly output, stdout, and stderr

    Annotations the server declares

    • title: Compile (and optionally execute) source code
    • readOnlyHint: true
    • openWorldHint: false
  • generate_short_urlCreate a Compiler Explorer short URL for sharing code with compiler settingsNo findings

    Why it is in this group

    • The name "generate_short_url" says "generate": a word for a change.
    Description, as the server wrote it
    Create a Compiler Explorer short URL for sharing code with compiler settings

    Annotations the server declares

    • title: Generate Compiler Explorer short URL
    • readOnlyHint: false
    • destructiveHint: false
    • idempotentHint: true
    • openWorldHint: false
Only reads 5Claude Code: allow
  • list_compilersList available compilers, optionally filtered by languageNo findings

    Why it is in this group

    • The name "list_compilers" says "list": a word for reading.
    Description, as the server wrote it
    List available compilers, optionally filtered by language

    Annotations the server declares

    • title: List compilers
    • readOnlyHint: true
    • openWorldHint: false
  • list_languagesList supported languages.No findings

    Why it is in this group

    • The name "list_languages" says "list": a word for reading.
    Description, as the server wrote it
    List supported languages. Each entry has `defaultCompiler` and `compilerCount`.

    Annotations the server declares

    • title: List languages
    • readOnlyHint: true
    • openWorldHint: false
  • list_librariesList available libraries for a given programming languageNo findings

    Why it is in this group

    • The name "list_libraries" says "list": a word for reading.
    Description, as the server wrote it
    List available libraries for a given programming language

    Annotations the server declares

    • title: List libraries
    • readOnlyHint: true
    • openWorldHint: false
  • lookup_asm_instructionLook up documentation for an assembly instructionNo findings

    Why it is in this group

    • The name "lookup_asm_instruction" says "lookup": a word for reading.
    Description, as the server wrote it
    Look up documentation for an assembly instruction

    Annotations the server declares

    • title: Look up assembly instruction
    • readOnlyHint: true
    • openWorldHint: false

This is not a safety rating, and no finding is not a safety guarantee. The groups and findings come from fixed checks of the tool definitions the server returned on the date shown, not from its code or what it does when called. How the checks work.

Install

Pinned to version 1.0.0. Values in angle brackets are yours to fill in.

claude mcp add --transport http compiler-explorer https://godbolt.org/mcp

Run in a terminal.

Claude Code permissions

Allow the reads, ask before a change, deny the deletes. Paste into .claude/settings.json.

.claude/settings.json
{
  "permissions": {
    "allow": [
      "mcp__compiler-explorer__list_compilers",
      "mcp__compiler-explorer__list_languages",
      "mcp__compiler-explorer__list_libraries",
      "mcp__compiler-explorer__lookup_asm_instruction",
      "mcp__compiler-explorer__get_shortlink_info"
    ],
    "ask": [
      "mcp__compiler-explorer__compile",
      "mcp__compiler-explorer__generate_short_url"
    ],
    "deny": []
  }
}

Tools that only read are allowed, tools that change things ask first, tools that delete or cancel are denied. It assumes the server is installed as compiler-explorer. Review it before you use it.