One MCP to rule all blockchain chains
## Web3 Multi-Chain MCP Server: Universal Blockchain Access The **Web3 Multi-Chain MCP Server** provides unified blockchain access across multiple networks, enabling developers to interact with Ethereum, Polygon, BSC, Arbitrum, and other EVM-compatible chains from Google Antigravity. ### Why Web3 Multi-Chain MCP? - **Multi-chain** - Support for all major EVM chains - **Unified API** - Same interface across all chains - **Chain switching** - Easy network switching - **Cross-chain queries** - Query multiple chains simultaneously - **Gas optimization** - Compare gas across chains ### Key Features #### 1. Chain Selection ```python # List supported chains chains = await mcp.call("web3", "list_chains", {}) for chain in chains: print(f"{chain[\"name\"]}: Chain ID {chain[\"chain_id\"]}") # Set active chain await mcp.call("web3", "set_chain", { "chain_id": 137 # Polygon }) ``` #### 2. Multi-Chain Queries ```python # Get balance on multiple chains balances = await mcp.call("web3", "get_balances", { "address": "0x...", "chains": ["ethereum", "polygon", "arbitrum"] }) for chain, balance in balances.items(): print(f"{chain}: {balance} native token") # Get token balance across chains token_balances = await mcp.call("web3", "get_token_balances", { "address": "0x...", "token_symbol": "USDC" }) ``` #### 3. Transaction Execution ```python # Send transaction on specific chain tx = await mcp.call("web3", "send_transaction", { "chain": "polygon", "to": "0x...", "value": "1.0", "gas_price": "auto" }) # Wait for confirmation receipt = await mcp.call("web3", "wait_for_transaction", { "chain": "polygon", "hash": tx["hash"] }) ``` #### 4. Gas Comparison ```python # Compare gas prices across chains gas_prices = await mcp.call("web3", "compare_gas_prices", { "chains": ["ethereum", "polygon", "arbitrum", "optimism"] }) for chain, price in gas_prices.items(): print(f"{chain}: {price[\"gwei\"]} gwei") ``` ### Configuration ```json { "mcpServers": { "web3": { "command": "npx", "args": ["-y", "@anthropic/mcp-web3"], "env": { "ETH_RPC_URL": "https://eth.llamarpc.com", "POLYGON_RPC_URL": "https://polygon.llamarpc.com", "ARBITRUM_RPC_URL": "https://arb1.arbitrum.io/rpc" } } } } ``` ### Use Cases **Multi-Chain dApps**: Build cross-chain applications. **Portfolio Tracking**: Monitor assets across chains. **Chain Comparison**: Find optimal chains for transactions. **Cross-Chain Bridges**: Facilitate cross-chain transfers. The Web3 Multi-Chain MCP Server enables universal blockchain access.
{
"mcpServers": {
"web3": {
"mcpServers": {
"web3": {
"env": {
"ETH_RPC_URL": "YOUR_ETH_RPC",
"SOL_RPC_URL": "YOUR_SOL_RPC"
},
"args": [
"-y",
"@strangelove-ventures/web3-mcp"
],
"command": "npx"
}
}
}
}
}