Skip to content
MCP server
Registry

hosannaith-mcp MCP Server

Check x402 endpoint reliability on Algorand before an agent routes a payment there.

hosannaith-mcp scores 69 (Good), licensed Apache-2.0 and written in TypeScript. It installs as a local process. It declares 3 tools. Filed under Finance. GitHub shows 0 stars. Package registries report about 142 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by cameron4316Apache-2.0TypeScript0 stars
Trust score
69Good
Trust score 69 of 100, Good

Good trust

69 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 69 comes from

22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cameron4316-x402-oracle-server": {      "command": "npx",      "args": [        "-y",        "hosannaith-mcp@0.3.2"      ],      "env": {        "AVM_MNEMONIC": "YOUR_AVM_MNEMONIC"      }    }  }}

Environment variables

NameRequiredNotes
AVM_MNEMONICSecretRequired25-word mnemonic of a funded, USDC-opted-in Algorand account used to pay for reliability scores. Use a low-balance throwaway account.

Tools3Tool docs quality grade C

All capabilities

About

Hosannaith

A pay-per-call x402 reliability oracle โ€” live on Algorand Mainnet.

๐Ÿ”— Live app: hosannaith.com ยท API: api.hosannaith.com ยท Repo: github.com/cameron4316/x402-oracle-server

The problem

As x402 turns APIs into pay-per-request services, agents increasingly pay endpoints they didn't build โ€” with no way to know if an endpoint is actually reliable before sending real USDC. Dead or misbehaving endpoints silently waste money and break automated flows.

What it does

Hosannaith is itself an x402 endpoint. It independently and continuously monitors other x402 endpoints and sells a verified reliability score on demand: uptime, correct 402 behaviour, and latency percentiles, backed by real accumulated history โ€” with every response flagging its confidence ("history" for a stood-behind score, "one-shot" for a target queried for the first time). It's x402 monitoring x402.

GET https://api.hosannaith.com/reliability?target=<x402-endpoint-url>[&windowHours=24|168|720]

windowHours picks the history window: 24 hours (default), 168 (rolling 7 days) or 720 (rolling 30 days). The 7- and 30-day windows are the ones FINOS OpenEAGO Appendix D specifies for reliability_score, error_rate, latency_p99_ms (7 days) and availability_pct (30 days). The batch route takes the same value as "windowHours" in its JSON body.

Unpaid requests get 402 Payment Required with payment instructions; paid requests settle in USDC on Algorand via the GoPlausible facilitator and return JSON like:

Verifiable on-chain: first mainnet settlement โ€” 3F2ATV3NCRVOI45IEL6OUKAWED3NQX246WJADESJB5CFR6LIXGCQ

{
  "target": "https://x402.example.com/api",
  "status": "pass",
  "score": 98.7,
  "detail": {
    "observations": 1439,
    "windowHours": 24,
    "uptimePct": 100,
    "correct402Pct": 100,
    "p50LatencyMs": 88,
    "p95LatencyMs": 127,
    "p99LatencyMs": 210,
    "confidence": "history",
    "availability_pct": 100,
    "error_rate_pct": 0,
    "protocol_conformance_pct": 100,
    "score_normalized": 0.987
  }
}

Reading the result

