MCP Server
CppDepend MCP Server
The CppDepend MCP Server is a Model Context Protocol (MCP) server that delivers deep workspace analysis and advanced code inspection capabilities for C/C++ projects, powered by the CppDepend API.
The CppDepend MCP Server is part of CppDepend.AI, the CppDepend initiative to fix C/C++ issues at scale with AI. CppDepend drives your coding agent (Claude Code, Codex, GitHub Copilot and others) to fix hundreds of issues in a single run, then rebuilds, runs the tests, reviews each changed method and re-analyzes the code, so the progress is measured.
What it does
It turns CppDepend's deep code insights into AI-powered actions:
- Fix one or multiple complex issues automatically
- Generate code queries or rules on demand
- Interact with CppDepend's rich data using natural language
- Refactor several files at once to improve code quality and maintainability
Its key strengths are:
- Privacy: the CppDepend scan runs entirely on-premises. Your code stays private on your machine.
- Reliability: the AI gets reliable, structured data instead of raw file dumps.
- Performance: faster responses and lower token costs.
- Objectivity: no LLM bias, just CppDepend's proven analysis.
Features
- Workspace overview: give the LLM comprehensive, detailed and unbiased information about your C/C++ workspace, obtained quickly, without sending source code to the LLM and without consuming tokens.
- Source code analysis: analyze C/C++ source files, code quality and project structure.
- Dependency tracking: explore project dependencies and generate SVG diagrams of your code.
- Issues list: identify code issues from CppDepend rules.
- Issues fix: provide rich issue data to guide the assistant and the LLM toward proper fixes, including complex fixes that involve multiple source files.
- Web report: generate a full CppDepend web report and open it in the browser.
- CQLinq queries and rules: guide the LLM in creating custom code queries, rules or quality gates based on your requirements.
- Answers to complex requests about your code: based on your request, generate and run complex queries on the fly to inspect:
- Source code files
- Code quality (lines of code, comments, complexity, maintainability index, code coverage)
- Code dependencies (usage, coupling, cohesion, Clean Architecture)
- Object-oriented usage (inheritance, interfaces, encapsulation, instantiation, SOLID principles)
- Naming of code elements
- State mutability (fields and member variables)
- Changes since a baseline
- Issues, rules and quality gate status
Requirements
- Windows, Linux or macOS
- .NET 10.0 runtime or higher (the server runs on .NET)
- A CppDepend redistributable with an evaluation or a license
To start an evaluation or buy a license: Download CppDepend and Pricing.
Next steps
- Register the server in your coding agent: Claude Code, Codex, GitHub Copilot, Junie, or any agent over Streamable HTTP.
- Usage and tools: what to ask, and the 14 MCP tools the server exposes.
