MCPChain
MCPChain brings the Model Context Protocol to Web3 by anchoring agent tools, trust registries, and attestable executions on-chain.
claude mcp add --transport stdio eonxi-studio-mcpchain bash -lc ignite chain build && mcpchaind init validator --chain-id mcpchain && mcpchaind keys add validator && sed -i '' 's/"stake"/"umcp"/g' ~/.mcpchain/config/genesis.json && mcpchaind genesis add-genesis-account $(mcpchaind keys show validator -a) 1000000000umcp && mcpchaind genesis gentx validator 500000000umcp --chain-id mcpchain && mcpchaind genesis collect-gentxs && mcpchaind genesis validate && mcpchaind start --minimum-gas-prices=0.001umcp
How to use
MCPChain brings the Model Context Protocol to Web3 by anchoring agent tools, trust registries, and attestable executions on-chain. This MCP server exposes a Cosmos-based chain CLI (mcpchaind) that you use to initialize the chain, create and manage keys, fund the genesis with an initial UMCP stake, generate and collect gentxs, validate the genesis, and finally start the chain. Once the chain is running, you can rely on the on-chain anchoring to establish tamper-evident references for agent tools, registries, and attestations in your Web3 workflows. Use the provided commands to bootstrap a validator, configure the genesis with the UMCP denomination, and start the chain with a sensible minimum gas price to ensure smooth operation.
Key capabilities available through this MCP server include: initializing a validator node, creating and listing keys, configuring the genesis with the appropriate token denomination (UMCP), funding accounts, generating and collecting gentxs for network consent, validating the genesis state, and starting the chain with an adjustable minimum gas price. These steps enable a functional local testnet or development network suitable for staking and on-chain anchoring tasks related to model context and attestations.
How to install
Prerequisites:
- A Unix-like environment (Linux/macOS) with a recent version of Go installed.
- Ignite/Cosmos SDK tools installed for chain building (ignite binary).
- Basic familiarity with command-line tooling and blockchain concepts (genesis, gentx, genesis collection).
Installation steps:
- Install Go (if not already installed):
- macOS: brew install go
- Linux: sudo apt-get update && sudo apt-get install -y golang
- Install Ignite (for building the chain):
- curl -s https://install.ignite.network/ci.sh | bash
- Install mcpchaind tools (Cosmos SDK-based binary):
- Ensure GOPATH/bin is in your PATH
- go install github.com/cosmos/cosmos-sdk/cosmoscmd/cmd/mintscan@latest
- or install via your preferred method if a prebuilt binary is provided with this repo
- Prepare the repository and dependencies:
- git clone <this-repo-url>
- cd mcpchain
- ignite chain build
- Initialize and configure the chain (as per the README commands):
- mcpchaind init validator --chain-id mcpchain
- mcpchaind keys add validator
- sed -i '' 's/"stake"/"umcp"/g' ~/.mcpchain/config/genesis.json
- mcpchaind genesis add-genesis-account $(mcpchaind keys show validator -a) 1000000000umcp
- mcpchaind genesis gentx validator 500000000umcp --chain-id mcpchain
- mcpchaind genesis collect-gentxs
- mcpchaind genesis validate
- Start the chain:
- mcpchaind start --minimum-gas-prices=0.001umcp
Additional notes
Notes and tips:
- Ensure the UMCP denomination is consistently used across genesis steps as shown.
- If you are running this for development, you can reset local state with rm -rf ~/.mcpchain as needed.
- When starting in a dev environment, consider adjusting the minimum_gas_prices to align with test network expectations.
- If you encounter port conflicts or peer discovery issues, review the chain-id and ensure the local node can bind to the required ports.
- This MCP server expects on-chain anchoring by design; ensure your environment has network access and sufficient resources for a Cosmos-based chain run.
Related MCP Servers
evm
MCP server that provides LLMs with tools for interacting with EVM networks
serper
A Serper MCP Server
ton-blockchain
A Model Context Protocol (MCP) server written in Python for natural language interaction with the TON blockchain 💎
agent
MCPAgent for Grupa.AI Multi-agent Collaboration Network (MACNET) with Model Context Protocol (MCP) capabilities baked in
midnight
Midnight MCP server giving AI assistants access to Midnight blockchain — search contracts, analyze code, explore docs
nodit
A Model Context Protocol (MCP) server for AI agents to interact with blockchain data via Nodit’s Web3 Data and Node APIs. Enables LLMs to access structured, multi-chain blockchain context with zero blockchain-specific logic.