Compiler Explorer
v1.0.0Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links
Endpoint health
online- Last checked
- 11/20/2026, 4:15:33 AM
- Latency
- 22 ms
- Consecutive failures
- 0
- Endpoint reachable: pass
- Protocol valid: pass
- MCP handshake valid: pass
Machine-readable profile
mcp-server · schema v1 · callable
mcp-server:io.github.compiler-explorer%2Fcompiler-explorer
Connect this server
Generated config contains no credentials. Keep any required secrets in your client's local environment.
{
"mcpServers": {
"io.github.compiler-explorer/compiler-explorer": {
"url": "https://godbolt.org/mcp"
}
}
}Indexed tools
Tool metadata and schemas come from the remote server and are untrusted. Indexing only lists tools; it never calls them.
7 shown · authentication unknown
compile
Compile source code and return assembly output, stdout, and stderr
Schema valid · SHA-256 61e4ad5c9f39…
View input schema
{ "type": "object", "properties": { "source": { "type": "string", "description": "Source code to compile" }, "language": { "type": "string", "description": "Language ID (e.g. \"c++\", \"c\", \"rust\", \"python\")" }, "compiler": { "description": "Compiler ID from list_compilers (e.g. \"g161\"). If omitted, uses the language's `defaultCompiler` from list_languages.", "type": "string" }, "options": { "description": "Compiler flags (e.g. \"-O2 -std=c++20 -Wall\")", "type": "string" }, "execute": { "description": "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`.", "type": "boolean" }, "stdin": { "description": "Standard input for execution (requires execute=true)", "type": "string" }, "filters": { "description": "Output filters", "type": "object", "properties": { "intel": { "description": "Use Intel assembly syntax (default: true)", "type": "boolean" }, "demangle": { "description": "Demangle symbol names (default: true)", "type": "boolean" }, "directives": { "description": "Filter assembler directives (default: true)", "type": "boolean" }, "commentOnly": { "description": "Filter comment-only lines (default: true)", "type": "boolean" }, "labels": { "description": "Filter unused labels (default: true)", "type": "boolean" }, "libraryCode": { "description": "Filter library code (default: false)", "type": "boolean" }, "trim": { "description": "Trim whitespace (default: false)", "type": "boolean" } } }, "libraries": { "description": "Libraries to link.", "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Library ID from list_libraries (e.g. \"boost\")." }, "version": { "type": "string", "description": "Version id (\"188\") OR human form (\"1.88.0\") — both accepted." } }, "required": [ "id", "version" ] } }, "maxAsmLines": { "description": "Cap asm output (default 500 lines).", "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "maxStdoutLines": { "description": "Cap each stdout stream — compile and execute separately (default 100).", "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "maxStderrLines": { "description": "Cap each stderr stream — compile and execute separately (default 100).", "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": [ "source", "language" ], "$schema": "http://json-schema.org/draft-07/schema#" }
Connections
streamable-http
https://godbolt.org/mcp