Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.4 instead.
Reason given by maintainers: Undocumented network fallback uploaded drafts to /api/score on analysis failure. Superseded by 0.1.3, which never uploads.

grai-gate MCP server

Deterministic cadence scoring and cryptographic seal verification for AI-generated drafts, exposed as a Model Context Protocol server over stdio.

No API key needed for scoring. The gate is a pure Python scorer with no dependencies outside the standard library.

Install

Requires Python 3.10+ and uv:

uvx --from grai-mcp grai-gate-mcp

Or with pip:

pip install grai-mcp
grai-gate-mcp

Configure your client

Claude Desktop, Cursor, Cline, Windsurf and any client reading mcpServers:

{
  "mcpServers": {
    "grai-gate": {
      "command": "uvx",
      "args": ["--from", "grai-mcp", "grai-gate-mcp"]
    }
  }
}

If your client runs with pip instead of uv, use:

{
  "mcpServers": {
    "grai-gate": {
      "command": "grai-gate-mcp"
    }
  }
}

Config file locations

Client Configuration Path
Claude Desktop (macOS) ~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Windows) %APPDATA%\Claude\claude_desktop_config.json
Cursor ~/.cursor/mcp.json or .cursor/mcp.json in project root
Windsurf ~/.codeium/windsurf/mcp_config.json
Cline VS Code MCP Servers panel

Note for macOS GUI apps: Claude Desktop started from Finder does not inherit shell PATH. If the server fails to start with ENOENT, run which uvx in your terminal and put the absolute path in the command field (for example, /Users/yourname/.local/bin/uvx). Restart your client after saving the config.

Tools

Tool Input arguments Output Needs network
grai_score_draft {"text": "..."} score (0-100), CV, pass, failed rules, advisory no
grai_issue_agency_seal {"text": "...", "license_key": "...", "agency_name": "...", "client_ref": "..."} signed record and public verification link yes
grai_verify_seal {"record_json": "..."} signature validity and key id yes

grai_score_draft runs entirely offline on stdio. The scorer engine is bundled directly inside the wheel.

How to use in chat

In your AI chat (Claude Desktop, Cursor, etc.), prompt the model directly:

"Score this draft with grai_score_draft: [paste your text here]"

The tool will return the calculated score, the sentence-length coefficient of variation (CV), and any detected slop rules. A score of 85 or higher passes.

Input requirements

The score requires at least four sentences with a mean sentence length of at least four words. If you send a draft with fewer than four sentences, the engine returns score: null and sets insufficient_sentences: true in the advisory dictionary.

What the gate checks

Sentence-length variance (CV), run-on sentences and comma splices, contrastive negation, epiphany openers, corporate slop words, em dashes, structural monotony, and five other deterministic rules. Same engine as the grai-gate CLI, so scores match between the CLI and the MCP server.

A flagged run-on sentence contributes at most 32 words to the CV, so swapping full stops for commas cannot inflate the score.

The lexical rules are calibrated for English. Other languages still get a cadence score, but word-level tells are skipped. The response carries advisory.non_english_detected, and the report card prints one note. No block, no silent pass.

Metadata

Release files for grai-mcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grai-mcp 0.1.2
File Size Uploaded Provenance Actions
grai_mcp-0.1.2.tar.gz 19.4 kB Without provenance Details for grai_mcp-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grai-mcp 0.1.2
File Interpreter ABI Platform Actions
grai_mcp-0.1.2-py3-none-any.whl Python 3 none any Details for grai_mcp-0.1.2-py3-none-any.whl

Total release size: 38.4 kB

Release files / grai_mcp-0.1.2.tar.gz

Download URL grai_mcp-0.1.2.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
013cbb4f262c154973f0e4779be9ad5ed730d7216bbb93bee1be0eea6cfa1778
BLAKE2b-256 checksum
How to use checksums
7c0b00277968126599ea3fcc2b3a5d3d4e30a2badb530e7ee032a48491a0fad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / grai_mcp-0.1.2-py3-none-any.whl

Download URL grai_mcp-0.1.2-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b75320660edddc928b7634e3c53f5b78fe9137e7363f2eba81df9d1a907e415
BLAKE2b-256 checksum
How to use checksums
0a6202b0b10f6a56375fc197a89d6c7d8672f7fe5633496731152ee66b304b8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for grai-mcp 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page