loading…
Search for a command to run...
loading…
Enables users to manage Kaspa wallets, check balances, and send KAS tokens directly on the Kaspa blockDAG. It provides tools for transaction fee estimation and
Enables users to manage Kaspa wallets, check balances, and send KAS tokens directly on the Kaspa blockDAG. It provides tools for transaction fee estimation and retrieving detailed transaction history across mainnet and testnet environments.
MCP server for sending KAS on the Kaspa blockDAG.
Kaspa is a fast, scalable Layer-1 cryptocurrency built on proof-of-work (PoW) and powered by the GHOSTDAG protocol — a novel consensus mechanism that extends Nakamoto's original design. Unlike traditional blockchains that discard competing blocks, GHOSTDAG allows parallel blocks to coexist and orders them within a Directed Acyclic Graph (blockDAG), enabling high throughput while preserving decentralization and security.
Key Features:
npm install
npm run build
Set these environment variables:
| Variable | Required | Description |
|---|---|---|
KASPA_MNEMONIC |
Yes* | BIP39 mnemonic phrase (24 words) |
KASPA_PRIVATE_KEY |
Yes* | Hex-encoded private key (alternative to mnemonic) |
KASPA_NETWORK |
No | Network: mainnet, testnet-10, testnet-11. Defaults to mainnet |
KASPA_ACCOUNT_INDEX |
No | BIP44 account index when using mnemonic. Defaults to 0 |
*Either KASPA_MNEMONIC or KASPA_PRIVATE_KEY must be set.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"kaspa": {
"command": "npx",
"args": ["kaspa-mcp"],
"env": {
"KASPA_MNEMONIC": "your twenty four word mnemonic phrase here ...",
"KASPA_NETWORK": "mainnet"
}
}
}
}
generate_mnemonicGenerate a new BIP39 mnemonic phrase and derive the corresponding Kaspa wallet address.
Parameters:
wordCount (optional): Number of words - 12 or 24 (default: 12)network (optional): Network for address derivation - mainnet, testnet-10, or testnet-11 (default: mainnet)Returns:
{
mnemonic: string, // The generated BIP39 mnemonic phrase
address: string, // Derived Kaspa address (account 0)
network: string, // Network used
warning: string // Security reminder
}
Important: The mnemonic is generated using cryptographically secure randomness. Save it securely - it cannot be recovered if lost.
get_my_addressGet the Kaspa address derived from your configured private key or mnemonic.
Returns: { address: string }
get_balanceGet balance for a Kaspa address.
Parameters:
address (optional): Address to check. Defaults to your wallet address.Returns: { address: string, balance: string, utxoCount: number }
get_fee_estimateGet current fee estimates from the network.
Returns: { priorityFee: string, normalFee: string, lowFee: string }
send_kaspaSend KAS tokens to a recipient.
Parameters:
to: Recipient Kaspa address (must match wallet network)amount: Amount in KAS as string (e.g., "10.5", max 8 decimal places)priorityFee (optional): Priority fee in sompiReturns: { txId: string, fee: string }
Validations:
get_transactionGet transaction details including inputs and outputs.
Parameters:
txId: Transaction IDReturns:
{
txId: string,
accepted: boolean,
blockHash?: string,
blockTime?: number,
inputs: Array<{ transactionId: string, index: number }>,
outputs: Array<{ index: number, amount: string, address: string }>
}

Try these prompts to verify your MCP is working:
"Generate a new Kaspa wallet for me"
"What is my Kaspa address?"
"How much KAS do I have?"
"What are the current network fees?"
"Send 5 KAS to kaspa:qz..."
The MCP will:
m/44'/111111'/account' for mnemonic walletsnpm test
The test suite includes deterministic test vectors based on the Kaspium wallet for cross-implementation verification. Test vectors are stored in src/kaspa/test-vectors.json and include:
These vectors ensure that key derivation is consistent across Kaspa wallet implementations using the BIP44 path m/44'/111111'/account'/0/0.
Note: Coin type 111111 is Kaspa's de-facto standard, used by rusty-kaspa (official node), Kaspium, and kaspa-wasm. While not formally registered in SLIP-0044, it is the established ecosystem convention.
| Network | Address Prefix | API Endpoint |
|---|---|---|
mainnet |
kaspa: |
api.kaspa.org |
testnet-10 |
kaspatest: |
api-tn10.kaspa.org |
testnet-11 |
kaspatest: |
api-tn11.kaspa.org |
ISC
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"kaspa-mcp": {
"command": "npx",
"args": []
}
}
}