FieldMeaning
statuspass (score โ‰ฅ 90) ยท degraded (60โ€“89) ยท fail (< 60) ยท unknown (not enough data)
score0โ€“100 composite: 0.6 ร— uptime + 0.4 ร— correct-402 โˆ’ a latency penalty (up to 20). null below 5 observations.
uptimePctProbes where the endpoint was serving: reachable and not a 5xx.
correct402PctOf the probes where the endpoint made a payment decision (a 402, or serving an unpaid 2xx), the share that correctly answered 402. Other 4xx (e.g. a 400 because our probe sends no input) are indeterminate and excluded. null if no probe was determinate.
p50/p95/p99LatencyMsLatency percentiles of serving probes. p99LatencyMs is null below 20 samples (it would just be the slowest one); below 20 samples p95LatencyMs equals the slowest sample.
confidencehistory (accumulated monitoring) ยท one-shot (first sighting, one live probe, score: null) ยท pending (batch only: no history yet, now enrolled).
mainnetPayablePctOf the 402s that recorded their x402 payment requirements (paymentRequirementsSamples), the share whose requirements parse and name a known mainnet. A 402 alone proves gating, not that the endpoint can be paid on a mainnet (some answer with testnet-only requirements). Informational: not part of the score.
discoverablePctOf those 402s, the share carrying the x402 bazaar discovery extension. Informational, never a score input.
acceptedNetworksPayment networks those 402s named, as sent (CAIP-2 ids or x402 v1 names). The monitored endpoint chooses this text, so only well-formed network ids are repeated; anything else is left out.
currentSdkPayablePctLike mainnetPayablePct, but counting only network ids the current x402 SDK accepts. Since @x402/core / @x402/avm 2.29.0 the SDK refuses Algorand's legacy full-genesis-hash id, so an endpoint offering only that id for Algorand is payable by older clients but not by up-to-date ones.
algorandIdFormWhich Algorand mainnet id the endpoint offers: spec (32-character CAIP-2 form), legacy (full genesis hash), both, or null. Offering both serves every client during the transition.

OpenEAGO SLO view

The same numbers in the SLO vocabulary used by agent registries and SLA/SLO feasibility checks. These are pure aliases (no new measurement) and are null exactly when their source is null.

SLO termFieldDefinition
availabilityavailability_pct= uptimePct
error rateerror_rate_pct= 100 โˆ’ uptimePct: % of probes that were 5xx or unreachable (server-side errors). Client-side 4xx are indeterminate for an unpaid probe and are not counted.
protocol conformanceprotocol_conformance_pct= correct402Pct: % of gating-determinate probes that returned 402 rather than serving unpaid 2xx.
latencyp50LatencyMs, p95LatencyMs, p99LatencyMsas above
registry scorescore_normalized + confidencescore / 100, in [0, 1]

Machine-readable contract

  • /openapi.json: OpenAPI 3.1 description of every route, with each paid route's x402 terms in x-x402.
  • JSON Schemas (draft 2020-12): /schema/check-result.json, /schema/batch-result.json, /schema/problem.json.
  • Errors are RFC 9457 Problem Details (application/problem+json). The 402 Payment Required response is the x402 protocol's own.
  • Timestamps are RFC 3339 in UTC. Responses are additive-only: new optional fields may appear; existing fields never change name, type or meaning.
  • Signed results: when signing is enabled, every result (and every batch, as a whole) carries an ES256 signature over its RFC 8785 canonical JSON, verifiable against /.well-known/hosannaith-keys.json. Format, verification and key policy: docs/attestation.md.

Use it in your own code

A small TypeScript SDK wraps the full x402 pay-per-call handshake (402 โ†’ sign USDC payment โ†’ retry) so you don't have to implement it yourself:

import { getReliability } from 'hosannaith-client';

const result = await getReliability('https://some-x402-endpoint/api', {
  mnemonic: process.env.AVM_MNEMONIC!, // 25-word Algorand mnemonic, funded with USDC
});

console.log(result.score, result.detail.confidence);

See sdk/typescript/ for the client, a runnable example, and full usage docs.

Use it from any MCP agent (Model Context Protocol)

This repo also ships an MCP server in mcp/ โ€” published to npm as hosannaith-mcp and listed in the official MCP Registry as io.github.cameron4316/hosannaith-mcp. It lets any Model Context Protocol client (Claude Desktop, Cursor, and other MCP agents) vet an x402 endpoint's reliability before paying it.

Built on the official MCP TypeScript SDK (@modelcontextprotocol/sdk), it exposes three MCP tools:

  • get_hosannaith_info โ€” free; explains the score shape and how to act on it.
  • check_x402_reliability โ€” paid; reliability score for one endpoint, settled as an x402 USDC micropayment on Algorand.
  • check_x402_reliability_batch โ€” paid; score up to 50 endpoints in a single call.

