PlugWiki
Compiler Explorer logo

Compiler Explorer MCP Server: Setup for Claude, Cursor and Other Apps

OfficialRemote
Gethttps://godbolt.org/mcpcompiler-explorer/compiler-explorer

Lets Claude, Cursor and other assistants compile code with Compiler Explorer (godbolt.org), read the assembly and share links.

This is the built-in MCP endpoint of Compiler Explorer, the site at godbolt.org. Your assistant can pick a compiler, compile a snippet and read the assembly, or run the program in the site's sandbox. It is hosted, free and needs no sign-in. Your code is sent to godbolt.org, so do not paste anything private.

Good for

  • Systems and performance programmers who compare compilers and flags
  • Developers who want to see what their code compiles to without leaving the chat
  • Students learning assembly who want instructions explained

Works in

14 should work

Tap an app to see how to set it up and any known problems.

Install Compiler Explorer MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the Compiler Explorer MCP server to Claude Code. Run this command:
    
    claude mcp add --transport http compiler-explorer https://godbolt.org/mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Built from the package data we hold. Not yet tested by us.

Tools

  • Compiles code and shows the assembly, or runs it

    Compiles source code with the compiler and flags you pick and returns the assembly, plus compiler messages. With execute turned on it runs the program in Compiler Explorer's sandbox and returns the output instead. Output is capped at 500 assembly lines and 100 lines each of stdout and stderr unless you raise the caps.

    Try: “Compile this C++ function with GCC -O2 and show me the assembly.”

    Runs code · compile

  • Lists compilers, with filters

    Lists the compilers Compiler Explorer offers. You can filter by language, instruction set or a text match, and ask for only the newest stable ones to keep the list short.

    Try: “Which recent Clang versions can compile C++?”

    Network · list_compilers

  • Lists supported languages

    Lists every supported language with its default compiler and how many compilers it has.

    Try: “What languages does Compiler Explorer support?”

    Network · list_languages

  • Lists libraries you can link

    Lists libraries available for a language, with the same filters as the compiler list.

    Try: “Which Rust libraries can I use here?”

    Network · list_libraries

  • Explains an assembly instruction

    Returns documentation for one instruction of an instruction set.

    Try: “What does the x86 instruction vpternlogd do?”

    Network · lookup_asm_instruction

  • Creates a shareable godbolt.org link

    Saves your code and compiler settings on Compiler Explorer and returns a short link you can share. Anyone with the link can open it.

    Try: “Make a godbolt link for this snippet with GCC 13 and -O3.”

    Write · generate_short_url

  • Reads the code behind a godbolt link

    Fetches the source and compiler settings from a short link. Multi-pane layouts are flattened to the basic compile settings.

    Try: “What code and flags are in https://godbolt.org/z/abc123?”

    Network · get_shortlink_info

Listed by the running server in our sandbox

Permissions

medium risk · 3 things to watch

Medium risk

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • Your code is sent to godbolt.org

    Compiling, running and sharing all happen on Compiler Explorer's servers. Do not paste private code or keys. github.com

  • It can run code, in Compiler Explorer's sandbox

    When the assistant sets execute to true, the program runs on Compiler Explorer's servers, not on your machine, and there is no setting to turn execution off. The docs say sandbox effects do not escape the call. Do not send secrets in source or stdin. github.com

  • Short links are saved on their servers

    A short link stores your code and settings and anyone with the link can open it. Skip the link tool for private code. github.com

Security advisories

No published security advisories for the MCP server as of Nov 1, 2026.

2 other advisories are about the wider compiler-explorer project, not this MCP server. See them on GitHub

Technical details
Turning on read-onlyNo read-only switch is documented. Running a program needs execute set to true, and the only save is a short link on Compiler Explorer.
Talks togodbolt.org (the code you ask it to compile or share)
Sign-in and keysNo account, key or token.

Questions

Is the Compiler Explorer MCP server official?

Yes. It is built into Compiler Explorer itself and served by godbolt.org, from the compiler-explorer/compiler-explorer repository.

What is the Compiler Explorer MCP server URL?

It is https://godbolt.org/mcp. Add it as an HTTP server in your app, as the install box above shows. A self-hosted Compiler Explorer serves the same path on its own host.

Do I need an account or API key?

No. The docs say the endpoint is unauthenticated and needs no credentials.

Does it run my code on my computer?

No. It compiles on Compiler Explorer's servers. If you ask it to execute the program, it runs in the site's ephemeral sandbox.

Is my code private?

No. Your code is sent to godbolt.org. Short links you create can be opened by anyone who has the link.

Which languages and compilers can it use?

Whatever Compiler Explorer supports, which is a very long list. The assistant can ask the server for the languages, compilers and libraries it has.

Is it free?

Yes. The public endpoint is free to use and has no sign-in. Output is capped per call unless you raise the line limits.

Can I use it with a self-hosted Compiler Explorer?

Yes. The docs say every Compiler Explorer deployment serves the MCP endpoint at /mcp on its own host.

Information

updated Nov 2, 2026

Publisher
Official
Endpoint
https://godbolt.org/mcp
Transport
Streamable HTTP
Auth
None
Version
1.0.0
License
BSD-2-Clause
Last commit
Oct 31, 2026
Open issues
777
Listed in
Official MCP registry

WebsiteGitHubOfficial MCP RegistryIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 1
  1. MCP.md · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.