KAIA-MCP
KAIA-MCP is a Model Context Protocol (MCP) server that enables AI agents to interact directly with DeFi protocols on the KAIA blockchain. Built as a bridge between AI tools and blockchain infrastructure, it provides seamless access to lending protocols, DEX operations, and real-time market data.
Why integrate AI with DeFi?
Automated Portfolio Management: AI agents can monitor positions, calculate risks, and execute strategies
Real-time Market Analysis: Access live blockchain data for informed decision-making
Cross-Protocol Operations: Execute complex DeFi strategies across multiple protocols
Enhanced Security: Mode-based operations with clear separation between read-only and transaction capabilities
Supported Platforms
Claude Desktop: Native MCP integration for conversational AI interactions
Cline: VS Code extension for development workflows
Cursor.ai: IDE-based AI assistant with MCP support
Other MCP-compatible tools: Any tool supporting the Model Context Protocol
Quick Start
Prerequisites
Node.js 20+ installed
KAIA RPC URL (use public endpoint:
https://public-en.node.kaia.io)Private key (for transaction mode, optional for read-only)
Supported AI platform (Claude Desktop, Cline, Cursor.ai, etc.)
Basic Configuration
You only need to configure environment variables in your AI client's MCP configuration:
That's it! Once configured in your AI client, KAIA-MCP will start automatically when you use the AI assistant.
Platform-Specific Setup
Claude Desktop
Install Claude Desktop from the official website
Open Settings and navigate to the MCP configuration
Add KAIA-MCP to your configuration:
Restart Claude Desktop to load the MCP server
Read-Only Mode (Safe for exploration)
Linux/NVM Users
If using NVM, use absolute paths:
Other MCP-Compatible Tools
For any MCP-compatible tool, use the standard configuration format:
Configuration Guide
Environment Variables
KAIA_RPC_URL
Yes
KAIA Mainnet RPC URL
https://public-en.node.kaia.io
KAIA_PRIVATE_KEY
Optional
Wallet private key for transactions
0x1234...
KAIA_AGENT_MODE
Optional
Operation mode
readonly or transaction
KAIA_NETWORK
Optional
Network selection
kaia (default)
Agent Modes
Read-Only Mode (Default)
Purpose: Safe exploration and data analysis
Capabilities: Query market data, check balances, monitor positions
Security: No private key required
Configuration: Set
KAIA_AGENT_MODE=readonlyor omit private key
Transaction Mode
Purpose: Full DeFi operations
Capabilities: All read-only features + execute transactions
Security: Requires private key management
Configuration: Set
KAIA_AGENT_MODE=transactionand provideKAIA_PRIVATE_KEY
Usage Examples
Basic Queries
Check Wallet Information
Query Lending Markets
Check Account Health
Get DEX Quotes
Transaction Examples
Supply to Lending Market
Borrow from Lending Market
Execute DEX Swap
Wrap Native Token
Send Tokens
Advanced Workflows
Yield Farming Strategy
Portfolio Rebalancing
Risk Management
Supported Protocols
KiloLend (Lending)
Supply assets to earn interest
Borrow against collateral
Manage multiple lending markets
Real-time APY tracking
DragonSwap V3 (DEX)
Token swaps with best routing
Multi-hop transactions
Liquidity pool information
Real-time price quotes
Wallet Operations
Native KAIA transfers
ERC-20 token transfers
Token wrapping/unwrapping
Allowance management
Response Format
All tools return structured responses:
Ready to start your AI × DeFi journey? Configure KAIA-MCP with your preferred AI platform and begin exploring the Kaia ecosystem with intelligent automation!
Last updated