Add it to an MCP client's config:

{
  "mcpServers": {
    "hosannaith": {
      "command": "npx",
      "args": ["-y", "hosannaith-mcp"],
      "env": { "AVM_MNEMONIC": "<25-word Algorand mnemonic, funded with USDC>" }
    }
  }
}

See mcp/ for the MCP server, its tools, and full setup docs.

There is also a hosted remote MCP server at https://api.hosannaith.com/mcp (Streamable HTTP, paid per call via x402 MCP). Its tools carry MCP annotations (paid tools: read-only, not destructive, not idempotent, open-world; the one side effect is that a target with no history gets one live probe and is enrolled for monitoring). Every call is recorded in an audit log with its on-chain settlement, or the quote offered when no payment was made; payment payloads and URL query strings are never logged.

A target added this way stays monitored while it behaves like an x402 endpoint. One that has not asked for payment once in 14 days is dropped from monitoring; asking about it again puts it back.

Targets must be public http(s) URLs. Private, loopback, link-local and reserved addresses, internal host names and URLs with credentials are refused before any payment, on the HTTP API and both MCP servers. When probing, every redirect hop is checked, host names are resolved first, and the connection can only go to the addresses that were checked, so a public URL cannot redirect or resolve a probe into a private network, even if its DNS answer changes a moment later. A batch that contains a refused target is rejected as a whole and never charged.

Use it as a pipeline gate

Elenchos, in gate/, turns signed reliability evidence into a pipeline check. A firm writes into its FINOS CALM architecture what each outside service must meet. The gate verifies signed evidence from an independent oracle (Hosannaith, or any oracle that speaks the contract proposed for OpenEAGO), fails the pipeline when a service falls short, and saves an evidence file an auditor can re-check offline. It has no dependencies. Try it with node gate/demo/demo.ts: there is nothing to install.

Architecture and vision

The architecture is deliberately pluggable: every paid product implements the Check contract (see src/checks/types.ts). Reliability ships first; a compliance/attestation product for tokenization โ€” the trust layer institutions need to bring real-world assets on-chain โ€” is planned as a second Check + one route entry, with no rewrite of the payment plumbing.

The monitor (pnpm monitor, run continuously on the production droplet) records one observation per target per interval, append-only, to data/observations.jsonl. That history compounds and cannot be reconstructed later โ€” every score above is backed by real, continuous observation, not a synthetic estimate.

That history is tamper-evident: each observation carries a hash that folds in the previous observation's hash, so changing, reordering, or dropping any past observation breaks every later hash (src/checks/reliability/chain.ts). Walk the log and check it with node_modules/.bin/tsx scripts/verify-chain.ts (it reports every break it finds, not just the first; --head prints the current verified head).

Be precise about what this does and does not show. On its own, a chain that checks out only proves the log is internally consistent โ€” an attacker with write access could rewrite the whole log and recompute a fresh, equally consistent chain from genesis. What makes a rewrite detectable is an externally held reference: a signed digest of the head at a point in time (the signed daily digest below), so anyone who recorded one can confirm the same seq still has the same hash. Even then, this proves only that the history was not rewritten after it was recorded; it does not prove a single server recorded the truth at the time. A second probe location and an on-chain anchor (both planned) are what strengthen that.

Only the monitor's continuous observations are chained. A one-shot probe โ€” a first-seen target scored live when someone pays to check it โ€” is written to a separate oneshot-observations.jsonl and is deliberately not part of the chain, so the monitor stays the single writer of the chained log. Chaining is on by default; CHAIN_OBSERVATIONS=0 turns it off.

