Skip to content
SkillForAgents.com
CommunityFreeFull-Stack Coding

mcp-cpp

MCP server exposing clangd's semantic C++ analysis — symbol search, inheritance and call hierarchies — across CMake and Meson projects.

View Source
Install
cargo install mcp-cpp-server

C++ codebases are hostile territory for text-only browsing — preprocessor macros expand, templates instantiate into types that don’t appear anywhere in the source, and inheritance hierarchies span files a grep will never connect. mcp-cpp closes that gap by driving clangd, the same engine behind IDE IntelliSense, and exposing its understanding through three MCP tools: get_project_details for build-environment discovery, search_symbols for boundary-aware symbol search, and analyze_symbol_context for inheritance and call-hierarchy analysis.

It’s built for large, multi-component codebases specifically — the kind found in embedded Linux projects — and can track several C++ components simultaneously, auto-detecting CMake or Meson build directories (or switching between them) and distinguishing project code from external dependencies so search results aren’t drowned in library internals. An indexing monitor watches clangd’s index state directly to confirm full symbol coverage before results are trusted.

Written in Rust, it ships as a cargo install-able binary or a Docker image bundling clangd-20 on an Ubuntu base. Either way, the target project needs a compile_commands.json — generated by CMake or Meson — since that’s what clangd itself requires to reason about the code.

Related

Similar MCP Servers

C
Verified

Cloudflare

Official Cloudflare MCP servers — Workers, KV, R2, D1, DNS, and the rest of the platform from an agent session.

DevOps & CI/CDFull-Stack Coding4.1KFreemium
C
Verified

Context7

Pulls current, version-accurate library documentation directly into context — no stale training-data APIs.

Search & ResearchFull-Stack Coding60.5KFreemium
EM
Verified

ESLint MCP Server

Official ESLint MCP server — runs real lint checks against a project's own config instead of an agent guessing at JavaScript style rules.

Full-Stack Coding27.5KFree