Mcp3
What is Mcp3
MCP3 is a monorepo that contains implementations of the Model Context Protocol for various blockchain networks, designed specifically for Web3 applications.
Use cases
Use cases for MCP3 include building decentralized applications (dApps) on Ethereum and Sui Network, integrating with decentralized exchanges, and managing context in multi-chain environments.
How to use
To use MCP3, install dependencies using pnpm, build the packages, and run specific implementations as needed. Commands include ‘pnpm install’, ‘pnpm build’, and ‘pnpm start’ for individual packages.
Key features
Key features of MCP3 include shared utilities and types across implementations, specific implementations for Ethereum and Sui Network, and integration with DexScreener API.
Where to use
MCP3 can be used in blockchain development, particularly in Web3 applications that require context management across different networks.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp3
MCP3 is a monorepo that contains implementations of the Model Context Protocol for various blockchain networks, designed specifically for Web3 applications.
Use cases
Use cases for MCP3 include building decentralized applications (dApps) on Ethereum and Sui Network, integrating with decentralized exchanges, and managing context in multi-chain environments.
How to use
To use MCP3, install dependencies using pnpm, build the packages, and run specific implementations as needed. Commands include ‘pnpm install’, ‘pnpm build’, and ‘pnpm start’ for individual packages.
Key features
Key features of MCP3 include shared utilities and types across implementations, specific implementations for Ethereum and Sui Network, and integration with DexScreener API.
Where to use
MCP3 can be used in blockchain development, particularly in Web3 applications that require context management across different networks.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
MCP3 Monorepo
This monorepo contains implementations of the Model Context Protocol for different blockchain networks, providing tools and services for blockchain data access and interaction.
How to use MCP3 for SUI
MCP3 provides a comprehensive suite of tools for interacting with the Sui blockchain. The main package @mcp3/sui offers a CLI and API for common operations, while specialized packages provide additional functionality for specific protocols and use cases.
Claude Desktop Quick Start
Add following to your claude desktop config
{ ... "mcpServers": { ... "mcp3-sui": { "command": "npx", "args": [ "-y", "@mcp3/sui", "start", "-t" ] } ... } }
Use CLI
For a list of available commands and options, run:
npx @mcp3/sui --help
Using the Tool Command
MCP3 provides a unified tool command that organizes all tools from sub-projects as subcommands. To see all available tools, run:
npx @mcp3/sui tool
This will display a list of all available tools grouped by their prefix (e.g., sui-cetus, sui-wallets, etc.).
To run a specific tool, use:
npx @mcp3/sui tool <tool-name> [options]
For example:
npx @mcp3/sui tool sui-wallets-list npx @mcp3/sui tool sui-cetus-pool-list
Packages
Core Packages
@mcp3/common: Shared utilities, types, and tools used across all implementations@mcp3/eth: Ethereum implementation of the Model Context Protocol@mcp3/sui: Sui Network implementation of the Model Context Protocol
Sui Ecosystem Packages
@mcp3/sui-base: Base utilities and tools for Sui Network@mcp3/sui-wallets: Wallet management tools for Sui Network@mcp3/sui-cetus: Cetus Protocol integration for Sui Network@mcp3/sui-navi: Navi Protocol integration for Sui Network
Data Integration Packages
@mcp3/dex-screener: DexScreener API integration for MCP3@mcp3/defilama: DeFiLlama API integration for MCP3
Transaction Management
@mcp3/transaction-server: Server for handling transactions and serving the transaction UI@mcp3/transaction-ui: React component library for transaction signing and submission
Development
This project uses pnpm as the package manager and workspaces for managing the monorepo.
CLI Structure
MCP3 uses a unified CLI structure where:
- All tools from sub-projects are registered as subcommands of a main
toolcommand - When no specific tool is named, the CLI automatically lists all available tools
- Tools are grouped by their prefix for better organization
- Tools are only accessible through the
toolcommand
When implementing new tools:
- Register your tool using
registration.addTool()in your package - Create a callback function that registers all tools in your package
- Pass this callback to the
startClifunction as the second parameter
Example:
// Create a callback function to register tools
const registerTools = async (reg: Registration) => {
// Register your tools
registerYourTools(reg);
};
// Register tools immediately for the main CLI
registerTools(registration);
// Pass the callback to startCli
startCli(registration, registerTools);
Prerequisites
- Node.js (v18 or higher)
- pnpm (v8 or higher)
Setup
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Clean all packages
pnpm clean
# Run tests
pnpm test
Working with Individual Packages
# Build a specific package
pnpm --filter @mcp3/eth build
# Run a specific package
pnpm --filter @mcp3/sui start
# Run tests for a specific package
pnpm --filter @mcp3/sui-navi test
Package Dependencies
The packages in this monorepo have the following dependency relationships:
- Most packages depend on
@mcp3/commonfor shared utilities - Sui-related packages depend on
@mcp3/sui-basefor core Sui functionality @mcp3/suihas peer dependencies on various Sui ecosystem packages@mcp3/transaction-serverdepends on@mcp3/transaction-uifor serving the UI
Versioning
Packages in this monorepo are versioned independently. When making changes:
- Changes to a package will trigger version bumps for that package and its dependents
- Remember to include
sui-navipackage when bumping versions - When creating bundle packages, exclude transaction-server and transaction-ui projects from the bundle but add them as dependencies
Testing
Each package has its own test suite. For the sui-navi project, tests follow the same patterns as in sui-wallets, using the node:tests framework with tsx for dev dependencies.
# Run all tests
pnpm test
# Run tests for a specific package
pnpm --filter @mcp3/sui-navi test
Contributing
Contributions to MCP3 are welcome! Here are some guidelines:
- Fork the repository and create a feature branch
- Make your changes, following the code style of the project
- Add or update tests as necessary
- Update documentation to reflect your changes
- Submit a pull request with a clear description of the changes
License
ISC
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










