← All Posts

Give Your AI Agent a Trust Layer with MCP + Nostr WoT

2026-02-10 — mcp, ai, nostr, web-of-trust, lightning, l402, agents

AI agents are getting smarter, but they still can't tell who to trust. Feed an agent a Nostr pubkey and it has no idea if that account is a real developer with 5 years of contributions or a bot created 10 minutes ago.

The maximumsats-mcp server gives your agent 10 Web of Trust tools that answer these questions instantly. It indexes 51,000+ Nostr pubkeys using PageRank over the follow graph.

Setup: 30 Seconds

npx -y maximumsats-mcp

That's it. Your MCP client (Claude, Cline, Cursor, etc.) now has 10 WoT tools. No API keys needed — 50 free requests per day, then L402 micropayments kick in at 3-10 sats per query.

What Your Agent Can Do

Check a trust score:

wot_score({ pubkey: "npub1..." })
→ { score: 18, rank: 3, percentile: 99.99, followers: 1358 }

Detect sybil accounts:

wot_sybil_check({ pubkey: "npub1..." })
→ { sybil_score: 64, classification: "likely_genuine", signals: [...] }

Find trust paths between accounts:

wot_trust_path({ from: "npub1...", to: "npub1..." })
→ { connected: true, paths: [...], combined_trust: 0.216 }

Analyze follow list quality:

wot_follow_quality({ pubkey: "npub1..." })
→ { quality_score: 39, ghost_ratio: 0.38, suggestions: [...] }

Why This Matters for Agents

If your agent interacts with Nostr (posting, reading, transacting), it needs to know who to trust. A few use cases:

The Full Tool List

ToolWhat it does
wot_scorePageRank trust score (0-100)
wot_sybil_check5-signal sybil detection
wot_trust_circleMutual follow analysis
wot_follow_qualityFollow list health check
wot_trust_pathFind trust paths between pubkeys
wot_network_healthGraph-wide stats (51K nodes)
wot_anomaly_detectionFlag suspicious patterns
wot_link_prediction"People you may know"
wot_compare_providersCross-provider score verification
wot_influence_analysisSimulate follow/unfollow impact

L402 Payments: Your Agent Pays Per Query

After 50 free requests, the API returns HTTP 402 with a Lightning invoice. Your agent pays 3-10 sats via the Alby MCP server (which has a fetch_l402 tool), and retries with the payment hash. The whole flow is automated — no human intervention.

Agent calls wot_score → 402 + invoice
Agent calls alby.pay_invoice → paid
Agent retries wot_score with payment_hash → data

This is the L402 protocol in action: machine-to-machine micropayments over Lightning. Your agent becomes an autonomous economic actor.

Try It Live

The interactive demo at wot.klabo.world/demo shows all 13 analysis cards. Paste any Nostr pubkey and explore the data your agent would get.

API docs: wot.klabo.world/docs | OpenAPI spec: wot.klabo.world/openapi.json | Swagger UI: wot.klabo.world/swagger

Source: github.com/joelklabo/maximumsats-mcp

Found this useful?

Send a tip via Lightning. One click, no account needed.

Tip 100 sats ⚡