K402 MCP Server
io.github.Kali123411/k402v0.7.0
Agent-payable APIs on Kaspa: LLMs, chain data, covenants, zk proofs — pay per call, no API key
context tax
queued
security
queued
cold start
queued
freshness
Maintained3mo ago
Install K402 MCP server
Install in Claude Code
claude mcp add k402 -- uvx k402-mcpInstall in Cursor
{
"mcpServers": {
"k402": {
"command": "uvx",
"args": [
"k402-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"k402": {
"command": "uvx",
"args": [
"k402-mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"k402": {
"type": "stdio",
"command": "uvx",
"args": [
"k402-mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"k402": {
"command": "uvx",
"args": [
"k402-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| K402_GATEWAY | — | — | Gateway URL (defaults to the public k402 gateway) |
| K402_SESSION | — | — | Pin a funded session key (otherwise open_session mints one) |
Remote endpoints
- streamable-http
https://x402-compute.68cxgfyr0.workers.dev/mcp
Freshness
Maintained — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
no data · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-07-18 · 3mo ago · official registry · v0.7.0
FAQ
›How do I install the K402 MCP server in Claude Code?
Run: claude mcp add k402 -- uvx k402-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does K402 require an API key?
No required environment variables are declared in its published metadata.
›Can I use K402 as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is K402 in the official MCP registry?
Yes, as io.github.Kali123411/k402.