Local-first MCP server for LLM output verification — risk signals, injection and PII checks.
Runs on your machine from its package; the steps are below.
Not assessed yet.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y llmverify
MCP client config
{
"mcpServers": {
"llmverify": {
"command": "npx",
"args": [
"-y",
"llmverify"
]
}
}
}You shipped an AI feature. Your LLM hallucinated a citation, leaked a customer's email, and followed a prompt-injection buried in user input — on the same day. llmverify is the safety layer that sits between your LLM and your users.
Local-first verification, PII redaction, prompt-injection defense, and runtime monitoring for any LLM. One npm install. Zero telemetry. No API keys on the free tier.
Last Updated: August 21, 2026 Version: 1.7.0 Node: >= 18.0.0 License: MIT
You build with GPT-4, Claude, Gemini, or any LLM. The model:
You need a guardrail between the model and your users. That is llmverify.
npm install llmverify
Everything runs locally. The free tier makes zero network requests and needs no API key. Free tier limit: 500 verification calls per day (tracked locally, never sent anywhere).
| Function | One-liner | What it does |
|---|---|---|
verify(content) | await verify(aiResponse) | Runs hallucination, consistency, safety, and CSM6 checks; returns a risk level and findings |
isInputSafe(input) | isInputSafe(userMessage) | Blocks prompt injection, jailbreaks, and malicious input before it reaches the model |
redactPII(text) | redactPII(aiResponse) | Masks emails, phones, SSNs, credit cards, and API keys |
containsPII(text) | containsPII(text) | Returns true if PII is present |
detectAndRepairJson(...) | detectAndRepairJson(prompt, response) | Detects and repairs broken JSON output |
monitorLLM(client) | monitorLLM(openaiClient) | Wraps any LLM client; tracks latency, token drift, and behavioral changes |
sentinel.quick(...) | await sentinel.quick(client, model) | Runs regression tests against your model before users see changes |
classify(...) | classify(prompt, response) | Intent detection, hallucination signals, and instruction compliance |
auditLog(event) | auditLog({ ... }) | Appends a local, hash-only audit entry for SOC 2 / HIPAA / GDPR evidence |
run, prodVerify, ciVerify | await prodVerify(content) | Preset pipelines for dev, prod, strict, fast, and CI use |
const { verify, isInputSafe, redactPII } = require('llmverify');
// 1. Block prompt injection before it reaches the model.
if (!isInputSafe(userMessage)) {
return { error: 'Invalid input detected' };
}
// 2. Verify the model's output.
const aiResponse = await yourLLM.generate(userMessage);
const result = await verify(aiResponse);
if (result.risk.level === 'critical') {
return { error: 'Response failed safety check' };
}
// 3. Strip PII before the response reaches a user or a log.
const { redacted } = redactPII(aiResponse);
console.log(redacted);
Three lines of safety between your LLM and your users. No config file required. No API key required.
llmverify runs deterministic, pattern-based engines locally — no model calls, no network on the free tier. Same input plus same rules equals same result. Every result carries an explicit limitations array stating what was and was not checked, so you never mistake a clean score for a guarantee.
Framework alignment (baseline mapping only — not certification):
# Verify a string from the terminal.
npx llmverify verify "The capital of France is London."
# Start a local HTTP API for IDE / tool integration (localhost only by default).
npx llmverify-serve --port=9009
# Expose to the network only on a trusted network. There is no auth on the API.
npx llmverify-serve --host=0.0.0.0 --port=9009
The server binds to 127.0.0.1 by default, restricts CORS to localhost origins, and rate-limits clients (100 requests / 60s). It requires express (an optional dependency that installs by default).
llmverify ships a built-in Model Context Protocol server — the same engine, exposed to MCP-compatible agents and IDEs over stdio:
npx llmverify mcp
// MCP client config
{
"mcpServers": {
"llmverify": {
"command": "npx",
"args": ["-y", "llmverify", "mcp"]
}
}
}
Six tools: verify_llm_content, assess_hallucination_risk, check_prompt_injection, check_pii, redact_pii, get_llmverify_capabilities. Stdio-only, zero outbound network, bounded inputs/outputs, PII-filtered responses, honest notChecked/audit semantics.
Requires Node.js ≥ 20 (the MCP SDK's floor; the rest of the package supports ≥ 18). The MCP SDK and zod are regular dependencies — the mcp command lazy-loads them so other commands pay no startup cost.
See docs/MCP.md for the full tool reference and security model.
llmverify is a triage tool, not a truth oracle. Be honest with yourself about what it can and cannot do:
If a claim matters, verify it yourself. llmverify narrows the risk surface; it does not eliminate it.
llmverify is part of the HAIEC (Human AI Evidence Company) AI governance platform. Use it alongside the AI Security Scanner, the CI/CD pipeline integration, and Runtime Injection Testing.
MIT — see LICENSE.
Recommendation (not legal advice): Run verify() on every model output that reaches a user, and isInputSafe() on every user input that reaches a model. Treat the risk level as a triage signal, not an approval.