hosannaith-mcp
v0.3.2
Published
MCP server for the Hosannaith x402 reliability oracle on Algorand — gives any MCP agent a check_x402_reliability tool to vet an endpoint before paying it.
Maintainers
Readme
hosannaith-mcp
An MCP server that gives any MCP-capable agent (Claude Desktop, Cursor, Claude Code, etc.) a tool to check the reliability of an x402 endpoint on Algorand before it routes a payment there.
It wraps the Hosannaith reliability oracle. One tool call pays a small USDC amount over x402 and returns a verified reliability score.
Tools
| Tool | Cost | What it does |
| --- | --- | --- |
| get_hosannaith_info | free | Explains what the score means and how to act on it. Call this first. |
| check_x402_reliability | small USDC payment (x402 on Algorand) | Returns the reliability score for a target x402 endpoint URL. |
| check_x402_reliability_batch | $7 flat (x402 on Algorand) | Scores up to 50 endpoint URLs in one call — for vetting a whole watchlist. |
A score looks like:
{
"target": "https://api.example.com/resource",
"status": "pass",
"score": 95.8,
"detail": {
"observations": 142,
"windowHours": 24,
"uptimePct": 100,
"correct402Pct": 100,
"p50LatencyMs": 180,
"p95LatencyMs": 420,
"p99LatencyMs": 610,
"confidence": "history",
"availability_pct": 100,
"error_rate_pct": 0,
"protocol_conformance_pct": 100,
"score_normalized": 0.958
},
"observedAt": "2026-10-14T00:00:00.000Z",
"spec_version": "1.0.0",
"generated_at": "2026-10-14T00:00:00.120Z",
"signature": { "alg": "ES256", "kid": "tva-5LvOz8DrLJKcj3pYlryzOtKpgAcos-56dyWRA-k", "sig": "…" }
}status:pass(score ≥90) ·degraded(60–89) ·fail(<60) ·unknown(too little data)score: 0–100, ornullwhen there isn't enough history to stand behind a numberdetail.confidence:history(scored from accrued observations) ·one-shot(only one live probe — treat cautiously)detail.availability_pct,error_rate_pct,protocol_conformance_pct,score_normalized: the same measurements in OpenEAGO SLO terms (field reference)signature: every result is signed (ES256), so it can be forwarded and still checked against the published keys. Thehosannaith-clientpackage verifies automatically; the format is in docs/attestation.md.
Install
Published on npm. The easiest path is to let your MCP client run it with npx — nothing to
install or build (see config below). To install the command globally instead:
npm install -g hosannaith-mcpOr run from source:
git clone https://github.com/cameron4316/x402-oracle-server
cd x402-oracle-server/mcp
npm install && npm run build # produces dist/index.jsConfigure your MCP client
check_x402_reliability pays for the score, so the server needs the 25-word mnemonic of a
funded, USDC-opted-in Algorand account in the AVM_MNEMONIC environment variable. Use a
low-balance throwaway hot account — never your main wallet, never a receive-only address.
The mnemonic is read only from the environment; it is never logged or returned.
Claude Desktop
Edit claude_desktop_config.json
(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json,
Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"hosannaith": {
"command": "npx",
"args": ["-y", "hosannaith-mcp"],
"env": {
"AVM_MNEMONIC": "word1 word2 ... word25"
}
}
}
}Then fully quit and reopen Claude Desktop. (Running from source instead? Use
"command": "node" with the absolute path to mcp/dist/index.js as the single arg.)
Cursor
Add to ~/.cursor/mcp.json (or the project's .cursor/mcp.json):
{
"mcpServers": {
"hosannaith": {
"command": "npx",
"args": ["-y", "hosannaith-mcp"],
"env": {
"AVM_MNEMONIC": "word1 word2 ... word25"
}
}
}
}Try it
- Call
get_hosannaith_info(free) and read how to interpret a score. - Call
check_x402_reliabilitywith a target URL, e.g.https://x402.goplausible.xyz/examples/weather. The server pays via x402 and returns the score.
Environment variables
| Variable | Required | Default | Purpose |
| --- | --- | --- | --- |
| AVM_MNEMONIC | for paid tool | — | 25-word mnemonic of a funded, USDC-opted-in throwaway Algorand account used to pay for scores. |
| HOSANNAITH_BASE_URL | no | https://api.hosannaith.com | Override the oracle endpoint (local testing only). |
Security
AVM_MNEMONICis a spending key. Keep it to a throwaway account with a small balance.- It lives only in your MCP client config's
envblock — never commit it to version control. - The server never prints, logs, or returns the mnemonic.
License
Licensed under the Apache License, Version 2.0. See NOTICE.
Earlier releases were published under the MIT License and remain available under its terms: hosannaith-mcp 0.2.1 and earlier.