A signed daily digest commits to the chain head: scripts/chain-digest.ts signs the current { seq, hash } โ€” and a commitment to the unchained lines before the chain, so the pre-chain history is pinned too โ€” with the oracle key, and the API serves it at /chain/latest.json and /chain/<YYYY-MM-DD>.json. Each day's dated digest is immutable: once written it is never overwritten. The digest also records how many breaks the chain had up to that head, so a single unavoidable break (the store writes one unchained line if a write cannot be chained, and an append-only log can never undo it) does not stop digests from being produced or checked: a later check confirms no new break appeared in the covered history.

Check a digest against the log with scripts/verify-chain.ts --digest <file> (it verifies the signature against the published keys, the committed head against the chain, the prefix commitment against the pre-chain lines, and the break count). Checking needs the observation log itself, which is not public โ€” the digest alone is not enough. To verify independently, a third party uses a copy of the log: the operator shares it (or a byte-for-byte copy) with an auditor on request. The digest is what lets them trust that copy is the real history; it is not a substitute for it.

Who can check a digest, and what it is still worth trusting: anyone who recorded a copy of a digest at the time โ€” a monitored operator, an auditor, the Foundation, or an agent that saved /chain/latest.json โ€” can later confirm the oracle did not rewrite the history up to that seq. Their own saved copy is the reference; they do not have to trust the oracle's current word for it. What a self-held digest does not prove is when it was signed: the oracle alone could, in principle, produce a digest and backdate the file. Removing that last bit of trust needs an independent witness to the digest's existence at a time โ€” publishing each digest's hash to a timestamping service such as OpenTimestamps (anchored in Bitcoin) or anchoring it on Algorand. Those are planned; until then, a third party's own recorded copy is the strongest check.

These digests assume the observation log is a single, never-rotated, append-only file: the chain runs continuously and the prefix commitment hashes the lines before it. Rotating or splitting the log would break both. When the store moves to a rotated or multi-file layout (or SQLite/Postgres, as planned), the chain must continue across files โ€” carrying the head from one into the next โ€” and the prefix commitment must be redefined for that layout; neither is handled today.


For developers

Everything below is setup/reference for running Hosannaith locally (defaults to testnet) or understanding the codebase โ€” not required to use the live API above.


1. Install

pnpm install
# runtime deps (exact packages from the official Algorand tutorial):
pnpm add @x402/core @x402/avm @x402/hono @x402-avm/extensions hono @hono/node-server dotenv

2. Configure

cp .env.example .env

Then edit .env:

  • AVM_ADDRESS โ€” a testnet account funded with ALGO and opted in to testnet USDC.
  • Leave NETWORK=testnet and the GoPlausible FACILITATOR_URL as-is for now.
  • MONITOR_TARGETS already points at the Foundation's public example endpoint.

Testnet setup (accounts, faucets, USDC opt-in) follows the official tutorial: https://dev.algorand.co/resources/x402-on-algorand/

3. Run (two terminals)

pnpm monitor   # terminal 1 โ€” starts collecting observations immediately
pnpm dev       # terminal 2 โ€” starts the paid resource server on :4021

Sanity checks:

curl http://localhost:4021/health                 # -> {"ok":true,...}  (free)
curl -i "http://localhost:4021/reliability?target=https://x402.goplausible.xyz/examples/weather"
#  -> HTTP 402 Payment Required  (correct: it's a PAID route)

To pay and get the JSON back, point the tutorial's client at http://localhost:4021/reliability?target=... (client code: https://dev.algorand.co/resources/x402-on-algorand/#part-1-build-the-client).


File map

src/
  index.ts              Hono app + x402 wiring (edit sparingly)
  monitor.ts            Standalone monitor process (pnpm monitor)
  config.ts             Network/asset/facilitator config; testnet<->mainnet switch
  routes.config.ts      Paid routes + Bazaar discovery metadata  <-- add compliance route here
  checks/
    types.ts            The pluggable Check contract (shared by all products)
    registry.ts         Maps check id -> implementation
    reliability/
      monitor.ts        probe() + startMonitor()
      store.ts          Observation type + append-only JSONL store (swappable)
      score.ts          Turns observations into a 0-100 score
      index.ts          The reliability Check (reads store, computes score)
