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.
Links
- Product: https://grai.page
- Source: https://github.com/adrianpeticila/grai
- License: MIT
Metadata
Release files for grai-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| grai_mcp-0.1.1.tar.gz | 16.5 kB | Without provenance | Details for grai_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| grai_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for grai_mcp-0.1.1-py3-none-any.whl |
Total release size: 32.8 kB
Release files / grai_mcp-0.1.1.tar.gz
| Download URL | grai_mcp-0.1.1.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3b8cda9184f0523e567716274bac2a84770a262af6fdfba0a363d9f31619bae
|
|
BLAKE2b-256 checksum How to use checksums |
cd2431f5afa61810d6c089df45f9f0ddaf6ab3842865f6af29531c593746b09e
|
| 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.1-py3-none-any.whl
| Download URL | grai_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2959f8720c968091a5cba798fca7cd1066def4bfc9dd6c10f2dd7fc49f9a4d2
|
|
BLAKE2b-256 checksum How to use checksums |
44a0fc180e099c5eb000d39c5e7c1503226a04c1cdd845507050d3686aa82d1c
|
| 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.1
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.