L'Agora
MCPResponds

io.github.Kali123411/k402

Agent-payable APIs on Kaspa: LLMs, chain data, covenants, zk proofs — pay per call, no API key

No review yet · 0 questions Write a reviewAsk the authorFollow this entry

Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.

All projects by Kali123411

Server address
https://x402-compute.68cxgfyr0.workers.dev/mcp (streamable-http)
Version
0.7.0
Author
Kali123411 (namespace verified by the registry)
Source
Official MCP registry (updated Jul 18, 2026)

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Questions for the author

No question yet.

Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.

Continue with GoogleGet a link by email

How to install it

Variables to fill in: K402_GATEWAY, K402_SESSION.

Remote server (nothing to install)

Claude Code

In a terminal:

claude mcp add --transport http k402 https://x402-compute.68cxgfyr0.workers.dev/mcp
Claude (app and claude.ai)

Open Settings, then Connectors, and add a custom connector with this address. If the server asks you to sign in, Claude will walk you through it.

https://x402-compute.68cxgfyr0.workers.dev/mcp
ChatGPT

In Settings, Apps & Connectors section, turn on developer mode, then create a connector with this address.

https://x402-compute.68cxgfyr0.workers.dev/mcp
Cursor ~/.cursor/mcp.json

Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in the project):

{
  "mcpServers": {
    "k402": {
      "url": "https://x402-compute.68cxgfyr0.workers.dev/mcp"
    }
  }
}
VS Code .vscode/mcp.json

Add this to your project’s .vscode/mcp.json:

{
  "servers": {
    "k402": {
      "type": "http",
      "url": "https://x402-compute.68cxgfyr0.workers.dev/mcp"
    }
  }
}

On your machine

Claude Code

The server runs on your machine (pypi package). In a terminal:

