Coin Daemon (Zcash) MCP server

Integrates with cryptocurrency daemon RPC interfaces to enable secure querying and management of blockchain networks, with initial support for Zcash.
Back to servers
Setup instructions
Provider
Pooly Canada
Release date
Feb 10, 2025
Language
TypeScript
Stats
1 star

This MCP server enables AI assistants to interact with cryptocurrency daemon RPC interfaces, allowing them to manage and query cryptocurrency nodes in a controlled manner. It provides a bridge between AI systems and various cryptocurrency networks through a standardized protocol.

Installation Options

Installing via Smithery

To install the Cryptocurrency Daemon Server for Claude Desktop automatically using Smithery:

npx -y @smithery/cli install @raw391/coin_daemon_mcp --client claude

Manual Installation

Install the Package

Install the package using npm:

npm install @raw391/coin-daemon-mcp

Configure Claude Desktop

Modify your Claude Desktop configuration file at:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the following to your configuration:

{
  "mcpServers": {
    "cryptocurrency": {
      "command": "npx",
      "args": [
      "-y",
        "@raw391/coin-daemon-mcp"
      ],
      "env": {
        "CONFIG_PATH": "path/to/your/config.json"
      }
    }
  }
}

Configuration

Create a Configuration File

Create a JSON configuration file for your cryptocurrency daemons:

Basic Single Daemon Configuration

{
  "daemons": [
    {
      "coinName": "zcash",
      "nickname": "zec-main",
      "rpcEndpoint": "127.0.0.1:8232",
      "rpcUser": "your-rpc-user",
      "rpcPassword": "your-rpc-password"
    }
  ]
}

Multiple Daemons Configuration

{
  "daemons": [
    {
      "coinName": "zcash",
      "nickname": "zec-main",
      "rpcEndpoint": "127.0.0.1:8232",
      "rpcUser": "zec-user",
      "rpcPassword": "zec-password"
    },
    {
      "coinName": "bitcoin",
      "nickname": "btc-main",
      "rpcEndpoint": "127.0.0.1:8332",
      "rpcUser": "btc-user",
      "rpcPassword": "btc-password"
    }
  ]
}

Configure Your Cryptocurrency Daemon

Ensure your cryptocurrency daemon's configuration file (e.g., zcash.conf, bitcoin.conf) has the appropriate RPC settings:

server=1
rpcuser=your-rpc-user
rpcpassword=your-rpc-password
rpcallowip=127.0.0.1

Advanced Configuration with Data Directory

For better security, consider using a file system MCP to manage daemon data:

{
  "mcpServers": {
    "cryptocurrency": {
      "command": "npx",
      "args": [
        "-y",
        "@raw391/coin-daemon-mcp"
      ],
      "env": {
        "CONFIG_PATH": "C:/CryptoConfig/daemon-config.json"
      }
    },
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "C:/CryptoData"
      ]
    }
  }
}

Using the MCP Server

After completing the configuration, restart Claude Desktop. The MCP server provides several capabilities:

Available Tools

Transaction Management

  • send-coins: Send transparent transactions
  • zsend-coins: Send shielded transactions (for privacy coins)
  • shield-coins: Convert transparent to shielded funds

Wallet Operations

  • get-balance: Check wallet balances
  • execute-command: Execute any supported RPC command

Daemon Management

  • check-status: Get daemon information

Resources

  • crypto://{coinType}/help: Access cryptocurrency documentation
  • daemon://{name}/help: Get daemon-specific help
  • daemon://{name}/transactions: View recent transaction history

Prompt Templates

  • send-transaction-template: Guided prompt for transactions
  • balance-analysis: Analyze wallet balances and distribution
  • daemon-diagnostic: Perform daemon health checks

Example Usage Scenarios

  1. Checking Status: Ask "What's the current status of the Zcash daemon?"

  2. Managing Balances: Ask "What's my current balance across all addresses?"

  3. Learning About Cryptocurrencies: Ask "Can you explain how Zcash shielded transactions work?"

  4. Sending Transactions: Ask "Can you help me send 0.1 ZEC to address xxx?"

Security Best Practices

Secure Wallet Management

  • Create dedicated wallets for AI interactions
  • Keep minimal funds in accessible wallets
  • Use test networks for development

RPC Security

  • Use strong, unique RPC credentials
  • Enable only necessary RPC commands
  • Restrict RPC access to localhost
  • Monitor RPC logs

Data Management

  • Perform regular wallet backups
  • Store configuration files securely
  • Monitor all transactions
  • Conduct regular security audits

Troubleshooting

Connection Issues

  • Verify the daemon is running
  • Check RPC credentials
  • Confirm correct port numbers
  • Verify localhost access permissions

Permission Problems

  • Check file permissions
  • Verify RPC user rights
  • Ensure configuration paths are correct

Transaction Issues

  • Verify sufficient funds are available
  • Check network connectivity
  • Ensure the daemon is fully synced

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "cryptocurrency" '{"command":"npx","args":["-y","@raw391/coin-daemon-mcp"],"env":{"CONFIG_PATH":"path/to/your/config.json"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cryptocurrency": {
            "command": "npx",
            "args": [
                "-y",
                "@raw391/coin-daemon-mcp"
            ],
            "env": {
                "CONFIG_PATH": "path/to/your/config.json"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "cryptocurrency": {
            "command": "npx",
            "args": [
                "-y",
                "@raw391/coin-daemon-mcp"
            ],
            "env": {
                "CONFIG_PATH": "path/to/your/config.json"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later