Blockchain MCP Server

by lienhage

Not rated
GitHub

About

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

Details

Author
lienhage
Categories
Developer Tools, Other

Setup

Install Blockchain MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/lienhage/blockchain-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

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

- 🎯 Support for specifying address prefix and suffix
- ⚑ Multi-threaded concurrent computation for optimized performance
- πŸ“Š Real-time generation statistics display
- βœ… Address validity verification

- πŸ”4byte: Get function signatures from function selectors
- πŸ”§4byte-decode: Decode ABI-encoded calldata
- πŸ“¦abi-encode: ABI encode function parameters
- πŸ”„abi-decode: ABI decode data

- πŸ“ž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

Generate Ethereum addresses matching specified conditions

- prefix(optional): Address prefix, excluding 0x
- suffix(optional): Address suffix
- workers(optional): Number of concurrent threads, default 4, max 16
- caseSensitive(optional): Whether case-sensitive, default false

{ "prefix": "1234", "suffix": "abcd", "workers": 8, "caseSensitive": false }

Get function signatures for the given selector

- selector: 4-byte function selector (hexadecimal)

{ "selector": "0xa9059cbb" }

- calldata: ABI-encoded calldata (hexadecimal)

{ "calldata": "0xa9059cbb000000000000000000000000..." }

- types: Parameter types array
- values: Parameter values array

{ "types": ["uint256", "address", "bool"], "values": [1000, "0x1234567890123456789012345678901234567890", true] }

Complete function call ABI encoding (with function selector)

- functionSignature: Function signature
- values: Parameter values array

{ "functionSignature": "transfer(address,uint256)", "values": ["0x1234567890123456789012345678901234567890", 1000] }

- types: Parameter types array
- data: Hexadecimal data to decode

{ "types": ["uint256", "address"], "data": "0x00000000000000000000000000000000000000000000000000000000000003e8" }

List all supported EVM-compatible chains

Query address balance on specified chain

- chain: Chain identifier (e.g., "ethereum", "polygon", "bsc")
- address: Address to query
- blockTag(optional): Block tag, default "latest"

{ "chain": "ethereum", "address": "0x1234567890123456789012345678901234567890" }

Make static calls to smart contracts (read-only operations)

- chain: Chain identifier
- to: Contract address
- data: ABI-encoded function call data
- blockTag(optional): Block tag, default "latest"

{ "chain": "ethereum", "to": "0xA0b86a33E6441068C73f4Ea6cB24b80b52bF97F4", "data": "0x70a08231000000000000000000000000123456789012345678901234567890123456789" }

Send transactions to smart contracts (requires private key)

- chain: Chain identifier
- to: Contract address
- data: ABI-encoded function call data
- value(optional): ETH amount to send (wei)
- gasLimit(optional): Gas limit
- gasPrice(optional): Gas price (wei)
- privateKey: Sender's private key

{ "chain": "sepolia", "to": "0x1234567890123456789012345678901234567890", "data": "0xa9059cbb000000000000000000000000...", "value": "0", "privateKey": "0x..." }

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

- 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

- 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)

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

- 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

- 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

You can install this MCP server globally:

{ "mcpServers": { "blockchain": { "command": "npx", "args": ["blockchain-mcp-server"] } } }

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Read/write to over 2k blockchains, enabling data querying, contract analysis/deployment, and transaction execution, powered by Thirdweb.

Server-side EVM wallet for Ai agents. Send transactions, manage tokens, and interact with smart contracts across multiple chains.

A comprehensive toolkit for Ethereum blockchain analysis directly within Claude AI.

An MCP server for Solana development providing basic RPC methods and helpful prompts.

An MCP server providing access to various Starknet RPC methods.

An MCP server for interacting with the Tatara blockchain ecosystem. Requires configuration for the Tatara RPC endpoint and a wallet private key.

MCP server for Klever blockchain smart contract development, on-chain data exploration, and VM interaction. Public remote server available at https://mcp.klever.org/mcp.

Model Context Protocol Servers Repository for OpenZeppelin Products

Interact with Aptos documentation and create full-stack Aptos blockchain applications.

A MCP server for interacting with Aptos NPM packages.

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.