Labsco
lienhage logo

Blockchain MCP Server

from lienhage

A server for blockchain interactions, offering Ethereum vanity address generation, 4byte lookup, ABI encoding, and multi-chain RPC calls.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Blockchain MCP Server

A Model Context Protocol (MCP) based blockchain tools server providing Ethereum vanity address generation and Cast command functionality.

Features

1. Ethereum Vanity Address Generation

  • ๐ŸŽฏ Support for specifying address prefix and suffix
  • โšก Multi-threaded concurrent computation for optimized performance
  • ๐Ÿ“Š Real-time generation statistics display
  • โœ… Address validity verification

2. Cast Command Tools

  • ๐Ÿ” 4byte: Get function signatures from function selectors
  • ๐Ÿ”ง 4byte-decode: Decode ABI-encoded calldata
  • ๐Ÿ“ฆ abi-encode: ABI encode function parameters
  • ๐Ÿ”„ abi-decode: ABI decode data

3. RPC Service

  • ๐Ÿ“ž static-call: Make static calls on any EVM-compatible chain (read-only)
  • ๐Ÿ’ธ send-transaction: Send transactions to smart contracts (requires private key)
  • ๐Ÿ’ฐ get-balance: Query address balance
  • ๐Ÿ”— list-chains: List supported chains

Performance Optimization

Vanity Address Generation Performance Tips

  • Shorter prefixes generate faster
  • Suffixes are slightly easier than prefixes
  • Recommended to use 4-8 worker threads for optimal performance
  • Avoid specifying both long prefix and long suffix simultaneously

Expected Generation Time

  • 4 hex characters: seconds to minutes
  • 5 hex characters: minutes to tens of minutes
  • 6 hex characters: hours
  • 7+ characters: may take very long time

Supported Blockchain Networks

Mainnet

  • Ethereum: ethereum (Chain ID: 1)
  • Polygon: polygon (Chain ID: 137)
  • BSC: bsc (Chain ID: 56)
  • Arbitrum: arbitrum (Chain ID: 42161)
  • Optimism: optimism (Chain ID: 10)
  • Avalanche: avalanche (Chain ID: 43114)
  • Fantom: fantom (Chain ID: 250)

Testnet

  • Sepolia: sepolia (Chain ID: 11155111)

All networks use public RPC endpoints to ensure stability and accessibility.

Tech Stack

  • TypeScript: Type-safe JavaScript
  • MCP SDK: Model Context Protocol implementation
  • Ethers.js: Ethereum library
  • Node.js Worker Threads: Multi-threaded concurrent computation
  • 4byte.directory API: Function signature database

Security Considerations

โš ๏ธ Important Notes:

  • Generated private keys have complete control over assets
  • Always keep private keys secure and never share them with anyone
  • Recommend generating important addresses in offline environments
  • This tool is for learning and testing purposes only