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.
Free browser checker, no install: https://grai.page/ai-tells/
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.
Links
- Product: https://grai.page
- Source: https://github.com/adrianpeticila/grai
- License: MIT
Metadata
Release files for grai-mcp 0.1.4
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.4.tar.gz | 159.5 kB | Without provenance | Details for grai_mcp-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| grai_mcp-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for grai_mcp-0.1.4-py3-none-any.whl |
Total release size: 297.3 kB
Release files / grai_mcp-0.1.4.tar.gz
| Download URL | grai_mcp-0.1.4.tar.gz |
|---|---|
| Size | 159.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ca0bbcdf572acc46037fbb75da517706f391263f5b08ad7dc60aff979000fed
|
|
BLAKE2b-256 checksum How to use checksums |
46b6c6a5db701aba59cdd049de39378e986249cba572d1a74fedeba92985c5a6
|
| 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.4-py3-none-any.whl
| Download URL | grai_mcp-0.1.4-py3-none-any.whl |
|---|---|
| Size | 137.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc9784c9ecfb134074b4a91fae1b2d787168c9083e156fbf176839ad9b88588e
|
|
BLAKE2b-256 checksum How to use checksums |
57e05bb40bb9206caf150ee4c5d6200669f00f58387098f3caa5678f3dff7687
|
| 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.4
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.