Skip to main content

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

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 anything else that reads mcpServers:

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

Tools

Tool What it does Needs network
grai_score_draft Scores a draft, returns score, sentence-length CV, failed rules no
grai_issue_agency_seal Audits a client draft and returns a public verification link yes
grai_verify_seal Verifies a signed seal record against the public keyring yes

grai_score_draft runs entirely offline. If the local scorer cannot load, it falls back to the hosted endpoint.

Example

{"name": "grai_score_draft", "arguments": {"text": "Your draft goes here."}}

The response carries the score, the CV, the rules that failed, and upgrade links. A score of 85 or higher passes.

What the gate checks

Sentence-length variance (CV), 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.

Metadata

Release files for grai-mcp 0.1.0

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.0
File Size Uploaded Provenance Actions
grai_mcp-0.1.0.tar.gz 15.9 kB Without provenance Details for grai_mcp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 32.4 kB

Release files / grai_mcp-0.1.0.tar.gz

Download URL grai_mcp-0.1.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f96cd8c59c2849e5bfc542ff98ad9143f60bff1ff3c1f1c5015a1693d7ff2cb6
BLAKE2b-256 checksum
How to use checksums
97bf9d5b5d1e7603b4e8e3618da59b75840a3222fff5140a0e8dc62355471c2c
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.0-py3-none-any.whl

Download URL grai_mcp-0.1.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f84acd317a254b7b568d81971a36d00cc1afe516e9c2ed8f2cd313a99ca9bc94
BLAKE2b-256 checksum
How to use checksums
793ebcc6cb4e31f5f65c38a3a7888a5589852347d9e845d8671ee3b0f2cbcc78
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.0

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.0 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