Meson Cross-Chain Transfer
БесплатноНе проверенEnables secure cross-chain cryptocurrency transfers between Ethereum, Arbitrum, Avalanche, and other blockchains using the Meson Protocol, with local private ke
Описание
Enables secure cross-chain cryptocurrency transfers between Ethereum, Arbitrum, Avalanche, and other blockchains using the Meson Protocol, with local private key processing for enhanced security.
README
A Meson cross-chain transaction MCP (Model Context Protocol) server implemented with Deno and TypeScript, helping users transfer assets conveniently between different blockchains.
Features
- Cross-chain asset transfer based on Meson Protocol
- Conversational cross-chain transaction experience using MCP standard
- Integration of complete cross-chain transaction process: transaction preparation, signature submission, status query
- Support for mainnet and testnet environments
- Private key configuration using environment variables for security
- Based on Deno runtime, no complex dependency configuration required
Requirements
- Deno 1.37.0 or higher
- Ethereum compatible private key (for transaction signing)
Installation and Running
- Clone the repository
git clone <repository-url>
cd meson-mcp
- Set environment variables
# Linux/MacOS
export MESON_PRIVATE_KEY=your_private_key
# Windows
set MESON_PRIVATE_KEY=your_private_key
- Run the MCP server
deno run --allow-net --allow-env main.ts
MCP Configuration Guide
You can use the Meson cross-chain transaction MCP service by adding the following configuration to your MCP configuration file:
"meson_mcp": {
"command": "npx",
"args": [
"deno",
"run",
"--allow-env",
"--allow-net",
"--allow-read",
"jsr:@demcp/meson-mcp"
],
"env": {
"MESON_PRIVATE_KEY": "0x1234567890abcdef",
"MESON_USE_MAINNET": "true"
}
}
Configuration Parameters
command: Execution command, here using
npxto run Denoargs: Command argument list
deno: Specifies using the Deno runtimerun: Deno's run command--allow-env: Permission to access environment variables--allow-net: Permission for network access--allow-read: Permission for file readingjsr:@demcp/meson-mcp: Package name loaded from JSR (JavaScript Registry)
env: Environment variable configuration
MESON_PRIVATE_KEY: Your Ethereum-compatible private key for transaction signing (replace the example value with your own key)MESON_USE_MAINNET: Set to "true" to use the mainnet, set to "false" or omit to use the testnet
Note: For security reasons, ensure your private key is not leaked or made public. In production environments, it's recommended to use secure methods to manage and store private keys.
Main Functions
The MCP server provides three core tools:
1. Prepare Cross-Chain Transaction (prepareSwap)
Prepares a cross-chain transaction and generates data for signing.
Parameters:
fromChain: Source chain IDtoChain: Destination chain IDfromToken: Source token symboltoToken: Destination token symbolamount: Swap amountfromAddress: Sender addressrecipient: Recipient address (optional, defaults to sender)
Returns:
- Price information
- Encoded transaction data
- Data to be signed
2. Sign and Execute Transaction (executeSwap)
Signs the transaction data and submits it to the Meson network.
Parameters:
encoded: Encoded transaction datasigningRequest: Data to be signed (containing message and hash)fromAddress: Sender addressrecipient: Recipient address
Returns:
- Transaction ID
- Transaction result information
3. Query Transaction Status (checkSwapStatus)
Checks the status of a submitted transaction.
Parameters:
swapId: Transaction ID
Returns:
- Transaction status
- Detailed information
Usage Example
Here's a complete cross-chain transaction flow example:
- Set environment (testnet/mainnet)
I want to perform a cross-chain transaction on testnet
- Prepare cross-chain transaction
Please prepare a transaction from Ethereum Sepolia testnet to transfer 10 USDC to Arbitrum Sepolia,
my address is 0x1234...abcd
- Sign and execute transaction
Please sign and submit the transaction prepared above
- Query transaction status
Please check the status of the transaction I just submitted
Important Notes
- Private keys are only stored in environment variables and will not be sent to any external services
- Transaction signing is completed locally, and signed data is submitted through the Meson API
- Mainnet transactions involve real assets, please be sure to verify transaction details
- Testnet is a safe testing environment, new users are recommended to try on testnet first
- Ensure the private key has enough native tokens (ETH, etc.) to pay for transaction fees
Supported Chains and Tokens
This MCP server supports all blockchains and tokens supported by the Meson protocol, including but not limited to:
- Ethereum and its testnets
- Arbitrum
- Avalanche
- BSC
- Optimism
- Polygon
- Solana
- And many other EVM and non-EVM chains
For specific supported chains and tokens, please refer to the Meson official documentation.
Technical Details
- Implemented based on Model Context Protocol
- Using Deno as the runtime environment
- Cross-chain transactions through Meson API
- Transaction signing using ethers library
License
MIT
Установка Meson Cross-Chain Transfer
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/demcp/demcp-meson-mcpFAQ
Meson Cross-Chain Transfer MCP бесплатный?
Да, Meson Cross-Chain Transfer MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Meson Cross-Chain Transfer?
Нет, Meson Cross-Chain Transfer работает без API-ключей и переменных окружения.
Meson Cross-Chain Transfer — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Meson Cross-Chain Transfer в Claude Desktop, Claude Code или Cursor?
Открой Meson Cross-Chain Transfer на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Meson Cross-Chain Transfer with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
