KawaFi
Supports cross-chain bridging operations via Hashport, allowing users to validate bridge parameters and get step-by-step instructions for transferring assets between Ethereum and the Hedera network.
Provides comprehensive access to the Hedera DeFi ecosystem, including tools for data analytics, transaction preparation, and asset management across platforms like SaucerSwap, Bonzo Finance, Stader, and HeliSwap.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@KawaFi Find the best yield farming opportunities on SaucerSwap"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
KawaFi - Hedera DeFi MCP Server
KawaFi provides unified access to the Hedera DeFi ecosystem through the Model Context Protocol (MCP), enabling AI assistants to interact with multiple DeFi platforms safely and efficiently.
š Overview
A comprehensive Model Context Protocol (MCP) server that provides unified access to major Hedera DeFi platforms including SaucerSwap, Bonzo Finance, Stader, HeliSwap, and Hashport. This server enables AI assistants and applications to interact with Hedera's DeFi ecosystem through 36 standardized tools covering data analytics, transaction preparation, and cross-platform operations.
Related MCP server: Hedera Toolbox
⨠Features
š Dual-Mode Security System
Prepare Mode (Default): Generate unsigned transactions for external signing
Execute Mode (Advanced): Optionally sign and execute transactions directly
Security-First Design: Private keys only loaded when explicitly required
š Multi-Platform DeFi Integration
SaucerSwap: Leading AMM DEX (19 tools)
Bonzo Finance: Lending and borrowing (3 tools)
Stader: HBAR liquid staking (3 tools)
HeliSwap: Trading pair data (1 tool)
Hashport: Cross-chain bridging (10 tools)
š ļø Comprehensive Toolset
Data & Analytics: Real-time prices, pool reserves, APYs, lending rates
Transaction Preparation: Complete unsigned transaction data with proper encoding
Cross-chain Operations: Asset bridging across multiple networks
Yield Optimization: Staking, farming, and lending opportunities
š Tool Overview
Platform | Data Tools | Transaction Tools | Total | Status |
SaucerSwap | 10 | 9 | 19 | ā 100% Working |
Bonzo Finance | 3 | 0* | 3 | ā 100% Working |
Stader | 1 | 2 | 3 | ā 100% Working |
HeliSwap | 1 | 0 | 1 | ā 100% Working |
Hashport | 10 | 0 | 10 | ā 100% Working |
TOTAL | 25 | 11 | 36 | ā 100% Working |
*Bonzo transaction tools planned for future release
š§ Installation & Setup
Prerequisites
Node.js 18+
An MCP-compatible client (Claude Desktop, etc.)
1. Installation
# Install globally from npm
npm install -g kawa-fi-mcp
# Or run with npx (no installation needed)
npx kawa-fi-mcp --help2. Environment Configuration
Create a .env file with your desired configuration (see .env.example for reference):
# Network Selection
HEDERA_NETWORK=mainnet # or "testnet"
# Security Mode
EXECUTE_TX=false # true for execution, false for prepare-only
# Platform API Keys
SAUCERSWAP_API_KEY=your_api_key_here # Optional but recommended
# Hedera Credentials (choose based on network)
MAINNET_HEDERA_OPERATOR_ID=0.0.your_account
MAINNET_HEDERA_OPERATOR_KEY=your_private_key # Only if EXECUTE_TX=true
TESTNET_HEDERA_OPERATOR_ID=0.0.your_testnet_account
TESTNET_HEDERA_OPERATOR_KEY=your_testnet_private_key # Only if EXECUTE_TX=true3. MCP Client Configuration
Add to your MCP client:
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"hedera-defi": {
"command": "npx",
"args": ["kawa-fi-mcp"]
}
}
}4. Verification
# Test the server directly
npx kawa-fi-mcp
# Or if installed globally
kawa-fi-mcp
# Check available tools (should show 13-36 tools based on configuration)š Available Tools
SaucerSwap (19 tools)
Data & Analytics Tools (10)
saucerswap_get_tokens- All available tokens with prices and metadatasaucerswap_get_stats- Platform statistics (TVL, volume, SAUCE circulation)saucerswap_get_sss_stats- Single-Sided Staking statistics and XSAUCE ratiosaucerswap_get_hbar_prices- Historical HBAR price data (minutely resolution)saucerswap_get_platform_data- Historical liquidity/volume data with intervalssaucerswap_get_farms- Active yield farming opportunitiessaucerswap_get_farms_by_account- LP token amounts in farms by accountsaucerswap_get_pools- All liquidity pools with reserves and token infosaucerswap_get_default_tokens- Default tokens with price changessaucerswap_get_v2_pools- V2 pools with advanced metrics (fees, ticks, liquidity)
Transaction Tools (9) š
saucerswap_quote_exact_input- Get swap quote for exact input amountsaucerswap_quote_exact_output- Get swap quote for exact output amountsaucerswap_swap_hbar_for_tokens- Prepare HBAR ā tokens swap with refundssaucerswap_swap_tokens_for_hbar- Prepare tokens ā HBAR swap with unwrappingsaucerswap_swap_tokens_for_tokens- Prepare token ā token swapssaucerswap_stake_sauce- Prepare SAUCE staking for xSAUCEsaucerswap_unstake_xsauce- Prepare xSAUCE unstaking for SAUCEsaucerswap_deposit_to_farm- Prepare LP token farm depositssaucerswap_withdraw_from_farm- Prepare LP token farm withdrawals
Other Platform Tools (17)
Bonzo Finance (3)
bonzo_get_reserves- All lending/borrowing reservesbonzo_get_account- Account positions and balancesbonzo_get_liquidations- Accounts eligible for liquidation
Stader (3)
stader_get_exchange_rate- Current HBAR to HBARX exchange ratestader_stake_hbar- Stake HBAR for HBARX (transaction)stader_unstake_hbarx- Unstake HBARX for HBAR (transaction)
HeliSwap (1)
heliswap_get_pair_info- Trading pair information
Hashport (10)
hashport_get_supported_assets- Bridge-supported assetshashport_get_supported_networks- All supported networkshashport_get_bridge_steps- Step-by-step bridging instructionshashport_validate_bridge- Validate bridge parametershashport_get_assets_amounts- Asset reserve amountshashport_get_transfers- Paginated transfer historyhashport_get_network_assets- Assets on specific networkshashport_get_network_asset_amounts- Asset amounts per networkhashport_get_network_asset_details- Detailed asset informationhashport_convert_hedera_tx_id- Transaction ID format conversion
šÆ Usage Examples
For comprehensive examples and test prompts for all 36 tools, see PROMPTS.md.
Basic DeFi Data
Get all tokens available on SaucerSwapShow current HBAR to HBARX staking rate List active yield farms with APYsTransaction Preparation š
Prepare transaction to swap 10 HBAR for SAUCE tokens with 0.3% fee poolPrepare transaction to stake 1000000 SAUCE for xSAUCEPrepare transaction to deposit LP tokens to farm pool 1Analytics & Cross-chain
Get HBAR price history from last weekFind accounts eligible for liquidation on BonzoGet bridge steps from Ethereum to Hedera for USDCš Status & Testing
Current Status
Overall: 36/36 tools working (100% success rate)
Transaction Tools: 11/11 working (100% success rate)
Data Tools: 25/25 working (100% success rate)
Detailed Results
See TEST_RESULTS.md for:
Complete testing results with response sizes
Performance notes and API rate limiting info
Known issues and resolution steps
Platform-specific availability details
Known Issues
API Rate Limiting: Some SaucerSwap endpoints may timeout during high load
Network Dependencies: Stader and HeliSwap only available on mainnet
š”ļø Security & Transaction Modes
Prepare Mode (Recommended)
EXECUTE_TX=false # or omit entirelyā Secure: Private keys never loaded
ā Flexible: Sign with hardware wallets, dApps, or secure environments
ā Transparent: Complete unsigned transaction data provided
ā” Fast: No blockchain interaction delays
Execute Mode (Advanced)
EXECUTE_TX=true
MAINNET_HEDERA_OPERATOR_KEY=302e020100...ā ļø Security: Private key loaded in memory
ā” Convenient: Automatic transaction signing and submission
š Results: Returns transaction IDs and confirmations
šÆ Use Case: Automated strategies, trusted environments
Transaction Output Example
Prepare Mode Output:
{
"type": "prepared_transaction",
"description": "Swap 10 HBAR for minimum 1000000 SAUCE tokens",
"from": "0.0.123456",
"to": "0x00000000000000000000000000000000002cc9B2",
"function": "multicall(bytes[])",
"gas": 400000,
"value": "1000000000",
"unsigned": {
"contractId": "0x00000000000000000000000000000000002cc9B2",
"functionName": "multicall",
"functionParams": ["0xc04b8d59000000..."],
"payableAmount": "1000000000"
}
}šļø Architecture & Development
Project Structure
src/
āāā clients/ # Platform-specific client implementations
ā āāā saucerswap.ts # SaucerSwap API + transaction tools
ā āāā bonzo.ts # Bonzo Finance integration
ā āāā stader.ts # Stader staking with transactions
ā āāā hashport.ts # Hashport bridge operations
ā āāā heliswap.ts # HeliSwap pair data
āāā index.ts # MCP server with 36 tool definitions
āāā types/ # TypeScript definitionsDevelopment Commands
# For local development (after git clone)
npm install # Install dependencies
npm run dev # Development with hot reload
npm run build # Production build
npm run test # Run test suite
# For users (npm package)
npm install -g kawa-fi-mcp # Global installation
npx kawa-fi-mcp # Direct executionTechnical Details
For complete technical overview, challenges, and architecture details, see SUBMISSION.md.
š Documentation Links
PROMPTS.md - Test prompts for all 36 tools
TEST_RESULTS.md - Comprehensive testing results (100% success rate)
SUBMISSION.md - Technical overview and project details
š¤ Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureCommit changes:
git commit -m 'Add amazing feature'Push to branch:
git push origin feature/amazing-featureOpen a Pull Request
š Troubleshooting
Common Issues
Tools not appearing: Check MCP configuration and installation
npx kawa-fi-mcp --version # Verify package is accessibleAPI timeouts: SaucerSwap has rate limits
# Retry requests or use smaller data ranges
# API tools may timeout but transaction tools work consistentlyContract errors: Verify network configuration
echo $HEDERA_NETWORK # Should match your credentials
echo $EXECUTE_TX # Should be "false" for prepare modeMissing transaction tools: Ensure Hedera credentials are set
# For mainnet transaction tools:
echo $MAINNET_HEDERA_OPERATOR_ID # Required for transaction preparationGetting Help
Check TEST_RESULTS.md for current tool status
Review PROMPTS.md for working examples
Verify environment configuration matches requirements
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Acknowledgments
Model Context Protocol for the integration framework
Hedera for the blockchain infrastructure
DeFi platforms: SaucerSwap, Bonzo Finance, Stader, HeliSwap, Hashport
KawaFi - Unifying Hedera DeFi for AI assistants š¤ā”
Available Tools
17 toolsbonzo_get_accountC
Get account positions from Bonzo Finance
Inputs: accountId (required).
bonzo_get_liquidationsB
Get accounts with outstanding debt eligible for liquidation
Inputs: no named parameters.
bonzo_get_reservesB
Get all lending/borrowing reserves from Bonzo Finance
Inputs: no named parameters.
hashport_convert_hedera_tx_idC
Convert Hedera transaction ID format
Inputs: txId (required).
hashport_get_assets_amountsB
Get reserve amounts for all assets on Hashport
Inputs: no named parameters.
hashport_get_bridge_stepsC
Get step-by-step instructions for bridging assets via Hashport
Inputs: sourceNetworkId (required), targetNetworkId (required), sourceAssetId (required), recipient (required), +2 more.
hashport_get_network_asset_amountsC
Get amounts for a specific asset on a network
Inputs: networkId (required), assetId (required).
hashport_get_network_asset_detailsC
Get detailed information for a specific asset on a network
Inputs: networkId (required), assetId (required).
hashport_get_network_assetsC
Get assets available on a specific network
Inputs: networkId (required).
hashport_get_supported_assetsB
Get list of assets supported by Hashport bridge
Inputs: sourceNetwork, targetNetwork.
hashport_get_supported_networksB
Get all networks supported by Hashport
Inputs: no named parameters.
hashport_get_transfersC
Get paginated list of transfers with optional filtering
Inputs: page (required), pageSize (required), filter.
hashport_validate_bridgeC
Validate bridge parameters before initiating a bridge
Inputs: sourceNetworkId (required), targetNetworkId (required), sourceAssetId (required), recipient (required), +2 more.
heliswap_get_pair_infoC
Get trading pair information from HeliSwap
Inputs: token0 (required), token1 (required).
stader_get_exchange_rateA
Get current HBAR to HBARX exchange rate
Inputs: no named parameters.
stader_stake_hbarC
Prepare HBAR staking transaction (returns unsigned transaction)
Inputs: amountHbar (required).
stader_unstake_hbarxC
Prepare HBARX unstaking transaction (returns unsigned transaction)
Inputs: amountHbarx (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 17 tools
Tools are clearly grouped by service (Bonzo, Hashport, HeliSwap, Stader), with distinct purposes within each group. Minor potential confusion exists between hashport_get_assets_amounts and hashport_get_network_asset_amounts, but descriptions clarify the scope differences (all assets vs. specific asset).
Perfectly consistent naming throughout: all tools follow a service_action_resource pattern with snake_case (e.g., bonzo_get_account, hashport_get_assets_amounts). This makes it easy to understand which service each tool belongs to and what it does.
17 tools is reasonable for a multi-service DeFi server covering four distinct platforms. It's slightly on the higher side but well-organized by service, with each tool serving a specific purpose without obvious redundancy.
Coverage varies by service: Hashport has comprehensive tools for bridging (get, validate, convert), but Bonzo lacks update/delete operations for positions, and HeliSwap only has get_pair_info without broader DEX functionality. Gaps exist, but core workflows for each service are partially covered.
Maintenance
Related MCP Connectors
MCP server for Gainium ā manage trading bots, deals, and balances via AI assistants
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server providing unified access to over 144 tools for lending, trading, and staking across six major DeFi protocols on the Stacks Bitcoin Layer 2. It enables AI agents to perform complex blockchain operations and interact with the DeFi ecosystem using natural language commands.3MIT
- AlicenseAqualityBmaintenanceProduction MCP server giving AI agents metered access to live Hedera blockchain data. Query token prices, screen identities, monitor governance, write tamper-evident HCS compliance records, and analyze smart contracts ā all paid in HBAR micropayments per call.2047 npmAcademic Free v1.1
- AlicenseAqualityCmaintenanceMCP server providing AI agents with native access to Jupiter's full DeFi stack on Solana. It offers 17 tools covering swaps, tokens, lending, limit orders, DCA, prediction markets, perpetuals, and portfolio management.16MIT

Haiku DeFi MCPofficial
AlicenseAqualityDmaintenanceMCP server for DeFi execution ā lets AI agents swap, provide liquidity, lend, bridge, and run yield strategies across 22 chains in a single transaction. 7 tools for token discovery, portfolio analysis, quoting, and execution via the Haiku API.788 npm2MIT