Fw MCP Server

Build-aware code intelligence MCP server for embedded C/C++ firmware

Local serverstdioPython

What is the Fw MCP Server?

Build-aware code intelligence MCP server for embedded C/C++ firmware

What you get

fw-context builds a persistent semantic index from compile_commands.json and the libclang AST, then exposes it to coding agents through MCP. Instead of reconstructing your firmware through repeated file reads and text searches, the agent can query the program structure produced by the active build configuration.

  • compiler flags and preprocessor definitions
  • target, board and product configuration
  • include paths and generated headers
  • Kconfig and Devicetree selections
  • selected driver and HAL implementations
  • templates, inheritance and virtual dispatch

Configuration and credentials

  • Python 3.11 or newer - libclang - a project that can produce compile_commands.json - an MCP-capable coding agent such as Claude Code or OpenCode Ollama is optional. It is used only for local semantic enrichment and symbol explanations; the core compiler-derived index does not require it.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
libclanga project that can produce compile_commands.json
functionpointer assignments and indirect call sites
translationunit and project/vendor metadata
buildaware review of firmware commits

Configuration

  • Python 3.11 or newer - libclang - a project that can produce compile_commands.json - an MCP-capable coding agent such as Claude Code or OpenCode Ollama is optional. It is used only for local semantic enrichment and symbol explanations; the core compiler-derived index does not require it.

Example prompts to try

  • “Use Fw to libclang.”
  • “Use Fw to function.”
  • “Use Fw to translation.”

Frequently asked questions

Build-aware code intelligence MCP server for embedded C/C++ firmware Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.