Kx402 MCP Server
by kali123411io.github.Kali123411/kx402v0.1.1
Kaspa x402 agent payer — pay x402 v2 services on Kaspa (KAS) per call, no account or API key
context tax
queued
security
queued
cold start
queued
freshness
Maintained3mo ago
Install Kx402 MCP server
Install in Claude Code
claude mcp add kx402 -e KASPA_X402_KASPA_WASM_MODULE='<kaspa-x402-kaspa-wasm-module>' -e KASPA_X402_FUNDING_WALLET='<kaspa-x402-funding-wallet>' -- npx -y kx402 mcpInstall in Cursor
{
"mcpServers": {
"kx402": {
"command": "npx",
"args": [
"-y",
"kx402",
"mcp"
],
"env": {
"KASPA_X402_KASPA_WASM_MODULE": "<kaspa-x402-kaspa-wasm-module>",
"KASPA_X402_FUNDING_WALLET": "<kaspa-x402-funding-wallet>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"kx402": {
"command": "npx",
"args": [
"-y",
"kx402",
"mcp"
],
"env": {
"KASPA_X402_KASPA_WASM_MODULE": "<kaspa-x402-kaspa-wasm-module>",
"KASPA_X402_FUNDING_WALLET": "<kaspa-x402-funding-wallet>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"kx402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kx402",
"mcp"
],
"env": {
"KASPA_X402_KASPA_WASM_MODULE": "<kaspa-x402-kaspa-wasm-module>",
"KASPA_X402_FUNDING_WALLET": "<kaspa-x402-funding-wallet>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"kx402": {
"command": "npx",
"args": [
"-y",
"kx402",
"mcp"
],
"env": {
"KASPA_X402_KASPA_WASM_MODULE": "<kaspa-x402-kaspa-wasm-module>",
"KASPA_X402_FUNDING_WALLET": "<kaspa-x402-funding-wallet>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| KASPA_X402_KASPA_WASM_MODULE | yes | — | Path to the rusty-kaspa v2.0.0 nodejs WASM SDK (kaspa.js). Get it with the repo's `npm run fetch-sdk`. |
| KASPA_X402_FUNDING_WALLET | yes | yes | Funding key: wallet-key:<path> to a 0600 file holding a 64-hex private key, or a raw 64-hex key. |
| KASPA_X402_NETWORK | — | — | kaspa:mainnet or kaspa:testnet-10 (default testnet-10). |
Freshness
Maintained — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-07-22 · 3mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-07-21 · 3mo ago · official registry · v0.1.1
FAQ
›How do I install the Kx402 MCP server in Claude Code?
Run: claude mcp add kx402 -e KASPA_X402_KASPA_WASM_MODULE='<kaspa-x402-kaspa-wasm-module>' -e KASPA_X402_FUNDING_WALLET='<kaspa-x402-funding-wallet>' -- npx -y kx402 mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Kx402 require an API key?
Yes. It expects KASPA_X402_KASPA_WASM_MODULE, KASPA_X402_FUNDING_WALLET, of which 1 is a secret.
›Can I use Kx402 as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Kx402 in the official MCP registry?
Yes, as io.github.Kali123411/kx402.