sovereign-verify-mcp
# sovereign-verify-mcp
[](https://glama.ai/mcp/servers/pjrpjr/sovereign-verify-mcp)
[](LICENSE)
[](pyproject.toml)
[-0ea5e9.svg)](sovereign_verify_mcp.py)
[](https://spec.modelcontextprotocol.io/)
**Zero-dependency, pure Python 3 standard-library Model Context Protocol (MCP) server** exposing **8 deterministic, fail-closed verification & compliance tools** over JSON-RPC 2.0 stdio (`2024-11-05`).
Run it in 2 seconds with zero API keys, zero pip dependencies, and zero outbound network calls:
```bash
uvx --from git+https://github.com/pjrpjr/sovereign-verify-mcp sovereign-verify-mcp
```
- **Interactive Config Generator & Live 8-Tool Inspector (Zero-CDN Dark Mode)**: [https://pjrpjr.github.io/sovereign-verify-mcp/](https://pjrpjr.github.io/sovereign-verify-mcp/)
- **Sovereign Proof Hub (All 8 Standalone MIT Toolkits)**: [https://pjrpjr.github.io/sovereign-hub/](https://pjrpjr.github.io/sovereign-hub/)
---
## Quickstart: Client Configurations
### Claude Desktop (`claude_desktop_config.json`)
```json
{
"mcpServers": {
"sovereign-verify": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/pjrpjr/sovereign-verify-mcp",
"sovereign-verify-mcp"
]
}
}
}
```
### Cursor (`.cursor/mcp.json`)
```json
{
"mcpServers": {
"sovereign-verify": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/pjrpjr/sovereign-verify-mcp",
"sovereign-verify-mcp"
]
}
}
}
```
### Windsurf (`~/.codeium/windsurf/mcp_config.json`)
```json
{
"mcpServers": {
"sovereign-verify": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/pjrpjr/sovereign-verify-mcp",
"sovereign-verify-mcp"
]
}
}
}
```
### Antigravity (`mcp_config.json`)
```json
{
"mcpServers": {
"sovereign-verify": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/pjrpjr/sovereign-verify-mcp",
"sovereign-verify-mcp"
]
}
}
}
```
### OpenAI Codex CLI (`~/.codex/config.toml`)
```toml
[mcp_servers.sovereign-verify]
command = "uvx"
args = ["--from", "git+https://github.com/pjrpjr/sovereign-verify-mcp", "sovereign-verify-mcp"]
```
---
## 8 Deterministic Verification Tools Exposed
All 8 tools are strictly **read-only, offline, idempotent, and pure Python 3 stdlib** (`dependencies = []`):
| # | MCP Tool Name | Verification Scope & Fail-Closed Guarantees | Standalone MIT Sibling |
|---|---|---|---|
| 1 | `compile_datadog_to_metricsql` | Brace-aware AST compiler converting Datadog metric & monitor queries to VictoriaMetrics MetricsQL with zero silent drops (`[RED FLAG]` quarantine for `anomalies()`, `forecast()`, `outliers()`, `logs()`, `events()`). Supports single queries or bulk `vmalert` YAML output. | [dd2vm](https://github.com/pjrpjr/dd2vm) |
| 2 | `audit_part202_ads_txt` | Passive, offline DOJ 28 CFR Part 202 (EO 14117) `/ads.txt` & SSP `sellers.json` cross-reference against publicly verifiable §202.209 corporate filings, §202.206 12-month bulk thresholds, and anti-defamation objective wording guardrails. | [part202-audit-lite](https://github.com/pjrpjr/part202-audit-lite) |
| 3 | `grade_gpu_escrow` | Fail-closed secondary-market NVIDIA H100/A100/H200 telemetry grader (`A+`/`A`/`B`/`C`/`FAIL`): checks HBM remapped-row bank exhaustion, uncorrectable SRAM/DRAM ECC, peer-relative thermal resistance $\Delta R_{th}$, NVLink lane loss, PCIe Gen/width downgrades, and escrow valuation risk. | [gpu-carfax-lite](https://github.com/pjrpjr/gpu-carfax-lite) |
| 4 | `scrub_hipaa_safe_harbor_835` | Offline HIPAA 45 CFR §164.514(b)(2) 18-identifier X12 835/837P de-identifier (17 restricted ZIP3 → `000`, `AGE90PLUS` DOB generalization, HMAC join keys, fail-closed zero-leak self-audit) + post-June-2026 `$15` / 50-item NSA-IDR batch EV & state fee-splitting compliance estimator. | [nsa-safe-harbor](https://github.com/pjrpjr/nsa-safe-harbor) |
| 5 | `verify_45z_mass_balance` | IRC §45Z (OBBBA / Notice 2026-53) North America (US/CA/MX) 100% feedstock tank mass conservation (`opening + verified_na_bol - closing >= gallons * yield_min`), 20 high-risk transshipment port detectors, SHA-256 Merkle doc anchoring, and in-memory OOXML `45ZCF-GREET*.xlsx` hash lock. | [feedlock-45z-lite](https://github.com/pjrpjr/feedlock-45z-lite) |
| 6 | `verify_machlog_1230_sbom` | EU Machinery Regulation (EU) 2023/1230 (2027-01-20 cliff) Art. 18 PLC safety baseline diff across Siemens TIA, Beckhoff TwinSAFE, Pilz PNOZ, Rockwell L5X, and CODESYS/ROS2 exports + Annex IV & EU CRA 2024/2847 Annex VII CycloneDX/SPDX + OpenVEX v0.2.0 CVE triage. | [machlog-1230-lite](https://github.com/pjrpjr/machlog-1230-lite) |
| 7 | `verify_bess_dpp` | EU Battery Regulation (EU) 2023/1542 Art. 77 (2027-02-18 cliff) BESS SAT external revenue meter vs OEM BMS SOH anti-tamper cross-verifier (exact Decimal trapezoidal integration across 6 OEM CSV templates) and 70-field JSON-LD Digital Battery Passport Day-1 completeness gate. | [bess-passport-lite](https://github.com/pjrpjr/bess-passport-lite) |
| 8 | `audit_admt_hitl` | California CPPA ADMT (2027-01-01) & EU AI Act Annex III (2027-12-02) zero-PII synthetic canary & meaningful human review verifier (`override_rate`, `canary_catch_rate`, latency percentiles, opt-out zero-webhook isolation) with Kovel privilege-safe non-accusatory wording. | [humangate-admt-lite](https://github.com/pjrpjr/humangate-admt-lite) |
---
## Try on Glama
You can explore **`sovereign-verify-mcp`** directly on [Glama MCP Servers](https://glama.ai/mcp/servers/pjrpjr/sovereign-verify-mcp) before installing it locally:
- Browse all 8 deterministic verification tools, their JSON schemas, and check the server's quality score on [https://glama.ai/mcp/servers/pjrpjr/sovereign-verify-mcp](https://glama.ai/mcp/servers/pjrpjr/sovereign-verify-mcp)
- Test the server interactively online using [MCP Inspector](https://glama.ai/mcp/inspector)
[](https://glama.ai/mcp/servers/pjrpjr/sovereign-verify-mcp)
---
## Security & Architecture Guarantees
- **Zero External Dependencies**: 100% Python 3.10+ standard library — zero supply-chain bloat, auditable in a single file (`sovereign_verify_mcp.py`).
- **Zero Outbound Network Calls**: Every verifier operates exclusively on caller-supplied inputs in memory (`openWorldHint: false`, `readOnlyHint: true`, `destructiveHint: false`).
- **Protocol Compliance**: Implements MCP `2024-11-05` JSON-RPC 2.0 over stdio (newline-delimited default + automatic `Content-Length` framing compatibility), graceful parse error recovery (`-32700`), and strict stdout hygiene (zero logging leakage).
- **Wording & Privacy Guardrails**: Built-in anti-defamation check on `audit_part202_ads_txt`, real-PII rejection + Kovel privilege-safe guardrail on `audit_admt_hitl`, and fail-closed zero-PHI-leak self-audit on `scrub_hipaa_safe_harbor_835`.
---
## Local Verification & Testing
```bash
# Inspect exposed tools and schemas via CLI
python3 sovereign_verify_mcp.py --list-tools
# Run full subprocess stdio JSON-RPC 2.0 & 8-tool test suite (zero ResourceWarnings)
python3 -W error::ResourceWarning -m unittest test_standalone.py -v
```
## License
MIT License — see [LICENSE](LICENSE).
TDQS
Scored across 8 tools
Each tool targets a completely different regulatory/technical domain (GPU escrow grading, Datadog→MetricsQL, ads.txt, HIPAA 835 de-ID, §45Z mass balance, machinery SBOM, BESS passport, ADMT audit), so there is essentially no overlap. An agent can select the right tool from the domain keyword alone.
All names are snake_case and verb-first (grade_, compile_, audit_, scrub_, verify_), giving a predictable pattern. Minor deviation: verbs vary and some names embed standards/numbers and prepositions (compile_datadog_to_metricsql), but structure stays readable.
Eight tools is well within the ideal 3–15 range and each maps to a distinct compliance workflow with no filler. The count is well-scoped for a multi-regulation verification suite.
Each tool appears self-contained for its narrow verification task, but the surface is a grab-bag of unrelated point solutions with no shared lifecycle (no list/get/export/report-retrieval or orchestration tools). Coverage per individual domain looks solid, yet the overall suite lacks connective operations.