AI MCP Server of Blockchain logo

AI MCP Server of Blockchain

by albertma

This is an AI MCP server designed to interact with blockchain data. It allows users to retrieve information such as account balances, transaction details, and block content from various blockchain networks.

View on GitHub

Last updated: N/A

AI MCP Server of Blockchain

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

1743655193977

Integrated with AI Claude Desktop App
  1. Add Configure file
  2. Try it on Claude desktop App

1743654998520

1743654998520

1743851610820

1743851610820