# C++ Core Guidelines

The C++ Core Guidelines MCP server checks C++ naming, memory safety, and const correctness. Use it during code review or when moving code toward C++11–C++23.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 1962 installs
- Author: songjiangzhou
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/SongJiangzhou/cpp_guidelines_mcp
- Updated: 2026-02-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/c-core-guidelines

## What it does

The server examines identifiers such as variables, classes, and functions, checks header guards or `#pragma once`, and looks for leaks, dangling pointers, and unsafe memory patterns. It also reports missing `const` qualifiers and suggests changes for C++11 through C++23.

Its package contains 5 analysis tools, reference resources for naming, best practices, standards, and design patterns, plus 2 prompt templates for reviews and refactoring. You can connect through the HTTP endpoint `https://cpp-style-guide-mcp.fly.dev/mcp` or run it locally with `uv`.

A local setup needs Python >= 3.12 and `uv`. The server entry point is `cpp_style_server.py`, launched with `uv run mcp run`; without those components, the local setup will not start.

## Requirements
- Remote server: `https://cpp_guidelines--songjiangzhou.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http cpp-guidelines https://cpp_guidelines--songjiangzhou.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add c-core-guidelines --url https://cpp_guidelines--songjiangzhou.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "c-core-guidelines": {
            "url": "https://cpp_guidelines--songjiangzhou.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "c-core-guidelines": {
            "type": "http",
            "url": "https://cpp_guidelines--songjiangzhou.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http c-core-guidelines https://cpp_guidelines--songjiangzhou.run.tools
```

## When to use it
- check C++ identifiers against naming rules
- spot memory leaks and dangling pointers
- verify header guards or `#pragma once`
- find missing `const` qualifiers
- plan a move to C++11–C++23 features

## Example prompts
- Review the naming of variables, classes, and functions in this C++ file.
- Inspect this snippet for leaks, dangling pointers, and unsafe memory use.
- Suggest changes that move this code to C++17 while keeping its behavior.

## Similar
- [coding-guidelines](https://affpapa.org/en/nevibecode/skills/coding-guidelines.md) — skill · 4400 installs
- [swift-api-design-guidelines](https://affpapa.org/en/nevibecode/skills/swift-api-design-guidelines.md) — skill · 3100 installs
- [swift-api-design-guidelines-skill](https://affpapa.org/en/nevibecode/skills/swift-api-design-guidelines-skill.md) — skill · 1200 installs
- [shopify-theme-development-guidelines](https://affpapa.org/en/nevibecode/skills/shopify-theme-development-guidelines.md) — skill · 945 installs
- [love2d-core](https://affpapa.org/en/nevibecode/skills/love2d-core.md) — skill · 10200 installs
- [core-motion](https://affpapa.org/en/nevibecode/skills/core-motion.md) — skill · 4000 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
