cpp_guidelines_mcp
C++ Core Guidelines
Documentation
中文 | English
C++ Style Guide MCP Server
Enforce consistent C++ style and best practices across your codebase. Analyze naming conventions, memory safety, and const correctness, and get actionable modernization suggestions up to C++23. Accelerate reviews with ready-made prompts and quick access to curated guidelines.
Tools
| Tool | Description |
|---|---|
| `check_naming` | Validate C++ identifiers (variables, classes, functions, etc.) against naming conventions |
| `check_include_guard` | Verify header file include guards or `#pragma once` usage |
| `analyze_memory_safety` | Detect memory leaks, dangling pointers, and unsafe memory patterns |
| `suggest_modern_cpp` | Get modernization suggestions targeting C++11 through C++23 |
| `check_const_correctness` | Find missing `const` qualifiers on member functions, parameters, and variables |
Resources
| URI | Description |
|---|---|
| `cpp-style://naming/{category}` | Naming convention reference (variable, class, function, namespace, …) |
| `cpp-style://best-practices/{topic}` | Best practice guides (memory, exceptions, templates, concurrency, …) |
| `cpp-style://standard/{version}` | C++ standard feature docs (cpp11 – cpp23) |
| `cpp-style://examples/{pattern}` | Design pattern examples (RAII, Pimpl, Factory, Observer, …) |
Prompts
| Prompt | Description |
|---|---|
| `code_review` | Code review template (general / performance / safety / readability / modern) |
| `refactor_suggestion` | Refactoring guide targeting a specific C++ standard |
Usage
Connect via Smithery (recommended)
npx -y @smithery/cli install @SongJiangzhou/cpp_guidelines --client claudeMCP endpoint (HTTP / streamable-http)
https://cpp-style-guide-mcp.fly.dev/mcpLocal installation
git clone https://github.com/SongJiangzhou/cpp_guidelines_mcp.git
cd cpp_guidelines_mcp
uv sync
uv run mcp run cpp_style_server.pyAdd to your MCP client config:
{
"mcpServers": {
"cpp-style": {
"command": "uv",
"args": ["run", "mcp", "run", "cpp_style_server.py"],
"cwd": "/path/to/cpp_guidelines_mcp"
}
}
}Examples
# Check a variable name
check_naming("myVariable", "variable")
# Analyze memory safety
analyze_memory_safety("void f(int* p) { delete p; p->run(); }")
# Modernize code to C++17
suggest_modern_cpp("for (int i=0; i= 3.12
- [FastMCP](https://github.com/jlowin/fastmcp) >= 1.21.0
- [uv](https://github.com/astral-sh/uv) package manager
- Deployed on [Fly.io](https://fly.io)
## License
[MIT](LICENSE)
## Links
- GitHub: https://github.com/SongJiangzhou/cpp_guidelines_mcp
- Issues: https://github.com/SongJiangzhou/cpp_guidelines_mcp/issues
- Smithery: https://smithery.ai/server/SongJiangzhou/cpp_guidelinesFrequently asked questions
What is cpp_guidelines_mcp?
cpp_guidelines_mcp is C++ Core Guidelines
How do I install cpp_guidelines_mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is cpp_guidelines_mcp open source?
Yes — it is hosted on GitHub at https://github.com/SongJiangzhou/cpp_guidelines_mcp.
Related MCP tools
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Automate browser based workflows with AI
Hindsight: Agent Memory That Learns
A privacy-first app that strips AI watermarks from content you own.
Agent framework and applications built upon Qwen>=3.0, featuring Function Calling, MCP, Code Interpreter, RAG, Chrome extension, etc.
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP