kaspa-mcp
Provides tools for compiling Solidity smart contracts and deploying them to Kaspa-ecosystem EVM networks such as Kasplex and Igra.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
kaspa-mcp
Public, open-source MCP connector so anyone can connect Grok Bot / Claude / Cursor, brainstorm ideas for building on Kaspa, and have their agent compile + deploy smart contracts on Kaspa-ecosystem networks (Kasplex, Igra today; native L1 covenants/vProgs stubs for later).
MIT · Non-custodial · Designed for $0 (public RPCs + free testnet faucets).
⚠️ UNAUDITED / USE AT YOUR OWN RISK
L1 SilverScript templates and prepare helpers are experimental and not security-audited. Funding or spending covenants on mainnet can lose funds.
Mainnet mode is prepare-only: tools return unsigned KasWare SafeJSON for your wallet to sign (signPskt→pushTx). This connector never accepts or stores mainnet private keys.
Prefer testnet-10 (kaspatest:) for all experiments. No warranty — you are solely responsible for any loss.
Deploy button = keyless copy (tap-to-approve). For chat-deploy without popups, use
npm run selfhost:setup(see Self-host below).
Legal: Privacy · Terms · Support
Listing kit: docs/LISTING.md · Logo: assets/logo.svg
Related MCP server: Vibe Coder MCP Server
Network choice
Before build/deploy, the connector asks Testnet or mainnet? (choose_network, persisted in KV). Testnet is the safe default. Mainnet shows an UNAUDITED warning. Guided self-host: self_host (includes own_node for your REST). Live fees: estimate_fee. Chat-deploy: TipJar / TimeoutVault / Escrow. Share: /page/<id>.
Spending wallet (chat-deploy, any phone)
Self-host only: create a dedicated hot wallet (spending_wallet_create), fund it once, then tools sign+broadcast with autoSignBroadcast / l1_tipjar_chat_deploy — no wallet popup. Key stays in your env/file/Worker secret, never on the shared demo. Testnet is the default; mainnet needs KASPA_SPENDING_MAINNET=1 + balance cap (default 50 KAS). Tap-to-approve remains available. Details: docs/SPENDING_WALLET.md. Roadmap / deferred mobile paths: docs/ROADMAP.md.
Quick-start wallet (no extension)
Brand-new users (including iPhone Safari) can create a Quick-start wallet on the approve page: keys stay on device (passkey / PIN), 50 KAS cap, backup required on mainnet. Details: docs/QUICKSTART_WALLET.md. Send KAS via l1_prepare_send or the on-page Send form.
Tap to approve (one-tap signing)
Every l1_prepare_fund, l1_prepare_spend, prepare_deploy, and prepare_call response includes tapToApprove.url (e.g. https://…/sign/<id>).
Open the link on a phone or desktop with KasWare (L1) or an injected EVM wallet (Kasplex).
The page loads the stored unsigned tx (KV, ~15 min TTL) and shows a summary derived from the transaction bytes (amounts, fee, outputs) — not from agent-provided prose.
Connect → Approve → wallet popup signs → explorer link. The page never sees private keys.
L1: KasWare
requestAccounts→signPskt→pushTx(verified against KasWare extension source). KastlesignAndBroadcastTx/signTxwhen injected. Spends with a pre-filled SilverScript unlock usepushTxonly.Strict CSP (
default-src 'none'; script-src 'self').
Mainnet shows an UNAUDITED / USE AT YOUR OWN RISK banner. Prefer testnet-10.
Shared demo: limits
A shared demo runs at https://kaspa-mcp.kaspa-mcp.workers.dev/mcp on a dedicated free Cloudflare account (not tied to anyone's other products).
Cap | What it means |
100,000 requests/day | Whole free account, resets midnight UTC. When hit, Cloudflare returns Error 1027. |
~10 ms CPU / request | Free Workers CPU budget. Heavy |
60 requests / min / actor | Per IP, or per |
180 requests / min / IP | Secondary ceiling so rotating demo keys cannot bypass limits. |
5 compiles / 10 min / actor | Tighter limit for |
Worker compile | Not available on the shared Workers demo (Cloudflare blocks |
Over the limit you get a JSON-RPC -32000 / HTTP 429 asking you to self-host. Limits use Cloudflare’s trusted CF-Connecting-IP (not spoofable X-Forwarded-For), the free Rate Limiting binding, and a Cache API counter (per colo; approximate under multi-colo load). Optional header X-Kaspa-Demo-Key gives a stable bucket behind NAT, still capped by the per-IP ceiling. Anyone with real usage should: one-click Deploy button (or one wrangler deploy) to your own free Cloudflare account → your own 100k/day; or run locally with npx / npm start for no shared limits.
Rate limits are off by default for self-hosters. Set RATE_LIMIT_ENABLED=true (and optional RATE_LIMIT_* vars) only if you want them.
Self-host (recommended for heavy use + no-popup chat-deploy)
Free Cloudflare — no-popup path (your own capped spending wallet):
git clone https://github.com/MikeyKaspa/kaspa-mcp && cd kaspa-mcp
npm install
npx wrangler login
npm run selfhost:setup
# optional wallet in one go:
# npm run selfhost:setup -- --create-wallet --main-address kaspatest:YOUR_ADDRESSThat deploys wrangler.selfhost.toml (never overwrites the public shared demo). Then paste the printed …/mcp URL into your AI app, fund the spending address from the TN10 faucet, and say “build me a tip jar”. Guided steps also live in the self_host MCP tool.
Keyless copy only (tap-to-approve, no spending key): use the Deploy to Cloudflare button above, or npx wrangler deploy with the default wrangler.toml (MCP_PUBLIC=true).
Local (no shared limits, offline solc):
npm install && npm test && npm start
# MCP: http://127.0.0.1:8787/mcpclaude mcp add --transport http kaspa http://127.0.0.1:8787/mcpConnect the shared demo to your AI
MCP URL:
https://kaspa-mcp.kaspa-mcp.workers.dev/mcpClaude (claude.ai / Desktop / Cowork) — one-click custom connector:
Or: Settings → Connectors → Add custom connector → paste the HTTPS URL above → No sign-in (shared demo is open). Claude’s cloud must reach the URL (public internet only; localhost will not work as a custom connector). See remote MCP help.
Claude Desktop local server — for npm start on your machine, bridge with stdio (Custom Connectors cannot see localhost):
# claude_desktop_config.json (mcp-remote speaks Streamable HTTP to your local server)
claude mcp add --transport http kaspa http://127.0.0.1:8787/mcp
# or: npx -y mcp-remote http://127.0.0.1:8787/mcp --transport http-onlyCursor — Settings → MCP → Add new MCP server → Type URL / Streamable HTTP → paste the demo URL (or your self-hosted /mcp). Or install the repo plugin (.cursor-plugin/plugin.json + mcp.json) when listed on the Cursor marketplace.
Grok Bot — Connect Apps → add remote MCP URL above (or install when listed). Marketplace kit: docs/LISTING.md.
Other MCP clients — any client that supports Streamable HTTP MCP can POST to /mcp.
Testnet gas (Kasplex)
Official Kasplex L2 faucets (faucet.kasplextest.xyz, app.kaspafinance.io/faucets) are often down or empty. Recommended free path today:
Claim L1 tKAS from the Kaspa TN10 faucet (paste a
kaspatest:address from a Kaspa testnet wallet).Bridge to Kasplex testnet with the official Kurve-Test bridge — destination Kasplex, paste your EVM address (MetaMask on RPC
https://rpc.kasplextest.xyz, chain id167012).Then
deploy_contractonkasplex-testnet(or uselocal-anvilfor a fully offline practice deploy).
Igra has its own faucet API: https://faucet.igralabs.com/docs
Why this exists
Existing Kaspa MCP servers cover L1 wallet/RPC reads or paid covenant helpers. None give a free, public, agent-friendly path to write + deploy Solidity on Kasplex/Igra with a non-custodial model.
Project | Deploy Solidity on Kasplex/Igra? |
pichukov / kasanova / moldis Kaspa MCPs | No (L1 focus) |
k402-mcp | Paid metered CaaS |
foundry-mcp-server | Generic EVM, not Kaspa-aware |
kaspa-mcp (this) | Yes (testnet first) |
Architecture
MCP tools → Network registry → Backend
├─ EvmBackend (Kasplex, Igra) ✅
├─ L1ReadBackend (api.kaspa.org) ✅
├─ CovenantBackend 🚧 stub
└─ VProgsBackend 🚧 stubNative L1: Toccata covenants live since 2026-06-30; Silverscript pre-audit; vProgs roadmap. v0.1 ships EVM deploy because agents can finish that path today.
Networks
Kasplex — testnet 167012 (rpc.kasplextest.xyz) · mainnet 202555 (evmrpc.kasplex.org)
Igra — Galleon 38836 · mainnet 38833
L1 reads — api.kaspa.org / api-tn10.kaspa.org
Safety
Never stores keys / mnemonics / keystores.
Mainnet: private keys rejected (including whitespace / 0x-less / mnemonic / JSON keystore attempts) →
prepare_*+ wallet sign +send_raw_transaction.Testnet only: optional per-call ephemeral
privateKey(strict0x+ 64 hex).Secrets redacted from errors. See SECURITY.md.
Tools
list_networks · kaspa_network_info · verify_rpc · kaspa_ideas · compile_solidity · deploy_contract · prepare_deploy · read_contract · prepare_call · send_raw_transaction · get_balance · get_tx · faucet_info · l1_blockdag_info
Prompt: build_on_kaspa. Resources under kaspa-mcp://docs/*.
Agent flow
kaspa_ideas→ 2.list_networks→ 3.compile_solidity→ 4.faucet_info→ 5.deploy_contract(testnet) orprepare_deploy→ 6.read_contract
Cost
Item | Cost |
Public RPCs + testnet faucets | $0 |
Local | $0 |
Cloudflare | $0 — do not add paid plans / custom domains |
Mainnet gas / bridging | Real money — not default |
Workers note: solc is loaded from binaries.soliditylang.org at runtime (not bundled). See docs/COST.md.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
OpenAI-compatible LLM MCP (7 tools); chat via balance key or x402 USDC on Base
Build and update complete applications in Apper through AI assistants using MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered chat and DeFi operations (swap, transfer) via MCP-compliant tools, integrating with LLMs for onchain actions.8 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, create starter projects, analyze codebases, and execute multi-step software development workflows through MCP tools.42 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, user stories, task lists, and full-stack starter projects, analyze codebases, curate context, and run multi-step software development workflows through MCP tools.42 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, map codebases, create starter projects, manage tasks, and run multi-step software development workflows through MCP tools.42 npmMIT