READMEmain
We couldn't render this README. Read it on GitHub
Model Context Protocol
🚀 Quickstart
This example shows you how to create a MCP Server to connect with Kaia blockchain using Claude for Desktop.
It is implemented for both Kairos Testnet (DEFAULT) and Kaia Mainnet but can be updated to support any other chain, wallet and series of tools.
Requirements
- Have Claude for Desktop installed. You can download it from here
Setup
- Clone the repository:
git clone https://github.com/avdheshcharjan/kaia-mcp && cd kaia-mcp
- Run the following commands from the root folder:
pnpm install
pnpm build
Configure the MCP server for Claude
- Copy the
mcp-evm.example.jsonfile tomcp-evm.json:
# For EVM
cp mcp-evm.example.json mcp-evm.json
- Update the json file with your values for either EVM:
- Absolute path to the parent folder of the
kaia-mcpfolder, you can get it by runningpwdin thekaia-mcpfolder WALLET_PRIVATE_KEYRPC_PROVIDER_URL
- Copy/update the json file and rename it to
claude_desktop_config.jsonfile to the~/Library/Application Support/Claude/directory:
# For EVM
cp mcp-evm.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
This tells Claude for Desktop:
- There’s are MCP servers named kaia-mcp”
- Launch it by running the specified command
- Restart Claude for Desktop.
NOTE: When making changes to the code you need to make sure to:
- Run
pnpm buildin thekaia-mcpfolder to generate the updatedevm.jsfile. - If you update the json file: copy it again to the
~/Library/Application Support/Claude/directory, or update theclaude_desktop_config.jsonfile with the new values. You will also need to restart Claude.
Usage
-
Run Claude for Desktop
-
Chat with the agent:
- Check your balance for ERC-20 tokens
- Send ERC-20 tokens to another address
- Check your balance again to see the tokens you just sent
For more information on how to use the model context protocol, check out the docs.