Official Coinbase Base MCP server
## Base Blockchain MCP Server: Layer 2 Ethereum The **Base Blockchain MCP Server** integrates Coinbase's Base Layer 2 network into Google Antigravity, enabling developers to build on Ethereum's scalable layer 2 through AI-assisted blockchain development. ### Why Base Blockchain MCP? - **Coinbase Backed**: Built and maintained by Coinbase - **Low Fees**: Fraction of Ethereum mainnet gas costs - **EVM Compatible**: Deploy existing Solidity contracts - **Fast Transactions**: Sub-second confirmation times - **Growing Ecosystem**: Rapidly expanding DeFi and NFT ecosystem ### Key Features #### 1. Transaction Management ```javascript // Get account balance const balance = await base.getBalance({ address: "0x..." }); console.log("ETH Balance:", balance); // Send transaction const tx = await base.sendTransaction({ to: "0x...", value: "0.1", gasLimit: 21000 }); // Get transaction receipt const receipt = await base.getTransactionReceipt({ txHash: tx.hash }); // Estimate gas const gasEstimate = await base.estimateGas({ to: "0x...", data: contractCallData }); ``` #### 2. Smart Contract Interaction ```javascript // Deploy contract const contract = await base.deployContract({ abi: contractABI, bytecode: contractBytecode, constructorArgs: ["arg1", "arg2"] }); // Call contract method const result = await base.callContract({ address: contract.address, abi: contractABI, method: "balanceOf", args: ["0x..."] }); // Write to contract const writeTx = await base.writeContract({ address: contract.address, abi: contractABI, method: "transfer", args: ["0x...", "1000000000000000000"] }); ``` ### Configuration ```json { "mcpServers": { "base-blockchain": { "command": "npx", "args": ["-y", "@anthropic/mcp-base"], "env": { "BASE_RPC_URL": "https://mainnet.base.org", "PRIVATE_KEY": "your-private-key" } } } } ``` ### Use Cases **DeFi Applications**: Build decentralized finance apps on Base. **NFT Platforms**: Create NFT marketplaces with low fees. **Web3 Games**: Develop blockchain games with fast transactions. The Base Blockchain MCP Server brings Layer 2 development to your workflow.
{
"mcpServers": {
"base-blockchain": {
"mcpServers": {
"base": {
"env": {
"CDP_API_KEY": "YOUR_CDP_API_KEY"
},
"args": [
"-y",
"@base/mcp"
],
"command": "npx"
}
}
}
}
}