Compiler Explorer
Server Details
Compile code with thousands of compilers, inspect the assembly, and share godbolt.org links
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- compiler-explorer/compiler-explorer
- GitHub Stars
- 18,985
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 7 tools
Each tool maps to a distinct resource or action: compile for building, generate_short_url/get_shortlink_info are clear inverses, the three list_* tools each target a different resource (languages, compilers, libraries), and lookup_asm_instruction is unique. The only mild adjacency is list_languages returning defaultCompiler/compilerCount, but descriptions keep the boundaries clear.
All names use snake_case with a leading verb, which is predictable. The one blemish is terminology drift between generate_short_url and get_shortlink_info ('short_url' vs 'shortlink'), which weakens the pairing slightly.
Seven tools is well-scoped for a Compiler Explorer server: one core action, two sharing tools, three discovery tools, and one reference lookup. No tool appears redundant or filler.
Core workflows are covered: compile, share/retrieve snippets, discover languages/compilers/libraries, and look up assembly docs. Execution is implied as an existing CE feature (executors are mentioned only as being flattened in shortlinks), so there is a minor gap around run/conformance and nested CMake configurations that agents cannot reach.
Available Tools
7 toolscompileBRead-onlyInspect
Compile source code and return assembly output, stdout, and stderr
Inputs: source (required), language (required), stdin, execute, +7 more.
generate_short_urlAIdempotentInspect
Create a Compiler Explorer short URL for sharing code with compiler settings
Inputs: source (required), compiler (required), language (required), options, +1 more.
get_shortlink_infoARead-onlyInspect
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.
Inputs: id (required).
list_compilersCRead-onlyInspect
List available compilers, optionally filtered by language
Inputs: lean, match, language, maxResults, +3 more.
list_languagesARead-onlyInspect
List supported languages. Each entry has defaultCompiler and compilerCount.
Inputs: no named parameters.
list_librariesCRead-onlyInspect
List available libraries for a given programming language
Inputs: language (required), lean, match, maxResults.
lookup_asm_instructionCRead-onlyInspect
Look up documentation for an assembly instruction
Inputs: opcode (required), instruction_set (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Run Python, Java, C, C++, C#, Go, Rust and 39 more languages, each run in a fresh, offline sandbox.
Search 64 ISAs, system registers, encodings, timings, and 16k+ chips; decode machine words.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Get up-to-date, version-specific documentation and code examples from official sources directly in…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables compiling source code and exploring assembly outputs via the Godbolt Compiler Explorer API. Supports multiple languages, compilers, and optimization levels.6MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables users to compile C++ code and retrieve assembly output through the Compiler Explorer (godbolt.org) API. It supports standard tool calls and Server-Sent Events for streaming compilation status and results.-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to consult language references, type-check and compile code to WebAssembly, run validation, and explain errors. A compiler is bundled, so no additional installation is required.MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that connects LLMs to the Compiler Explorer API, enabling them to compile code, explore compiler features, and analyze optimizations across different compilers and languages.516MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.