📢 Gate Square Exclusive: #WXTM Creative Contest# Is Now Live!
Celebrate CandyDrop Round 59 featuring MinoTari (WXTM) — compete for a 70,000 WXTM prize pool!
🎯 About MinoTari (WXTM)
Tari is a Rust-based blockchain protocol centered around digital assets.
It empowers creators to build new types of digital experiences and narratives.
With Tari, digitally scarce assets—like collectibles or in-game items—unlock new business opportunities for creators.
🎨 Event Period:
Aug 7, 2025, 09:00 – Aug 12, 2025, 16:00 (UTC)
📌 How to Participate:
Post original content on Gate Square related to WXTM or its
MCP protocol: Empowering large language models with an open standard for Web3
MC Protocol: A standardized solution for providing Web3 capabilities to large language models
MCP (Model-Context Protocol) is an emerging open protocol designed to provide standardized access to external tools and services for large language models. Unlike traditional plugin systems, MCP uses a client-server architecture to achieve seamless integration between the model and external systems through a unified protocol interface.
The Main Advantages of MC
Web3 and MCP Application Scenarios
In the Web3 field, MCP can provide rich blockchain interaction capabilities for large language models:
This article will build a simple Web3 MC service using Node.js and TypeScript, explaining the working principles and best practices of the MC.
Build Web3 MCP Service
1. Project Initialization
Create project folder and initialize:
bash mkdir web3-mcp-demo cd web3-mcp-demo npm init -y
Install the necessary dependencies:
bash npm install @anthropic-ai/sdk ethers npm install --save-dev typescript @types/node
Configure TypeScript:
Create a tsconfig.json file and configure it as needed.
2. Write MCP server
Create a simple tool to query the ETH balance on the Sepolia testnet as an example:
typescript import { ethers } from 'ethers'; import { MCPServer } from '@anthropic-ai/sdk';
const provider = new ethers.providers.JsonRpcProvider('YOUR_RPC_URL');
const server = new MCPServer();
server.tool('getBalance', async )address: string( => { const balance = await provider.getBalance(address); return ethers.utils.formatEther(balance); }(;
server.listen)3000, )( => { console.log('MCP server running on port 3000'); }(;
process.on)'uncaughtException', )error( => { console.error('Uncaught Exception:', error); }(;
process.on)'unhandledRejection', )reason, promise( => { console.error('Unhandled Rejection:', reason); }(;
![Web3 Beginner Series: Complete Transaction in One Sentence with MCP!])https://img-cdn.gateio.im/webp-social/moments-d04a22f589a672da1f2e0689c4faf0d4.webp)
( 3. Debugging Service
Compile TypeScript code and start the server:
bash npx tsc node dist/server.js
Testing with the MCP debugging tool:
bash npx @anthropic-ai/mcp-inspector
![Web3 Beginner Series: Complete the transaction in one sentence with MC!])https://img-cdn.gateio.im/webp-social/moments-9b68a4965c434afadef3a43a2634e853.webp###
( 4. Function Expansion
The service can be further improved by adding more features:
![Web3 Beginner Series: Complete Transaction in One Sentence with MC!])https://img-cdn.gateio.im/webp-social/moments-5cdc2b7df9117639a71eedb82271b6a9.webp###
( 5. Integrated into AI development environment
Integrate the constructed MCP service into AI development environments that support MCP, such as Cursor IDE. This allows interaction with Web3 functionalities through natural language.
For example, you can check the address balance with the following command:
"Check the ETH balance of address 0xE21E97Ad8B527acb90F0b148EfaFbA46625382cE on the Sepolia network"
Or send transaction:
"Transfer 0.1 ETH to address 0x2c1d9ef7ccede70d77e6038701cd63138dd920a0"
![Web3 Beginner Series: Complete Transaction in One Sentence with MC!])https://img-cdn.gateio.im/webp-social/moments-3b75d8bb1ec0eaf096e1e5bed36ff4e6.webp###
Future Outlook
The combination of MCP and Web3 opens up new possibilities for developers. Future directions to explore include:
Through MC, we can enable large language models to interact more conveniently with the blockchain world, providing users with a smarter and more intuitive Web3 experience.