data/
  observations.jsonl    Append-only history (git-ignored; compounding)

Algorand network ids: both forms, during the transition

Algorand has two CAIP-2 ids in use for each network. The spec form (algorand: plus the first 32 characters of the genesis hash) is what @x402/avm exports as ALGORAND_MAINNET_CAIP2 / ALGORAND_TESTNET_CAIP2, and since @x402/core / @x402/avm 2.29.0 (x402-foundation/x402 #3894) it is the only form the x402 SDK accepts. The legacy full-genesis-hash form is what the GoPlausible facilitator originally required (reported in x402-foundation/x402 #3528). The facilitator now lists the spec form first and still accepts the legacy form until it is switched off with notice.

So every 402 from this server offers both, spec form first, otherwise identical (same price, payTo, asset and tag): clients on current SDKs pay the spec form, and older installs of our own clients keep paying the legacy form. src/config.ts imports the spec form from @x402/avm and checks at startup that it is exactly the legacy form truncated to 32 characters. The legacy option will be dropped, and this server's @x402 packages upgraded to 2.29+, in step with the facilitator's switch-off. Paid settlements on both ids are verified on mainnet.

To run this server against mainnet yourself: set NETWORK=mainnet and AVM_ADDRESS to a fixed payTo address opted in to mainnet USDC (ASA 31566704, already set in src/config.ts). The tag field in routes.config.ts's extra attributes activity to the Algorand Global x402 Challenge.

Notes

  • Tracks x402 protocol 2.26.0 (package.json pins ^2.26.0 for @x402/core, @x402/avm, and @x402/hono; the Algorand discovery/Bazaar package @x402-avm/extensions versions separately, currently ^2.6.1 โ€” run pnpm ls for exact resolved versions).
  • Run pnpm typecheck after pnpm install to catch any API drift if you bump dependency versions.

Architecture as code

calm/hosannaith.architecture.json models Hosannaith in FINOS CALM (nodes, relationships and the paid-check, monitoring and verification flows), validated in CI with the official CALM CLI. See calm/README.md.

How Hosannaith relates to the FINOS AI Governance Framework is set out in docs/aigf-mapping.md: which mitigations apply, the evidence, what is not done, and what does not apply. The same mitigations are attached to the CALM model as controls.

Security

To report a vulnerability, email security@hosannaith.com or use GitHub's private vulnerability reporting. Please don't open a public issue. Scope and what to expect: SECURITY.md. Machine-readable: /.well-known/security.txt.

How the project is run is checked against the OpenSSF Security Baseline, Level 1, requirement by requirement: docs/osps-baseline.md. It is a self-assessment.

Contributing

Contributions are welcome. CONTRIBUTING.md covers how to test each part, the rules reviews hold to, and the commit sign-off (DCO). Everyone taking part is expected to follow the Code of Conduct.

License

Licensed under the Apache License, Version 2.0. See NOTICE.

This repository was previously MIT-licensed. Code and npm releases published under MIT before the change (hosannaith-client 0.3.0 and earlier, hosannaith-mcp 0.2.1 and earlier) remain available under the MIT License.

Frequently asked questions

What is hosannaith-mcp MCP Server?

Check x402 endpoint reliability on Algorand before an agent routes a payment there.

How do I install hosannaith-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. hosannaith-mcp MCP Server runs locally from the npm package hosannaith-mcp with the command npx -y hosannaith-mcp@0.3.2.

Is hosannaith-mcp MCP Server free and open source?

Yes. hosannaith-mcp MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does hosannaith-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for hosannaith-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does hosannaith-mcp MCP Server provide?

hosannaith-mcp MCP Server provides 3 tools: check_x402_reliability, check_x402_reliability_batch, and get_hosannaith_info. See the full tool list for descriptions and parameters.

How is hosannaith-mcp MCP Server's trust score calculated?

hosannaith-mcp MCP Server scores 69 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server