home / mcp / mantrachain mcp server
mantrachain mcp
Configuration
View docs{
"mcpServers": {
"allthatjazzleo-mantrachain-mcp": {
"url": "http://localhost:3000/sse",
"headers": {
"MNEMONIC": "YOUR_MNEMONIC",
"CUSTOM_NETWORKS": "YOUR_CUSTOM_NETWORKS_JSON"
}
}
}
}You can run the MantraChain MCP Server to interact with MantraChain (Cosmos SDK) using a flexible set of tools. It lets you send tokens, stake with validators, query balances, sign transactions, and explore blockchain data through a consistent MCP interface. You can operate locally via standard input/output or expose a streamable HTTP/SSE endpoint for remote clients.
You use an MCP client to connect to the MantraChain MCP Server and perform actions such as sending tokens, delegating stake, querying balances, and executing smart contract or DEX related operations. You can choose between two transport modes: stdio for local use or HTTP with SSE for remote access. In stdio mode, your client talks directly to the command, while in HTTP mode the server exposes an endpoint on port 3000 and communicates with clients via Server-Sent Events.
Prerequisites: you need Node.js and npm installed on your system. Ensure you have a mnemonic seed and a target network configuration if you plan to connect to a custom network.
Install and run in stdio mode using the package directly or via npx.
# Using installed package
mantrachain-mcp
# Using npx
npx -y mantrachain-mcp@latestTo enable the streamable HTTP mode, run with the --http flag. This starts an HTTP server on port 3000 and serves the MCP interface over Server-Sent Events.
# Using installed package
mantrachain-mcp --http
# Using npx
export MNEMONIC="YOUR_MNEMONIC"
export CUSTOM_NETWORKS="YOUR_CUSTOM_NETWORKS_JSON"
npx -y mantrachain-mcp@latest -- --httpSet your wallet mnemonic and any network customizations via environment variables before starting the server. The MNEMONIC variable is mandatory for wallet access, and CUSTOM_NETWORKS allows you to extend or override network configurations.
Send tokens to another address, supporting multiple coins per transaction.
Query the balance of an address; defaults to your own address if none is provided.
Get the native token balance for an EVM address.
Check ERC20 token balance for a given address.
Retrieve ERC721 NFT counts for an address from a collection.
Query ERC1155 token balance for a specific token ID.
Derive an EVM address from your mnemonic.
Delegate tokens to a validator (stake).
Undelegate tokens from a validator.
Claim staking rewards for a validator.
List all validators.
Get current staking information for an address.
List all available staking rewards for an address.
Fetch current account information.
Query Cosmos block info via the cometbft RPC.
Query block info via the EVM RPC.
Execute a generic network query against chain APIs.
Send tokens via IBC transfer.
Query a CosmWasm smart contract (read-only).
Execute a function on a CosmWasm contract (state-changing).
Read data from an EVM contract (view/pure).
Write data to an EVM contract (state-changing).
Deploy a new EVM contract.
Check if an address is a contract or an EOA.
List all available liquidity pools on the DEX.
Find swap routes between two tokens.
Simulate a token swap to estimate outcome without executing it.
Execute a token swap on the DEX with slippage protection.
Sign and broadcast a generic Cosmos transaction.
Fetch detailed information about an EVM transaction by hash.
Get EVM transaction receipt by hash.
Estimate gas cost for a transaction.
Transfer native OM tokens via EVM.
Transfer ERC20 tokens to another address.
Approve another address to spend your ERC20 tokens.
Transfer an ERC721 NFT to another address.
Transfer ERC1155 tokens to another address.
Transfer ERC20 tokens to an address.