k402-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| K402_STATE | No | Path where the auto-opened session persists (default: ~/.k402/session.json). | |
| K402_GATEWAY | No | URL of the public gateway (default: public gateway). | |
| K402_SESSION | No | Pin a funded session key. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| catalogA | 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_sessionA | 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 meters against it. Free. The session is saved locally so subsequent calls use it automatically. |
| session_statusA | Check the current payment session: deposit address, deposited / spent / remaining KAS. Free. |
| summarizeB | Summarize text or a public URL in at most max_words. Paid (~$0.001 in KAS). |
| extractA | Extract structured data from text as JSON guaranteed to match your JSON schema (schema-constrained decoding, not best-effort). Paid (~$0.0015 in KAS). |
| rewriteC | Rewrite text per an instruction (tone, format, length...). Paid (~$0.001 in KAS). |
| classifyA | 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_urlA | 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_textA | Embed up to 64 texts (768-dim vectors, nomic-embed-text). Paid (~$0.0003 in KAS). |
| search_indexA | 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_queryA | Semantic-search a collection you indexed earlier; returns top-k matches with scores. Paid (~$0.0003 in KAS). |
| kaspa_balanceA | Balance of any Kaspa MAINNET address, straight from a node (no indexer, no API key). Paid (~$0.00015 in KAS). |
| kaspa_utxosB | UTXO set of a Kaspa mainnet address, including scriptPublicKey and covenant_id where set. Paid (~$0.0003 in KAS). |
| kaspa_tx_statusA | 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_estimateC | Current Kaspa mainnet feerate buckets (sompi per gram of tx mass). Paid (~$0.00015). |
| kaspa_networkA | Kaspa mainnet status: DAA score, block count, difficulty, node sync state. Paid (~$0.00015 in KAS). |
| generateC | Run a prompt on a GPU model tier: 'chat' (fast 7B, ~$0.0015), 'reason' (35B, ~$0.004), 'code' (coder model, ~$0.0025), or 'kaspa-expert' (RAG-grounded, current Kaspa knowledge, ~$0.0015). Returns the completion text. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kali123411/k402-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server