You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A comprehensive Model Context Protocol (MCP) server that provides blockchain services across 60+ EVM-compatible networks. This server enables AI agents to interact with Ethereum, Optimism, Arbitrum, Base, Polygon, and many other EVM chains with a unified interface through 21 tools and 9 AI-guided prompts.
9
+
A comprehensive Model Context Protocol (MCP) server that provides blockchain services across 60+ EVM-compatible networks. This server enables AI agents to interact with Ethereum, Optimism, Arbitrum, Base, Polygon, and many other EVM chains with a unified interface through 22 tools and 10 AI-guided prompts.
10
10
11
11
## 📋 Contents
12
12
@@ -75,7 +75,7 @@ All services are exposed through a consistent interface of MCP tools, resources,
75
75
### Smart Contract Interactions
76
76
77
77
-**Read contract state** through view/pure functions
78
-
-**Write services** with private key signing
78
+
-**Write to contracts**- Execute any state-changing function with automatic ABI fetching
79
79
-**Contract verification** to distinguish from EOAs
80
80
-**Event logs** retrieval and filtering
81
81
-**Automatic ABI fetching** from Etherscan v2 API across all 60+ networks (no need to know ABIs in advance)
@@ -93,6 +93,7 @@ All services are exposed through a consistent interface of MCP tools, resources,
93
93
-**Transaction preparation** - Guidance for planning and executing transfers
94
94
-**Wallet analysis** - Tools for analyzing wallet activity and holdings
95
95
-**Smart contract exploration** - Interactive ABI fetching and contract analysis
96
+
-**Contract interaction** - Safe execution of write operations on smart contracts
96
97
-**Network information** - Learning about EVM networks and comparisons
97
98
-**Approval auditing** - Reviewing and managing token approvals
The server provides 21 focused MCP tools for agents. **All tools that accept address parameters support both Ethereum addresses and ENS names.**
444
+
The server provides 22 focused MCP tools for agents. **All tools that accept address parameters support both Ethereum addresses and ENS names.**
444
445
445
446
#### Wallet Information
446
447
@@ -487,6 +488,7 @@ The server provides 21 focused MCP tools for agents. **All tools that accept add
487
488
|-----------|-------------|----------------|
488
489
|`get_contract_abi`| Fetch contract ABI from block explorer (60+ networks) |`contractAddress` (address/ENS), `network`|
489
490
|`read_contract`| Read smart contract state (auto-fetches ABI if needed) |`contractAddress`, `functionName`, `args[]`, `abiJson` (optional), `network`|
491
+
|`write_contract`| Execute state-changing functions (auto-fetches ABI if needed) |`contractAddress`, `functionName`, `args[]`, `value` (optional), `abiJson` (optional), `network`|
Copy file name to clipboardExpand all lines: src/core/tools.ts
+113Lines changed: 113 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -765,6 +765,119 @@ export function registerEVMTools(server: McpServer) {
765
765
}
766
766
);
767
767
768
+
server.registerTool(
769
+
"write_contract",
770
+
{
771
+
description: "Execute state-changing functions on a smart contract. Automatically fetches ABI from block explorer if not provided (requires ETHERSCAN_API_KEY). Use this to call any write function on verified contracts. Requires EVM_PRIVATE_KEY to be configured.",
text: `Error: Could not auto-fetch ABI (${fetchErrorinstanceofError ? fetchError.message : String(fetchError)}). Please provide the contract ABI using the abiJson parameter, or use get_contract_abi to fetch it first.`
0 commit comments