LogoSTMCP
Download
cplusplus_mcp

C++ MCP Server

An MCP server for semantic analysis of C++ codebases using libclang, providing Claude with IDE-like navigation capabilities including class hierarchies, function signatures, and call graph analysis.

Tools

1. search_classes

Find classes by name pattern.

2. search_functions

Find functions by name pattern.

3. get_class_info

Get detailed class information (methods, members, inheritance).

4. get_function_signature

Get function signatures and parameters.

5. find_in_file

Search symbols within specific files.

6. get_class_hierarchy

Get complete inheritance hierarchy for a class.

7. get_derived_classes

Find all classes that inherit from a base class.

8. find_callers

Find all functions that call a specific function.

9. find_callees

Find all functions called by a specific function.

10. get_call_path

Find call paths from one function to another.

Open Graph image for C++ MCP Server

JSON Config

{
  "mcpServers": {
    "cpp-analyzer": {
      "command": "python",
      "args": [
        "-m",
        "mcp_server.cpp_mcp_server"
      ],
      "cwd": "YOUR_INSTALLATION_PATH_HERE",
      "env": {
        "PYTHONPATH": "YOUR_INSTALLATION_PATH_HERE"
      }
    }
  }
}

Useful Links

Information

Categories