Skip to main content

twzrd-mcp-server / twzrd-mcp — pre-spend seller reputation for Solana x402

Check a seller wallet and requested resource before you pay over Solana x402. Free tools return allow / warn / block; optional paid tools buy deeper reputation evidence or a signed V6 receipt with explicit spend caps. TWZRD scores observed wallet and payment behavior. It does not prove a person, company, or autonomous agent identity.

Prefer the zero-install hosted Agent Intelligence MCP. Use this package only when you want local auto-pay for paid intel.

// Recommended — 24 tools, no wallet, nothing to install
{ "mcpServers": { "twzrd": { "url": "https://intel.twzrd.xyz/mcp" } } }
# Local auto-pay client — 6 tools; wallet only if you enable paid calls
npx -y twzrd-mcp-server        # Node
pip install twzrd-mcp          # Python

Which surface do I want?

Surface Tools Wallet Use when
https://intel.twzrd.xyz/mcp (hosted) 24 No Default. Seller preflight, resource evaluation, reputation, receipts, watches, and observed-market research.
twzrd-mcp-server / twzrd-mcp (this package) 5 Only for paid You want quick_trust / full_trust auto-paid locally with caps.

Start with hosted twzrd_demo_gate for a zero-setup, zero-spend proof of the block path. The hosted MCP is also listed on Smithery.

The 6 local client tools

Tool Cost What
preflight free allow / warn / block + trust score for a seller you're about to pay
merchant_card free seller graph card — wash_flagged: truedon't pay (locked sequence step 2)
wallet_lookup free facilitators + counterparty breadth for a wallet
verify_receipt free offline-verify a wallet's cNFT receipt (Ed25519 vs genesis authority 2ELSDxLkb7dYrN6EUG69tNtULAq4Fo7WPvXyrZPmuFif) — trust no server
quick_trust $0.001 quick tier + score for any wallet
full_trust $0.05 full trust intel + signed V6 receipt

quick_trust / full_trust buy intel on any wallet (you look risky ones up on purpose) — they don't refuse a target. Use preflight to vet a wallet you're about to pay elsewhere.

Happy path (seller-first)

  1. Free preflight on the seller's receive wallet.
  2. block → don't pay. Done, $0 spent.
  3. Free merchant_card on the same wallet — wash_flagged: true → don't pay.
  4. warn → consider a $0.05 full_trust signed receipt before deciding.
  5. allow + clean card + small spend → pay. Keep the receipt; scores decay, so re-check stale decisions.

Install & config

Paid tools are opt-in on both runtimes: they sign only when you set TWZRD_MCP_PAYMENTS_ENABLED=1 and provide a wallet key. For free tools, omit both — the server runs read-only and never signs. Spend is bounded by per-call and session caps.

Python — pip install twzrd-mcp

{ "mcpServers": { "twzrd": {
  "command": "twzrd-mcp",
  "env": {
    "TWZRD_RPC_URL": "<your dedicated Solana RPC url>",
    "TWZRD_WALLET_KEYPAIR": "/path/to/solana-keypair.json",
    "TWZRD_MCP_PAYMENTS_ENABLED": "1",
    "TWZRD_MAX_USDC_PER_CALL": "0.05",
    "TWZRD_MAX_USDC_TOTAL": "1.00"
  }
}}}

Node — npx -y twzrd-mcp-server

{ "mcpServers": { "twzrd": {
  "command": "npx", "args": ["-y", "twzrd-mcp-server"],
  "env": {
    "TWZRD_RPC_URL": "<your dedicated Solana RPC url>",
    "TWZRD_WALLET_SECRET_KEY": "<base58 Solana secret>",
    "TWZRD_MCP_PAYMENTS_ENABLED": "1",
    "TWZRD_MAX_USDC_PER_CALL": "0.05",
    "TWZRD_MAX_USDC_TOTAL": "1.00"
  }
}}}
Env var Default Meaning
TWZRD_MCP_PAYMENTS_ENABLED unset (off) set 1 to arm paid tools — required on both runtimes
TWZRD_WALLET_SECRET_KEY (Node) / TWZRD_WALLET_KEYPAIR (Python) signer for paid tools
TWZRD_MAX_USDC_PER_CALL 0.05 per-call spend cap
TWZRD_MAX_USDC_TOTAL 1.00 cumulative session spend cap
TWZRD_RPC_URL none — required for paid tools Solana RPC. Paid tools refuse to arm without it: the public RPC is rate-limited and loses x402 races (stale blockhash / sponsored feePayer between the 402 challenge and the signed retry), and a rejected settle can still move USDC. Free tools need no RPC. Set TWZRD_ALLOW_PUBLIC_RPC=1 to accept that risk anyway.

Safety

  • Opt-in payments — paid tools sign only with TWZRD_MCP_PAYMENTS_ENABLED=1; a wallet key alone never arms spending.
  • Spend caps — per-call and session caps enforced in the payment selector before any signature.
  • Solana-only — a non-exact / non-solana: challenge is refused, never mis-signed.
  • Single-shot retry — at most one signed retry per tool call; a second 402 is surfaced, not silently re-paid.
  • Free tools never enter the payment path.

Verify receipts offline (trust no one)

full_trust returns a portable Ed25519-signed V6 receipt. Verify it without trusting any TWZRD server — the issuer key is twzrd-receipt-ed25519-v1 (9V6Pn19kiUA5Rn6JpQfNduanvGt2aXGwsarosNfa2Ldf), pinned at https://intel.twzrd.xyz/.well-known/twzrd-receipt-pubkey:

npx twzrd-receipt-verifier <receipt.json> --pubkey 9V6Pn19kiUA5Rn6JpQfNduanvGt2aXGwsarosNfa2Ldf

Development

npm run build && npm run demo lists tools and runs a free preflight from source (no spend by default). For the operator-authorized $0.001 settle proof, set TWZRD_DEMO_PAID=quick, provide a wallet key, and pin both caps to 0.001 (see examples/agent-drop-in.mjs).


Links: Agent Intelligence · hosted MCP · llms.txt · llms-full.txt · OpenAPI

License: MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twzrd_mcp-0.2.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twzrd_mcp-0.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file twzrd_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: twzrd_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for twzrd_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6186353aff19dfe72753a56d85d5f9b62929537239c6f95de6002cc7dd7a7438
MD5 0d236fbbe3265a167a39aedcce85b708
BLAKE2b-256 079471d39b2b4683f890f0752a37167d569c7987b6c5b7dfa16afb7472e7c1fa

See more details on using hashes here.

File details

Details for the file twzrd_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: twzrd_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for twzrd_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41d456fa86c29237fd8500f85f8a224e1eb1889977fac36cdd42c898770ac5e1
MD5 e37e53f22cf77c3b14e8518db8cf4ba3
BLAKE2b-256 7418c777edfa4bc27a28269de52f1d5a1baf9ba73752871585bdc9620089a2d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page