1. Conduid
  2. Search
  3. C++ Core Guidelines
MCP server · Search

C++ Core Guidelines

Enforce consistent C++ style and best practices across your codebase. Analyze naming, 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.

Unclaimed last commit 8 months ago search
34Low

Scored 6 months ago · breakdown

About C++ Core Guidelines

C++ Core Guidelines is an MCP server published by SongJiangzhou in the Search category: enforce consistent C++ style and best practices across your codebase. Analyze naming, 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.

Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/SongJiangzhou/cpp_guidelines_mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

analyze_memory_safetyDetect memory leaks, dangling pointers, and unsafe memory patterns

Parameters not published.

check_const_correctnessFind missing `const` qualifiers on member functions, parameters, and variables

Parameters not published.

check_include_guardVerify header file include guards or `#pragma once` usage

Parameters not published.

check_namingValidate C++ identifiers (variables, classes, functions, etc.) against naming conventions

Parameters not published.

suggest_modern_cppGet modernization suggestions targeting C++11 through C++23

Parameters not published.

Ask AI

✦

Ask AI about C++ Core Guidelines

Powered by Claude · Grounded in docs

I know everything about C++ Core Guidelines. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

中文 | 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

MIT

Links

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About C++ Core Guidelines

How do I install C++ Core Guidelines?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is C++ Core Guidelines safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is C++ Core Guidelines still maintained?

The last commit was 8 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.