Mantra Chain MCP logo

Mantra Chain MCP

Community
allthatjazzleo

mantrachain mcp

Publisherallthatjazzleo
Repositorymantrachain-mcp
LanguageTypeScript
Forks
2
Stars
2
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Mantra Chain MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    2 stars and 2 forks from the linked repository.

MseeP.ai Security Assessment Badge

MantraChain MCP Server

smithery badge

A Model Context Protocol (MCP) server for interacting with MantraChain (Cosmos SDK) blockchain. This server provides tools for sending tokens, delegating to validators, querying balances, and more using the MCP protocol.

Features

  • Send tokens to other addresses (bank send)
  • Delegate tokens to validators (staking)
  • Query account balances
  • Get validator information
  • Sign and broadcast arbitrary transactions
  • Configure mnemonic and network via environment variables
  • Choose between Dukong testnet and Mainnet
  • Supports both stdio and HTTP+SSE transport modes

Available Tools

Bank Operations

  • bank-send: Send tokens to another address (supports multiple coins per transaction)
  • get-balance: Get balance of an address (defaults to your own address if none provided)
  • get_evm_balance: Get native token (OM) balance for an EVM address
  • get_token_balance: Get ERC20 token balance for an address
  • get_nft_balance: Get ERC721 NFT count for an address from a collection
  • get_erc1155_balance: Get ERC1155 token balance for a specific token ID
  • get_address_from_mnemonic: Get EVM address derived from mnemonic

Staking Operations

  • delegate: Delegate/Stake tokens to a validator
  • undelegate: Undelegate/Unstake tokens from a validator
  • claim-rewards: Claim rewards for a specific validator
  • get-validators: Get all validators
  • get-delegations: Get current staking information for an address
  • get-available-rewards: Get all available rewards for an address

Network Operations

  • get-account-info: Get current account information
  • get-block-info: Get block information from Cosmos (cometbft) RPC
  • get-block-info-evm: Get block information from EVM RPC
  • query-network: Execute a generic network query against chain APIs

IBC Operations

  • ibc-transfer: Send tokens via IBC transfer

Smart Contract Operations

  • cosmwasm-contract-query: Query a CosmWasm smart contract (read-only)
  • cosmwasm-contract-execute: Execute a function on a CosmWasm contract (state-changing)
  • read_evm_contract: Read data from an EVM contract (view/pure function)
  • write_evm_contract: Write data to an EVM contract (state-changing function)
  • deploy_evm_contract: Deploy a new EVM contract
  • is_contract: Check if an address is a contract or EOA

DEX Operations

  • dex-get-pools: Get all available liquidity pools from the DEX
  • dex-find-routes: Find available swap routes between two tokens
  • dex-simulate-swap: Simulate a token swap to get expected outcome without executing it
  • dex-swap: Execute a token swap on the DEX with slippage protection

Transaction Operations

  • sign-and-broadcast: Sign and broadcast a generic Cosmos transaction
  • get_transaction: Get detailed information about a specific EVM transaction by hash
  • get_transaction_receipt: Get EVM transaction receipt by hash
  • estimate_gas: Estimate gas cost for a transaction
  • transfer_om: Transfer native tokens (OM) via EVM
  • transfer_erc20: Transfer ERC20 tokens to another address
  • approve_token_spending: Approve another address to spend your ERC20 tokens
  • transfer_nft: Transfer an ERC721 NFT to another address
  • transfer_erc1155: Transfer ERC1155 tokens to another address
  • transfer_token: Transfer ERC20 tokens to an address

Available Resources

  • networks://all: JSON resource showing all available networks with their configuration
  • openapi://{networkName}: OpenAPI/Swagger specification for the specified network

Running the Server

The server can run in two modes:

  1. Stdio Mode (Default): Communicates over standard input/output. This is the default mode when running the server directly or via npx.

    bash
    # Using installed package
    mantrachain-mcp
    
    # Using npx
    npx -y mantrachain-mcp@latest
    
  2. Streamable HTTP Mode: Runs an HTTP server on port 3000, communicating via Server-Sent Events (SSE). Activate this mode using the --http flag or the dedicated npm scripts.

    bash
    # Using installed package
    mantrachain-mcp --http
    
    # Using npx
    export MNEMONIC="YOUR_MNEMONIC"
    export CUSTOM_NETWORKS="YOUR_CUSTOM_NETWORKS_JSON"
    npx -y mantrachain-mcp@latest -- --http

MCP Configuration

Installing via Smithery

To install MantraChain MCP Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @allthatjazzleo/mantrachain-mcp --client claude

To integrate with MCP client applications, add the server configuration to your MCP client configuration file:

json
{
  "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}}"
      }
    }
  }
}

Connecting remote MCP server in cline:

json
{
  "mcpServers": {
    "mantrachain-mcp-sse": {
      "url": "http://localhost:3000/sse",
      "transportType": "sse"
    }
  }
}

If you build the package locally instead of globally

After building the package, you can run it directly from the build directory. Make sure to replace your_path with the actual path to your build directory.

bash
npm run build

Then, you can use the following configuration:

json
{
  "mcpServers": {
    "mantrachain-mcp": {
      "command": "node",
      "args": [
        "your_path/mantrachain-mcp/build/index.js"
      ],
      "env": {
        "MNEMONIC": "YOUR_MNEMONIC"
      }
    }
  }
}

Environment Variables

  • MNEMONIC: Required. The mnemonic seed phrase for the wallet to use.
  • CUSTOM_NETWORKS: Optional. JSON string containing additional network configurations.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "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}}"
      }
    }
  }
}

Use Mantra Chain MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Mantra Chain MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Mantra Chain MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Mantra Chain MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mantra-chain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mantrachain-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Mantra Chain MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Mantra Chain MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Mantra Chain MCP to help me with this task?
Mantra Chain MCP
Sure. I read it.
Here is what I found using Mantra Chain MCP.

Frequently asked questions

What is the Mantra Chain MCP MCP server used for?

Mantra Chain MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Mantra Chain MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Mantra Chain MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Mantra Chain MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Mantra Chain MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Mantra Chain MCP MCP to TypingMind?

Mantra Chain MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Mantra Chain MCP MCP provide in TypingMind?

Mantra Chain MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Mantra Chain MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Mantra Chain MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