KawaFi MCP Server

$npm install -g kawa-fi-mcp
README.md

Unified access to the Hedera DeFi ecosystem through MCP

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.

✨ 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**

🛠️ **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 --help

2. 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=true

3. 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 metadata
  • saucerswap_get_stats - Platform statistics (TVL, volume, SAUCE circulation)
  • saucerswap_get_sss_stats - Single-Sided Staking statistics and XSAUCE ratio
  • saucerswap_get_hbar_prices - Historical HBAR price data (minutely resolution)
  • saucerswap_get_platform_data - Historical liquidity/volume data with intervals
  • saucerswap_get_farms - Active yield farming opportunities
  • saucerswap_get_farms_by_account - LP token amounts in farms by account
  • saucerswap_get_pools - All liquidity pools with reserves and token info
  • saucerswap_get_default_tokens - Default tokens with price changes
  • saucerswap_get_v2_pools - V2 pools with advanced metrics (fees, ticks, liquidity)
**Transaction Tools (9)** 🆕
  • saucerswap_quote_exact_input - Get swap quote for exact input amount
  • `saucerswap_quote_exact_outp

Tools (11)

saucerswap_get_tokensAll available tokens with prices and metadata
saucerswap_get_statsPlatform statistics including TVL, volume, and SAUCE circulation
saucerswap_get_sss_statsSingle-Sided Staking statistics and XSAUCE ratio
saucerswap_get_hbar_pricesHistorical HBAR price data with minutely resolution
saucerswap_get_platform_dataHistorical liquidity and volume data with intervals
saucerswap_get_farmsActive yield farming opportunities
saucerswap_get_farms_by_accountLP token amounts in farms by account
saucerswap_get_poolsAll liquidity pools with reserves and token info
saucerswap_get_default_tokensDefault tokens with price changes
saucerswap_get_v2_poolsV2 pools with advanced metrics like fees, ticks, and liquidity
saucerswap_quote_exact_inputGet swap quote for exact input amount

Environment Variables

HEDERA_NETWORKrequiredSelection of network: mainnet or testnet
EXECUTE_TXrequiredSet to true for execution, false for prepare-only mode
SAUCERSWAP_API_KEYOptional but recommended API key for SaucerSwap
MAINNET_HEDERA_OPERATOR_IDHedera account ID for mainnet
MAINNET_HEDERA_OPERATOR_KEYPrivate key for mainnet (required if EXECUTE_TX is true)

Configuration

claude_desktop_config.json
{"mcpServers": {"hedera-defi": {"command": "npx", "args": ["kawa-fi-mcp"]}}}

Try it

What are the current top yield farming opportunities on SaucerSwap?
Get a quote for swapping 100 HBAR to USDC on SaucerSwap.
Show me the current TVL and platform statistics for SaucerSwap.
Check the liquidity and reserves for the HBAR/SAUCE pool.
What is the current XSAUCE ratio and single-sided staking APY?

Frequently Asked Questions

What are the key features of KawaFi?

Dual-Mode Security System supporting both transaction preparation and direct execution.. Unified access to SaucerSwap, Bonzo Finance, Stader, HeliSwap, and Hashport.. Comprehensive toolset of 36 standardized tools for data analytics and cross-chain operations.. Real-time data fetching for prices, pool reserves, and yield optimization opportunities..

What can I use KawaFi for?

DeFi Portfolio Management: Monitor liquidity pool positions and farming rewards across Hedera.. Automated Trading: Prepare or execute swaps with real-time price quotes and slippage data.. Yield Aggregation: Compare lending rates on Bonzo Finance and staking APYs on Stader.. Cross-chain Bridging: Facilitate asset transfers between Hedera and other networks via Hashport..

How do I install KawaFi?

Install KawaFi by running: npm install -g kawa-fi-mcp

What MCP clients work with KawaFi?

KawaFi works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use KawaFi with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free