AI MCP Server of Blockchain

April 8, 2025 Β· View on GitHub

Functions πŸ˜€

  • get balance of address
  • get transaction content by transaction id or transaction hash
  • get block content by block number, block hash
  • get price More feature will come....πŸš€

Blockchain

  • Ethereum βœ…, VeChainβœ….
  • Bitcoin, Solana, Polygon will come soon.πŸš€

Setup

  1. Install dependencies using uv
$uv venv
$uv sync
  1. Create a .env file with your blockchain API key:

    export ETHEREUM_NODE_URL=<your-ethereum-url>
    export VECHAIN_NODE_URL=<your-vechain-url>
    

Running the Server Config

{
    "mcpServers": {
        "blockchain": {
            "command": "uv",
            "args": ["--from", "/your/blockchain/mcp/path/", "blockchain-mcp"],
            "env": {
  		"ETHEREUM_NODE_URL":"https://mainnet.infura.io/v3/<your_key>",
		"VECHAIN_NODE_URL":"https://<vechain-node-url>"
            }
        }
    }
}

Debug MCP Server

$source .env
$npx @modelcontextprotocol/inspector uv --directory /path/to/blockchain-mcp run blockchain-mcp

1743655193977

Integrated with AI Claude Desktop App

  1. Add Configure file
  2. Try it on Claude desktop App

1743654998520

1743851610820