MantraChain Blockchain
STDIOMCP server for interacting with MantraChain blockchain, providing tools for token operations and delegation.
MCP server for interacting with MantraChain blockchain, providing tools for token operations and delegation.
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.
The server can run in two modes:
Stdio Mode (Default): Communicates over standard input/output. This is the default mode when running the server directly or via npx
.
# Using installed package mantrachain-mcp # Using npx npx -y mantrachain-mcp@latest
HTTP+SSE Mode: Runs an HTTP server on port 3000, communicating via Server-Sent Events (SSE). Activate this mode using the -r
flag or the dedicated npm scripts.
# 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
When running in HTTP mode, the server listens on:
GET /sse
: Establishes the SSE connection.POST /messages?sessionId=<id>
: Receives client requests.To install MantraChain MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @allthatjazzleo/mantrachain-mcp --client claude
{ "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}}" } } } }
{ "mcpServers": { "mantrachain-mcp-sse": { "url": "http://localhost:3000/sse", "transportType": "sse" } } }
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.
npm run build
Then, you can use the following configuration:
{ "mcpServers": { "mantrachain-mcp": { "command": "node", "args": [ "your_path/mantrachain-mcp/build/index.js" ], "env": { "MNEMONIC": "YOUR_MNEMONIC" } } } }