Godbolt Compiler Explorer
@benestar
About Godbolt Compiler Explorer
A Model Context Protocol (MCP) server that provides access to the Godbolt Compiler Explorer REST API endpoints. Built with the FastMCP Python library.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"godbolt-compiler-explorer": {
"command": "/absolute/path/to/godbolt-mcp/venv/bin/python",
"args": [
"/absolute/path/to/godbolt-mcp/godbolt_mcp.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Godbolt Compiler Explorer?
Godbolt Compiler Explorer is an MCP (Model Context Protocol) server that integrates with the Compiler Explorer service (godbolt.org). It allows MCP-compatible agents to compile source code, format code, and retrieve information about supported languages, compilers, libraries, and assembly instructions.
How to use Godbolt Compiler Explorer?
Clone the repository, create and activate a Python virtual environment, and install dependencies from requirements.txt. Run the server standalone with python godbolt_mcp.py, or add it to an MCP-compatible agent by specifying the virtual environment's Python interpreter and the path to godbolt_mcp.py in the MCP configuration JSON.
Key features of Godbolt Compiler Explorer
- Compile source code with user arguments, files, and libraries
- Compile CMake projects with compiler and library options
- Format source code using available code formatters
- List all supported programming languages
- Get available compilers and libraries per language
- Retrieve assembly instruction documentation for any opcode
Use cases of Godbolt Compiler Explorer
- Compile a C++ file with a specific GCC version and optimization level, then examine the generated assembly
- Compile a Rust program with the latest Rust compiler and release optimizations
- Automate code formatting across supported languages within agent workflows
- Query available compilers for a language to choose the best toolchain for a task
FAQ from Godbolt Compiler Explorer
What compilers and languages are supported?
The server provides resources to list all supported languages (resource://languages) and available compilers for a given language (resource://compilers/{language_id}).
How do I install and configure the server?
Clone the repository, set up a Python virtual environment, install dependencies, then run the server or add it to your MCP configuration with the absolute paths to the virtual environment Python and the script.
What dependencies are required?
The server requires fastmcp>=0.2.0 for the MCP framework and httpx>=0.25.0 for HTTP requests.
Can I use it without an MCP agent?
Yes. The server can be run standalone using python godbolt_mcp.py, which starts it as a local MCP server.
Does it support CMake projects?
Yes. The compile_cmake tool accepts compiler ID, source, optional arguments, files, and libraries to compile CMake-based code.
Frequently asked questions
What compilers and languages are supported?
The server provides resources to list all supported languages (`resource://languages`) and available compilers for a given language (`resource://compilers/{language_id}`).
How do I install and configure the server?
Clone the repository, set up a Python virtual environment, install dependencies, then run the server or add it to your MCP configuration with the absolute paths to the virtual environment Python and the script.
What dependencies are required?
The server requires `fastmcp>=0.2.0` for the MCP framework and `httpx>=0.25.0` for HTTP requests.
Can I use it without an MCP agent?
Yes. The server can be run standalone using `python godbolt_mcp.py`, which starts it as a local MCP server.
Does it support CMake projects?
Yes. The `compile_cmake` tool accepts compiler ID, source, optional arguments, files, and libraries to compile CMake-based code.
Basic information
More Developer Tools MCP servers

directree
coburn2716directree MCP server — query the honest software directory from any AI assistant
Altronis
sypherinMCP server + CLI for Altronis — Singapore AI consulting. Ask the Lyra consultant, generate a grant-matched AI transformation plan, pull curated SG AI events/news. Read-only, wraps altronis.sg.
Vibgrate MCP
VibgrateQuery your team's drift, vulnerability, and migration data from any AI assistant. Vibgrate MCP connects Cursor, Claude, ChatGPT, Windsurf, or VS Code to Vibgrate Cloud: 51 tools for DriftScores, CVEs and EOL runtimes, up
OrangePro
Aamir SiddiquiOrangePro local-first CLI + MCP server for behavior mapping, grounded test generation, and dynamic proof.

BetterBugs
BetterBugsThe BetterBugs MCP (Model Context Protocol) enables you to load BetterBugs bug reports (via report links) directly to your preferred AI Agents and developer environments with MCP Client capabilities (such as Cursor, VS C
Comments