welthus-mcp
Official# welthus-mcp
Zero-dependency Model Context Protocol (MCP) server and drop-in `SKILL.md` for sub-10ms deterministic verification of Python code ASTs, exact math oracles, SSRF URLs, and secret/PII hygiene.
## Why Deterministic Verification Before Execution
LLM coding assistants routinely emit subtle syntax errors, unsafe `shell=True` subprocess calls, hallucinated arithmetic, or internal metadata URLs (`169.254.169.254`). `welthus-mcp` catches these failure modes deterministically in pure Python stdlib before code runs or leaves your machine, and emits a reproducible SHA-256 receipt on every check.
## Install
```bash
git clone https://github.com/welthusai/welthus-mcp.git
cd welthus-mcp
pip install -e .
```
Run the built-in self-test:
```bash
welthus-mcp --selftest
```
## Client Configuration (Claude Code, Cursor, Windsurf)
Add `welthus-mcp` to your MCP client configuration:
```json
{
"mcpServers": {
"welthus": {
"command": "welthus-mcp"
}
}
}
```
Copy [`SKILL.md`](SKILL.md) into your agent skills directory (for example `~/.claude/skills/welthus-verify/SKILL.md`) so the model automatically invokes verification before running code or reporting math results.
## MCP Tools
| Tool | Purpose | Typical Latency |
|---|---|---:|
| `verify_claim` | Auto-detect mode (`code`, `math`, `ai_output`) and emit SHA-256 receipt | `< 2 ms` |
| `verify_code` | Python AST parse + unsafe call, `shell=True`, `pickle`, `yaml.load` guard | `< 1 ms` |
| `verify_math` | Bounded AST sandbox for exact arithmetic and equality checking | `< 1 ms` |
| `verify_ai_output` | SSRF URL scan, placeholder detection, bio `log2FC` consistency | `< 1 ms` |
| `check_url_ssrf` | Loopback, private CIDR, link-local metadata, IPv4-mapped IPv6 guard | `< 0.2 ms` |
| `scrub_secrets` | Redacts live API keys, private key headers, and email PII | `< 0.2 ms` |
## CLI Usage
```bash
welthus-mcp --verify "sum(n for n in range(1, 2501) if n % isqrt(n) == 0) == 127450"
```
## Run Tests
```bash
pytest
```
## License
MIT License. Copyright (c) 2026 Welthus Research (`research@welthus.com`).
TDQS
Scored across 6 tools
verify_claim explicitly covers Python code, math equations, and AI text outputs, which are exactly the domains of verify_code, verify_math, and verify_ai_output. This creates overlapping purposes and makes it unclear when an agent should use the umbrella tool versus the specialized ones. The other two tools (check_url_ssrf, scrub_secrets) are distinct.
All tool names follow a consistent snake_case verb_noun pattern: verify_*, check_url_ssrf, scrub_secrets. The only minor deviation is 'check_url_ssrf' using a noun acronym, but the overall convention is uniform and predictable.
Six tools is well within the 3-15 range and appropriate for a server focused on verification and security scanning. Each tool appears to serve a specific check or verification type, so no tool feels unnecessary.
The surface covers code, math, and text verification plus SSRF detection and secret scrubbing, which are the core needs for the stated purpose. However, the redundant verify_claim suggests a design gap in separation of concerns, and it's unclear whether the specialized verifiers also return the cryptographic receipts mentioned for verify_claim.