Kaspa MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Kaspa MCP Servercheck the balance of address kaspa:qzg0m4l3p5w6x7y8z9a0b1c2d3e4f5g6h7j8k9l0m"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Kaspa MCP Server
MCP server for Kaspa blockchain node RPC integration, providing tools to interact with Kaspa nodes via RPC calls.
🚀 Quick Setup
Prerequisites
For uvx method: Install uv which includes uvx
For Docker method: Install Docker
Kaspa RPC endpoint: Access to a Kaspa node RPC (local or remote)
Installation Methods
Choose one of the following methods based on your MCP client:
Related MCP server: Kaspa MCP
📱 Claude Desktop
Add to your Claude Desktop configuration file:
Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Method 1: Using uvx (Recommended)
{
"mcpServers": {
"kaspa": {
"command": "uvx",
"args": ["--from", "/path/to/mcp-kaspa", "kaspa-mcp-server"],
"env": {
"KASPA_RPC_URL": "http://localhost:16110"
}
}
}
}Method 2: Using Docker
{
"mcpServers": {
"kaspa": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--env", "KASPA_RPC_URL=http://host.docker.internal:16110",
"ghcr.io/moldis/mcp-kaspa:latest"
]
}
}
}🖥️ Cursor IDE
Add to your Cursor settings:
Open Cursor Settings (Cmd/Ctrl + ,)
Search for "MCP" or go to Extensions → MCP
Add new server configuration:
Method 1: Using uvx
{
"mcp.servers": {
"kaspa": {
"command": "uvx",
"args": ["--from", "/path/to/mcp-kaspa", "kaspa-mcp-server"],
"env": {
"KASPA_RPC_URL": "http://localhost:16110"
}
}
}
}Method 2: Using Docker
{
"mcp.servers": {
"kaspa": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--env", "KASPA_RPC_URL=http://host.docker.internal:16110",
"ghcr.io/moldis/mcp-kaspa:latest"
]
}
}
}🎯 Qoder IDE
Add this MCP server in Qoder settings:
Open Qoder Settings (⌘⇧, on macOS or Ctrl+Shift+, on Windows)
Navigate to MCP section
Click "Add Server"
Method 1: Using uvx (Recommended)
Name: Kaspa MCP Server
Command: uvx
Arguments:
--from/path/to/mcp-kaspakaspa-mcp-server
Environment Variables:
KASPA_RPC_URL=http://localhost:16110
Method 2: Using Docker
Name: Kaspa MCP Server
Command: docker
Arguments:
run-i--rm--envKASPA_RPC_URL=http://host.docker.internal:16110ghcr.io/yourusername/mcp-kaspa:latest
Method 3: Direct Python (Fallback)
If uvx doesn't work:
Name: Kaspa MCP Server
Command: python3
Arguments:
-msrc.main
Environment Variables:
KASPA_RPC_URL=http://localhost:16110
Configuration Notes for All IDEs:
Replace
/path/to/mcp-kaspawith the actual absolute path to your cloned repositoryFor Windows paths, use backslashes:
C:\path\to\mcp-kaspaFor Docker: use
host.docker.internalinstead oflocalhostto access host servicesEnsure the path points to the directory containing
pyproject.tomlfor uvx method
🐳 Docker Support
Using Pre-built Image from GitHub Container Registry
The easiest way to use the Docker image is to pull it directly from GitHub Container Registry:
# Pull the latest image
docker pull ghcr.io/moldis/mcp-kaspa:latest
# Or pull a specific version
docker pull ghcr.io/moldis/mcp-kaspa:v1.0.0Run with Docker
# Test with a local Kaspa node
docker run -i --rm --env KASPA_RPC_URL=http://host.docker.internal:16110 ghcr.io/moldis/mcp-kaspa:latest
# Test with a remote Kaspa node
docker run -i --rm --env KASPA_RPC_URL=http://your-kaspa-node:16110 ghcr.io/moldis/mcp-kaspa:latestBuild the Docker Image Locally (Optional)
If you prefer to build the image yourself:
cd /path/to/mcp-kaspa
docker build -t kaspa-mcp-server:latest .Docker Notes
Use
host.docker.internalinstead oflocalhostwhen connecting to services on your host machineThe Docker image includes all necessary dependencies
Perfect for isolated execution environments
Images are automatically built and published on every tag push via GitHub Actions
🌍 Network Configuration
Kaspa RPC Endpoints
Local Node:
Default:
http://localhost:16110Docker:
http://host.docker.internal:16110
Public Endpoints (examples):
https://kaspa-rpc.example.com
Environment Variables
KASPA_RPC_URL: Kaspa node RPC endpoint (required)DEBUG: Set totruefor verbose logging (optional)
🛠 Available Tools
get_node_info - Get Kaspa node information and connection status
get_block_by_hash - Get detailed information about a specific block by its hash
get_latest_daa - Get the latest DAA (Difficulty Adjustment Algorithm) score
get_block_dag_info - Get comprehensive BlockDAG information
validate_address - Validate a Kaspa address format
get_address_balance - Get balance for a specific Kaspa address
get_address_utxos - Get UTXOs (Unspent Transaction Outputs) for specific addresses
get_mempool_transactions - Get mempool transactions for specific addresses
get_transaction_by_hash_mempool - Get a specific transaction from mempool by hash (mempool only, not blockchain history)
📚 Resources
kaspa://status- Server status and configurationkaspa://docs/examples- Usage examples
📦 Installation
# Clone the repository
git clone https://github.com/moldis/mcp-kaspa.git
cd mcp-kaspa
# Pull pre-built Docker image (recommended)
docker pull ghcr.io/moldis/mcp-kaspa:latest
# OR build Docker image locally (optional)
docker build -t kaspa-mcp-server:latest .🔍 Troubleshooting
Common Issues
"Broken Pipe" Error:
✅ Fixed: The server now includes comprehensive error handling
✅ Fixed: Graceful startup process with proper stdio communication
✅ Fixed: Connection timeouts and better RPC error handling
"uvx not found":
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh(Unix) orpowershell -c "irm https://astral.sh/uv/install.ps1 | iex"(Windows)Use Docker method as alternative
Use direct Python method as fallback
"Cannot connect to Kaspa RPC":
Verify your Kaspa node is running and accessible
Check firewall settings
For Docker: use
host.docker.internalinstead oflocalhostServer will start but functionality will be limited until RPC is accessible
MCP Client Can't Find Server:
Ensure the path to mcp-kaspa directory is correct
For uvx: path should point to directory containing
pyproject.tomlFor Docker: ensure image is built with correct tag
Check MCP client logs for detailed error messages
Verification Steps
Test uvx installation:
cd /path/to/mcp-kaspa echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"1.0.0","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | uvx --from . kaspa-mcp-serverTest Docker setup:
docker run -i --rm --env KASPA_RPC_URL=http://localhost:16110 ghcr.io/moldis/mcp-kaspa:latestCheck server response: Should return a JSON response with
"result":{"protocolVersion":"2025-06-18"...}
📝 Example Usage
Once configured in your MCP client, you can use tools like:
Basic Node Information
get_node_info()Address Validation
validate_address("kaspa:qpauqsvk7yf9unexwmxsnmg547mhyga37csh0kj53q6xxgl24ydxjsgzthw5j")Get Latest DAA Score
get_latest_daa()Get Block Information
get_block_by_hash("block_hash_here")Check Address Balance
get_address_balance("kaspa:your_address_here")Get UTXOs
get_address_utxos(["kaspa:address1", "kaspa:address2"])Get Transaction from Mempool
get_transaction_by_hash_mempool("transaction_hash_here")📚 Additional Resources
📝 License
MIT License - see LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/moldis/mcp-kaspa'
If you have feedback or need assistance with the MCP directory API, please join our Discord server