claude mcp add k402 -e K402_GATEWAY=YOUR_K402_GATEWAY -e K402_SESSION=YOUR_K402_SESSION -- uvx [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "k402": {
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "env": {
        "K402_GATEWAY": "YOUR_K402_GATEWAY",
        "K402_SESSION": "YOUR_K402_SESSION"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "k402": {
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "env": {
        "K402_GATEWAY": "YOUR_K402_GATEWAY",
        "K402_SESSION": "YOUR_K402_SESSION"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "k402": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "env": {
        "K402_GATEWAY": "YOUR_K402_GATEWAY",
        "K402_SESSION": "YOUR_K402_SESSION"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

Responds The server speaks MCP and lists its tools.

Date
Nov 28, 2026, 11:02 (test run by L’Atlas)
Response time
1,632 ms (whole test)
Tools found
44
Announced name
k402 1.28.1
Protocol
MCP 2025-11-25
Next test
Dec 5, 2026
See the tools (44)
  • catalog
    List every service this gateway sells (text tools, Kaspa chain data, LLM tiers) with live prices in KAS and USD. Free. Start here to see what's available and what calls cost.
  • open_session
    Open a prepaid payment session: returns a session key and a personal Kaspa MAINNET deposit address. Send KAS to the address from any wallet (min 0.25 KAS); confirmed deposits become spendable balance within seconds and every paid tool call
  • use_session
    Attach an existing k402 session key (from a previous open_session) so paid calls meter against its balance — use after reconnecting to the hosted endpoint, or to carry one funded session across clients. Returns the session's current balance
  • session_status
    Check the current payment session: deposit address, deposited / spent / remaining KAS. Free.
  • registry_search
    Discover providers in the k402 service exchange — an open marketplace of agent-payable services, each settled directly with the provider (no custodian): over a Kaspa payment channel, or per call in kUSD (the covenant-native dollar on Kaspa)
  • registry_provider
    Full detail on one provider in the Kaspa Agent Market by its payee pubkey: every service it lists, its reputation derived from chain-verified settlements (settled KAS, settled kUSD cents, counts, first/last), and its payee address. Free.
  • registry_activity
    The Kaspa Agent Market's settlements feed: kUSD payments the registry verified on its own node, newest first (txid, box index, payee, cents, capability, time) and the all-time total. This is what agents actually paid, not what anyone claime
  • verify_settlement
    Did a kUSD payment count? Two independent answers. `registry`: the Kaspa Agent Market's verified settlement row(s) for the txid (it checked the box on its own node before recording it), or verified:false when it has none. `node`: when you a
  • channel_config
    Parameters for opening a kaspa-channel — a covenant-enforced payment channel that settles per-call vouchers on Kaspa L1 with NO custodian (the trustless alternative to a prepaid session). Returns the payee pubkey, min/max channel size, requ
  • channel_status
    Status of a kaspa-channel by its channel id (covenant id): funded value, amount spent via vouchers, remaining, expiry, and whether it has been closed on-chain. Free.
  • payment_options
    Which coins and schemes this gateway accepts for payment. Free. Ways to pay any paid tool: a prepaid KAS session (open_session — simplest, no per-call step); per-call in any listed coin (pay the offer a 402 returns, then pay_per_call); or,
  • pay_per_call
    Complete a PER-CALL coin payment. After a paid tool returns a 402 with pay_per_call_offers, pay one offer on-chain from your own wallet, then call this with the 402's `endpoint` and `request_body`, the chosen offer's `scheme` and `payment_i
  • pay_kusd
    Buy one call from the kUSD market: discover the providers listing `capability` for kUSD (registry_search currency='kUSD'), rank them (policy: registry | cheapest | reputation), pay the best one from YOUR kUSD wallet — at most `max_price_cen
  • get_quote
    What one call would cost, fully checked, with NOTHING paid. Give a `capability` (the best listing on the Kaspa Agent Market is quoted, ranked by `policy`: registry | cheapest | reputation) or an `endpoint` (+ its listed `payee_pubkey` so th
  • list_service
    Sell on the Kaspa Agent Market: publish a kUSD-priced listing for YOUR 402-gated endpoint. The listing is signed with your kUSD wallet key (so payments reach you and nobody else can list as you) and the registry's listing fee (10¢ of kUSD o
  • delist_service
    Remove YOUR listing from the Kaspa Agent Market: a signed DELETE with the same listing body (same capability, endpoint, price, description), signed by your kUSD wallet key. Free. Local (stdio) only.
  • kusd_balance
    Your kUSD market wallet: kUSD cents (and the boxes they sit in), KAS, and the payee key other agents would pay. Local (stdio) k402-mcp only; free.
  • kusd_spend_status
    What your kUSD wallet's OPERATOR allows pay_kusd to spend, and what is left: frozen (kill switch), lifetime total, this window's cents / calls / PSM top-ups / unserved payments, the remaining amount on each bounded axis, and the policy itse
  • summarize
    Summarize text or a public URL in at most max_words. Paid (~$0.001 in KAS).
  • extract
    Extract structured data from text as JSON guaranteed to match your JSON schema (schema-constrained decoding, not best-effort). Paid (~$0.0015 in KAS).
  • rewrite
    Rewrite text per an instruction (tone, format, length...). Paid (~$0.001 in KAS).
  • classify
    Classify text into one (or multiple, if multi=true) of 2-32 labels; the result is constrained to your label set. Paid (~$0.0003 in KAS).
  • read_url
    Fetch a public web page and return its title + clean markdown; distill=true adds key-fact bullets. Useful when you have no web access of your own. Paid (~$0.0012 in KAS).
  • embed_text
    Embed up to 64 texts (768-dim vectors, nomic-embed-text). Paid (~$0.0003 in KAS).
  • search_index
    Store documents [{id, text, meta?}] in a named server-side collection for semantic search. Use an unguessable collection name and keep it secret. Paid (~$0.0015 in KAS).
  • search_query
    Semantic-search a collection you indexed earlier; returns top-k matches with scores. Paid (~$0.0003 in KAS).
  • kaspa_balance
    Balance of any Kaspa MAINNET address, straight from a node (no indexer, no API key). Paid (~$0.00015 in KAS).
  • kaspa_utxos
    UTXO set of a Kaspa mainnet address, including scriptPublicKey and covenant_id where set. Paid (~$0.0003 in KAS).
  • kaspa_tx_status
    Mempool status of a Kaspa transaction. Absent from mempool means accepted-or-unknown — confirm acceptance by checking one of its outputs with kaspa_utxos. Paid (~$0.00015).
  • kaspa_fee_estimate
    Current Kaspa mainnet feerate buckets (sompi per gram of tx mass). Paid (~$0.00015).
  • kaspa_network
    Kaspa mainnet status: DAA score, block count, difficulty, node sync state. Paid (~$0.00015 in KAS).
  • generate
    Run a prompt on a GPU model tier: 'chat' (fast 7B, ~$0.0015), 'llama' (budget 8B, ~$0.0008), 'reason' (35B, ~$0.004), 'think' (deep chain-of-thought 35B MoE, ~$0.004), 'code' (coder model, ~$0.0025), or 'kaspa-expert' (RAG-grounded, current
  • covenant_compile
    Compile a Silverscript covenant to script hex, ABI, hardened template hash, and its P2SH address on each network. constructor_args is the silverc ctor JSON (e.g. [{"kind":"int","data":7}]). Paid (~$0.002). NOTE: 'compiles' ≠ proven on-chain
  • covenant_address
    Derive the covenant P2SH address for a compiled script on 'mainnet' or 'testnet-10'. Paid (~$0.0003).
  • covenant_utxos
    Live UTXO set locked under a covenant address (covenant state inspection), from the node. Optionally filter by covenant_id. Paid (~$0.0003).
  • covenant_build
    Assemble a covenant spend tx. Each input: {txid, index, entry, compute_budget?, and either sigscript:{source,decl,args,is_leader?} to build a covenant sigscript server-side, or omit sigscript for a P2PK input you sign locally}. Each output:
  • covenant_check
    Local txscript pre-verify of a signed covenant tx BEFORE broadcast — catches script failures that would otherwise cost you a broadcast. 'entries' are the spent UTXOs (covenant_utxos output plugs in directly). Returns {all_ok, inputs:[{index
  • covenant_broadcast
    Broadcast a signed covenant tx (RpcTransaction JSON from covenant_build). MAINNET moves real KAS — run covenant_check first. Paid (~$0.0003).
  • prove_guest_upload
    Upload a RISC Zero program binary (the .bin risc0-build emits, base64) once; returns its content-addressed image_id (also the verification key), reusable across proofs. Paid (~$0.01).
  • prove_preflight
    Execute a guest WITHOUT proving: exact cycle count + a signed price quote {total_cycles, price_kas, quote_id, quote_expires}. Run this first — proving cost scales with cycles by orders of magnitude. Paid (~$0.002).
  • prove_submit
    Queue a proving job -> {job_id, cost_kas}. Pass quote_id (from prove_preflight; charged the quote) or max_kas (skip preflight; priced on actual cycles, refuses if over the cap). Then poll job_status and fetch job_result. Paid: the proof's c
  • job_status
    Poll a proving job: queued/running/done/failed, queue position, cost. Free.
  • job_result
    Fetch a finished proving job's result {image_id, total_cycles, journal_b64, receipt_b64}. 404 until done; results kept 24h. Free.
  • attest_verify
    Verify a RISC Zero receipt against an image_id -> {valid, journal_b64}. Anyone can check an attestation without trusting the prover. Paid (~$0.0002).

What the test does: it opens an MCP session (initialize) and asks for the tool list (tools/list), with no key or account. No tool is ever called. Learn more

Cite this entry

For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.

io.github.Kali123411/k402 · L’Agora · Tested on

[io.github.Kali123411/k402 — L’Agora](https://lagora.dev/en/entry/io.github.kali123411/k402)

Sources, methodology and limitations

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.Kali123411/k402 on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.Kali123411/k402 on L’Agora](https://lagora.dev/badge/io.github.kali123411/k402.svg?lang=en)](https://lagora.dev/en/entry/io.github.kali123411/k402)

HTML

<a href="https://lagora.dev/en/entry/io.github.kali123411/k402"><img src="https://lagora.dev/badge/io.github.kali123411/k402.svg?lang=en" alt="io.github.Kali123411/k402 on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

io.github.Kali123411/kx402 Local

Report this entry