C++ Core Guidelines
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.
中文 | 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 claude
MCP endpoint (HTTP / streamable-http)
https://cpp-style-guide-mcp.fly.dev/mcp
Local installation
git clone https://github.com/SongJiangzhou/cpp_guidelines_mcp.git
cd cpp_guidelines_mcp
uv sync
uv run mcp run cpp_style_server.py
Add 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<v.size(); i++) {...}", "cpp17")
# Check const correctness
check_const_correctness("class Foo { int getValue() { return x; } int x; };")
# Access naming convention docs
Resource: cpp-style://naming/all
# Access memory best practices
Resource: cpp-style://best-practices/memory
Project Structure
cpp_guidelines_mcp/
├── cpp_style_server.py # MCP server entry point
├── cpp_style/
│ ├── tools/ # 5 analysis tools
│ ├── resources/ # 4 reference resource categories
│ ├── prompts/ # 2 prompt templates
│ └── data/ # JSON knowledge base
├── fly.toml # Fly.io deployment config
├── Dockerfile # Container image
└── smithery.yaml # Smithery config (local stdio mode)
Tech Stack
License
Links
Verwandte Server
Scout Monitoring MCP
SponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
SponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Ghost MCP
An MCP server for the Ghost blogging platform with Server-Sent Events (SSE) transport support.
Volatility MCP
Integrates Volatility 3 memory analysis with FastAPI and MCP, exposing memory forensics plugins via REST APIs.
ShaderToy-MCP
Query and interact with ShaderToy shaders using large language models.
Nucleus MCP
Local-first, cross-platform memory sync for AI coding tools (Cursor, Claude, Windsurf) with persistent engrams and hypervisor security.
Omega Memory
Persistent memory for AI coding agents with semantic search, contradiction detection, memory decay, and cross-session learning. 25 MCP tools, local-first, #1 on LongMemEval (95.4%).
Android MCP
An MCP server that provides control over Android devices through ADB. Offers device screenshot capture, UI layout analysis, package management, and ADB command execution capabilities.
Mastra/mcp
Client implementation for Mastra, providing seamless integration with MCP-compatible AI models and tools.
webrtcperf
WebRtcPerf is an open-source tool designed for testing WebRTC services with multiple concurrent client connections, measuring the most important RTC statistics and collecting them in an easy way.
MCP Remote Machine Control
Provides remote machine control capabilities, eliminating SSH overhead for token-efficient system operations.
Replicate Flux MCP
Generate high-quality images and vector graphics using the Replicate API.