MantraChain MCP Server
MantraChain MCP 服务器
用于与 MantraChain(Cosmos SDK)区块链交互的模型上下文协议 (MCP) 服务器。该服务器提供使用 MCP 协议发送代币、委托给验证者、查询余额等功能。
特征
将代币发送到其他地址(银行发送)
将代币委托给验证者(质押)
查询账户余额
获取验证者信息
签署并广播任意交易
通过环境变量配置助记词和网络
在 Dukong 测试网和主网之间进行选择
支持 stdio 和 HTTP+SSE 传输模式
Related MCP server: EVM MCP Server
可用工具
银行业务
bank-send :将代币发送到另一个地址
get-balance :获取地址余额(如果未提供,则默认为您自己的地址)
质押操作
delegate :委托/质押代币给验证者
undelegate :从验证者处取消委托/取消抵押代币
claim-rewards :为特定验证者索取奖励
get-validators :获取所有验证器
get-delegations :获取地址的当前权益信息
get-available-rewards :获取某个地址的所有可用奖励
网络运营
get-account-info :获取当前帐户信息
get-block-info :获取区块信息
query-network :针对链 API 执行通用网络查询
IBC运营
ibc-transfer :通过 IBC 传输发送代币
智能合约操作
contract-query :通过执行只读函数来查询智能合约
contract-execute :执行智能合约上改变状态的函数
DEX 操作
dex-get-pools :从 DEX 获取所有可用的流动性池
dex-find-routes :查找两个令牌之间可用的交换路线
dex-simulate-swap :模拟代币交换以获得预期结果,但不执行它
dex-swap :在 DEX 上执行代币交换,并进行滑点保护
事务操作
sign-and-broadcast :签署并广播通用交易
可用资源
networks://all :JSON 资源,显示所有可用网络及其配置
openapi://{networkName} :指定网络的 OpenAPI/Swagger 规范
运行服务器
服务器可以以两种模式运行:
**Stdio 模式(默认):**通过标准输入/输出进行通信。这是直接运行服务器或通过
npx运行服务器时的默认模式。# Using installed package mantrachain-mcp # Using npx npx -y mantrachain-mcp@latest**HTTP+SSE 模式:**在 3000 端口运行 HTTP 服务器,通过服务器发送事件 (SSE) 进行通信。使用
-r参数或专用 npm 脚本激活此模式。# Using installed package mantrachain-mcp -r # Using npx export MNEMONIC="YOUR_MNEMONIC" export CUSTOM_NETWORKS="YOUR_CUSTOM_NETWORKS_JSON" npx -y mantrachain-mcp@latest -- -r在 HTTP 模式下运行时,服务器监听:
GET /sse:建立 SSE 连接。POST /messages?sessionId=<id>:接收客户端请求。
MCP 配置
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 MantraChain MCP 服务器:
npx -y @smithery/cli install @allthatjazzleo/mantrachain-mcp --client claude要与 MCP 客户端应用程序集成,请将服务器配置添加到 MCP 客户端配置文件中:
{
"mcpServers": {
"mantrachain-mcp": {
"command": "npx",
"args": [
"-y",
"mantrachain-mcp@latest"
],
"env": {
"MNEMONIC": "YOUR_MNEMONIC",
"CUSTOM_NETWORKS": "{\"my-custom-net\":{\"rpcEndpoint\":\"https://rpc.custom-network.io\",\"apiEndpoint\":\"https://api.custom-network.io\",\"chainId\":\"my-custom-net-1\",\"prefix\":\"custom\",\"denom\":\"ucustom\",\"gasPrice\":\"0.01\",\"isMainnet\":false}}"
}
}
}
}在Cline中连接远程 MCP 服务器:
{
"mcpServers": {
"mantrachain-mcp-sse": {
"url": "http://localhost:3000/sse",
"transportType": "sse"
}
}
}如果你在本地而不是全局构建包
构建软件包后,您可以直接从构建目录运行它。请确保将your_path替换为构建目录的实际路径。
npm run build然后,您可以使用以下配置:
{
"mcpServers": {
"mantrachain-mcp": {
"command": "node",
"args": [
"your_path/mantrachain-mcp/build/index.js"
],
"env": {
"MNEMONIC": "YOUR_MNEMONIC"
}
}
}
}环境变量
MNEMONIC :必填。钱包使用的助记词种子短语。
CUSTOM_NETWORKS :可选。包含附加网络配置的 JSON 字符串。
Available Tools
18 toolsbank-sendC
Send tokens to another address. Supports sending multiple coins in one transaction.
Inputs: coins (required), networkName (required), recipientAddress (required), memo.
claim-rewardsC
Claim rewards for a specific validator
Inputs: networkName (required), operatorAddress (required), memo.
contract-executeC
Execute a function on a smart contract that changes state
Inputs: contractAddress (required), executeMsg (required), networkName (required), funds, +1 more.
contract-queryB
Query a smart contract by executing a read-only function
Inputs: contractAddress (required), networkName (required), queryMsg (required).
delegateC
Delegate/Stake tokens to a validator
Inputs: amount (required), networkName (required), operatorAddress (required), denom, +1 more.
dex-find-routesA
Find available swap routes between two tokens - must first check two tokens are available in the DEX pools by using dex-get-pools
Inputs: networkName (required), tokenInDenom (required), tokenOutDenom (required).
dex-get-poolsB
Get all available liquidity pools from the DEX
Inputs: networkName (required).
dex-simulate-swapA
Simulate a token swap to get expected outcome without executing it - must first check two tokens are available in the DEX pools by using dex-get-pools
Inputs: networkName (required), tokenInAmount (required), tokenInDenom (required), tokenOutDenom (required).
dex-swapA
Execute a token swap on the DEX - must first check two tokens are available in the DEX pools by using dex-get-pools
Inputs: networkName (required), tokenInAmount (required), tokenInDenom (required), tokenOutDenom (required), +2 more.
get-account-infoC
Get current account information
Inputs: networkName (required).
get-available-rewardsC
Get all available rewards for an address
Inputs: networkName (required), address.
get-balanceB
Get balance of an address (defaults to your own address if none provided)
Inputs: networkName (required), address.
get-block-infoC
Get block information
Inputs: networkName (required), height.
get-delegationsC
Get current staking information for an address
Inputs: networkName (required), address.
get-validatorsC
Get all validators
Inputs: networkName (required).
ibc-transferC
Send tokens via IBC transfer.
Inputs: networkName (required), recipientAddress (required), sourceChannel (required), transferAmount (required), +5 more.
query-networkA
Execute a generic network gRPC Gateway query against chain APIs when you cannot find the required information from other tools. You MUST first check the available query/service by reading the openapi specification from the resource openapi://{networkName} to understand available query/service, methods, required parameters and body structure.
Inputs: method (required), networkName (required), path (required), body, +2 more.
undelegateC
Undelegate/Unstake tokens from a validator
Inputs: amount (required), networkName (required), operatorAddress (required), denom, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have distinct purposes, but there is some overlap between get-account-info and get-balance, and between get-available-rewards and claim-rewards, which could cause minor confusion. The DEX tools are well-differentiated with clear dependencies, and other tools like delegate/undelegate and contract-execute/contract-query are clearly separate.
The naming follows a consistent verb-noun pattern with hyphens (e.g., bank-send, get-balance, dex-swap), making it predictable and readable. There are minor deviations like query-network being more verbose and ibc-transfer using an acronym, but overall the pattern is maintained across most tools.
With 18 tools, the count is slightly high but reasonable for a blockchain server covering banking, staking, DEX, contracts, and IBC. It provides comprehensive functionality without being overwhelming, though it borders on the upper limit of typical scoping.
The tool set offers complete coverage for the blockchain domain, including core operations like sending tokens, staking/delegating, querying contracts, DEX swaps, and IBC transfers. It includes both read and write operations, with no obvious gaps, and even provides a fallback query-network tool for extended functionality.
Maintenance
Related MCP Connectors
Tenzro Network MCP server: wallet, identity, payments, inference, staking, bridges, verification.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Hosted MCP server for live Bittensor chain reads and self-custodial on-chain writes.
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.5MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.2877 npm381MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface for operations like managing assets, executing token operations, and retrieving network information.7MIT

Hashkey MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides onchain tools for AI applications to interact with the Hashkey Network, enabling cryptocurrency transfers, smart contract deployment, and blockchain interactions.13 npm2MIT