fw-context builds a compiler-accurate semantic index of your C/C++ firmware from
compile_commands.json and the libclang AST. Instead of reconstructing the program
from text, the LLM queries a persistent index for symbol definitions, callers,
callees, callback registrations, function pointer assignments, inheritance, and
active source code. 31 MCP tools. Powered by libclang + SQLite + FTS5 + vector search.
For Zephyr, PlatformIO, Mbed OS, Arduino, FreeRTOS — any build that produces
compile_commands.json.
Server Config
{
"mcpServers": {
"fw-context": {
"command": "python3",
"args": [
"-m",
"fw_context_mcp.mcp.server"
]
}
}
}