A Model Context Protocol (MCP) server for interacting with Kuru exchange operations using the Kuru SDK. This server enables AI agents to perform DeFi trading operations on the Monad blockchain through Claude Desktop integration.
- Kuru SDK Integration: Full integration with @kuru-labs/kuru-sdk
- Wallet Management: Get wallet address from private key
- Environment Validation: Validate required environment variables
- Chain Configuration: Support for Monad blockchain
- Secure: No .env file dependency - uses environment variables directly
- AI Agent Ready: Seamless integration with Claude Desktop
This MCP server is developed by KodeusAI, the Open Agentic Operating System that turns user intent into real, on-chain execution. Kodeus empowers users to create, deploy, and evolve intelligent agents that operate seamlessly across on-chain & off-chain stacks.
Key Kodeus Features:
- π§ Composable Agent Framework: Modular, decentralized framework for real agents
- π Web3 Integration: Seamless integration with leading Web3 protocols
- π° Build & Earn: Monetize your agent contributions with $KODE tokens
- π οΈ Developer SDK: Build custom MCP modules and workflows
- Node.js >= 18.0.0
- npm or yarn
- Clone or navigate to the project directory:
cd kuru-mcp-server
- Install dependencies:
npm install
- Set required environment variables when running the server:
PRIVATE_KEY=your_private_key_here
KURU_API_URL=https://api.testnet.kuru.io
RPC_URL=https://rpc.ankr.com/monad_testnet
Important: Replace the values with your actual configuration.
Build the TypeScript project:
npm run build
Start the MCP server with environment variables:
PRIVATE_KEY=your_private_key KURU_API_URL=https://api.testnet.kuru.io RPC_URL=https://rpc.ankr.com/monad_testnet npm start
Or use the start script:
PRIVATE_KEY=your_private_key KURU_API_URL=https://api.testnet.kuru.io RPC_URL=https://rpc.ankr.com/monad_testnet ./start.sh
To use this MCP server with Claude Desktop, add the following configuration to your Claude Desktop settings:
-
Open Claude Desktop Settings
- On macOS:
Claude Desktop
βPreferences
βAdvanced
- On Windows:
File
βSettings
βAdvanced
- On macOS:
-
Add MCP Server Configuration Add this configuration to your
claude_desktop_config.json
:
{
"mcpServers": {
"kuru-exchange": {
"command": "node",
"args": [
"<Path to MCP>/build/index.js"
],
"env": {
"KURU_API_URL": "https://api.testnet.kuru.io",
"RPC_URL": "https://rpc.ankr.com/monad_testnet",
"PRIVATE_KEY": "<Your Wallet Private Key>"
}
}
}
}
-
Replace Placeholders
<Path to MCP>
: Full path to your kuru-mcp-server directory<Your Wallet Private Key>
: Your actual private key (keep this secure!)
-
Example Configuration
{
"mcpServers": {
"kuru-exchange": {
"command": "node",
"args": [
"/Users/username/kuru-mcp-server/build/index.js"
],
"env": {
"KURU_API_URL": "https://api.testnet.kuru.io",
"RPC_URL": "https://rpc.ankr.com/monad_testnet",
"PRIVATE_KEY": "0x1234567890abcdef..."
}
}
}
}
-
Restart Claude Desktop
- Close and reopen Claude Desktop for the changes to take effect
-
Verify Connection
- In Claude Desktop, you should see "kuru-exchange" available as a tool
- Test with: "What's my wallet address?" or "Get chain information"
- Never share your private key - Keep it secure
- Use testnet only - This is for testing purposes
- Backup your configuration - Keep a secure backup of your config
- Monitor transactions - Always verify transactions before confirming
Gets the wallet address derived from the private key stored in the PRIVATE_KEY
environment variable.
Parameters: None
Example Response:
π° Wallet Address:
β’ Address: 0x1234567890abcdef...
β’ Derived from: PRIVATE_KEY environment variable
β’ Chain: Monad Testnet (10143)
β’ RPC URL: https://rpc.ankr.com/monad_testnet
β’ Kuru API: https://api.testnet.kuru.io
β’ Status: β
Ready for Kuru exchange operations
π‘ Usage: This address can be used for trading operations on Kuru exchange.
Get information about the configured blockchain network.
Parameters: None
Get all available pools for a token pair using PoolFetcher.
Parameters:
tokenIn
(string): Input token addresstokenOut
(string): Output token address
Find the best path for a token swap using PathFinder.
Parameters:
tokenIn
(string): Input token addresstokenOut
(string): Output token addressamount
(number): Amount to swap (in number format, not ERC20 decimals)amountType
(string, optional): Type of amount: 'amountIn' or 'amountOut' (default: amountIn)
Estimate the output amount for a token swap.
Parameters:
tokenIn
(string): Input token addresstokenOut
(string): Output token addressamountIn
(number): Input amount (in number format, not ERC20 decimals)
Execute a token swap using the router contract with automatic decimal detection and allowance checking.
Parameters:
tokenIn
(string): Input token addresstokenOut
(string): Output token addressamount
(number): Amount to swap (in number format, not ERC20 decimals)
Get detailed information about an ERC20 token.
Parameters:
tokenAddress
(string): Token contract address
Get list of available base tokens for pool creation.
Parameters: None
- Monad Testnet (Chain ID: 10143) - Currently the only available network
- Explorer: https://testnet.monadexplorer.com
- RPC: https://rpc.ankr.com/monad_testnet
- Status: β Active Testnet
Run in development mode with TypeScript compilation watching for changes:
npm run dev
Run tests:
npm test
Variable | Description | Required | Default |
---|---|---|---|
PRIVATE_KEY |
Private key for wallet operations | Yes | - |
KURU_API_URL |
Kuru API endpoint URL | Yes | - |
RPC_URL |
Blockchain RPC endpoint URL | Yes | - |
CHAIN_ID |
Chain ID (optional) | No | 10143 |
- No .env file dependency - environment variables are passed directly
- Keep your private key secure and never share it
- The private key is only used to derive the wallet address and initialize the Kuru client
- All sensitive data is handled securely through environment variables
This project is part of the Kodeus ecosystem. To contribute:
- Build Custom MCP Modules: Develop and host MCP-compliant servers
- Agent Development: Use the Kodeus Developer SDK to build intelligent agents
- Community: Join the Kodeus community and earn $KODE tokens for contributions
Learn more at KodeusAI
MIT
Built with β€οΈ by KodeusAI
The Open Agentic Operating System for Web3