Skip to main content
Glama
MantraChain MCP Server

MantraChain MCP Server

MantraChain MCP サーバー

鍛冶屋のバッジ

MantraChain(Cosmos SDK)ブロックチェーンと連携するためのModel Context Protocol(MCP)サーバー。このサーバーは、トークンの送信、バリデータへの委任、残高照会など、MCPプロトコルを用いた様々な機能を提供するツールを提供します。

特徴

  • トークンを他のアドレスに送信する(銀行送金)

  • バリデーターにトークンを委任する(ステーキング)

  • アカウント残高の照会

  • バリデータ情報を取得する

  • 任意のトランザクションに署名してブロードキャストする

  • 環境変数を介してニーモニックとネットワークを構成する

  • Dukong テストネットとメインネットのどちらかを選択してください

  • stdioとHTTP+SSEトランスポートモードの両方をサポート

Related MCP server: EVM MCP Server

利用可能なツール

銀行業務

  • bank-send : トークンを別のアドレスに送信する

  • get-balance : アドレスの残高を取得します(指定されていない場合は、デフォルトで自分のアドレスが使用されます)

ステーキング操作

  • 委任: バリデーターにトークンを委任/ステークする

  • 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 : 2つのトークン間の利用可能なスワップルートを検索する

  • dex-simulate-swap : トークンスワップをシミュレートして、実行せずに期待される結果を取得します。

  • dex-swap : スリッページ保護付きのDEXでトークンスワップを実行する

トランザクション操作

  • sign-and-broadcast : 一般的なトランザクションに署名してブロードキャストする

利用可能なリソース

  • networks://all : 利用可能なすべてのネットワークとその構成を示す JSON リソース

  • openapi://{networkName} : 指定されたネットワークのOpenAPI/Swagger仕様

サーバーの実行

サーバーは次の 2 つのモードで実行できます。

  1. **標準入出力モード(デフォルト):**標準入出力を介して通信します。サーバーを直接実行する場合、またはnpx経由で実行する場合のデフォルトモードです。

    # Using installed package
    mantrachain-mcp
    
    # Using npx
    npx -y mantrachain-mcp@latest
    
    
  2. **HTTP+SSEモード:**ポート3000でHTTPサーバーを実行し、Server-Sent Events(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 Server を自動的にインストールするには:

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 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 tools
bank-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

    B3.3/5.0

    Scored across 18 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness5/5

    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.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      5
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A 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.
      28
      77 npm
      381
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      7
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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 npm
      2
      MIT