# grai Cadence Gate

grai Cadence Gate — an MCP server for Claude Code evaluates text rhythm and flags AI syntactic patterns. It returns a binary PASS or FAIL decision alongside a signed audit card.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6 repo stars
- Author: adrianpeticila
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/adrianpeticila/grai
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/grai-cadence-gate

## What it does

The server tests drafts against eight structural syntax rules and a strict sentence length variance floor. It calculates burstiness using standard deviation over mean sentence length, rejecting texts where the coefficient drops below 0.32. The engine detects forced antithesis, hollow rhetorical hooks, arrow bullet chains, formulaic triads, and summary colons while stripping zero-width Unicode watermarks.

Passing text comes with an ECDSA P-256 signed audit card recording the score and defects. Lexical checks apply strictly to English, while other languages receive cadence scoring with an advisory note. Running the server requires `uvx` in the environment.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add grai-mcp -- uvx grai-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from grai-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add grai-cadence-gate -- uvx grai-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from grai-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "grai-cadence-gate": {
            "command": "uvx",
            "args": [
                "grai-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from grai-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "grai-cadence-gate": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "grai-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from grai-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add grai-cadence-gate uvx grai-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from grai-mcp <command>

## When to use it
- detect flat rhythm and repetitive sentence length in AI drafts
- filter out structural clichés like forced antithesis and hook formulas
- strip hidden zero-width Unicode characters from text
- generate an ECDSA P-256 signed audit card for verified drafts

## Example prompts
- Audit this draft with grai-cadence-gate
- Check sentence length burstiness and flag synthetic formulas in this post

## Similar
- [ai-humanizer](https://affpapa.org/en/nevibecode/skills/ai-humanizer.md) — skill · 6 installs
- [antislop-copywriting](https://affpapa.org/en/nevibecode/skills/antislop-copywriting.md) — skill · 10400 installs
- [WSC - Writing Style Checker](https://affpapa.org/en/nevibecode/mcp/wsc-writing-style-checker.md) — MCP server · 286 installs
- [sepia](https://affpapa.org/en/nevibecode/skills/sepia.md) — skill · 1800 installs
- [us-business-english](https://affpapa.org/en/nevibecode/skills/us-business-english.md) — skill · 1100 installs
- [brand-writer](https://affpapa.org/en/nevibecode/skills/brand-writer.md) — skill · 822 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
