Haiku DeFi MCP server
io.github.Haiku-Trading/haiku-mcp-server·v0.0.8·2 starsDeFi execution for AI agents — swap, lend, bridge, and yield across 22 chains.
2 stars63 downloads/wk
Reviews
Write oneNobody has reviewed Haiku DeFi MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Haiku DeFi MCP tools (7, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
haiku_analyze_portfolioAnalyze a wallet's DeFi portfolio and surface relevant yield opportunities.
haiku_discover_yieldsDiscover yield-bearing opportunities across DeFi protocols.
haiku_executewrite actionExecute a quote. Call haiku_get_quote first, then choose a path:
haiku_get_balancesGet token balances for a wallet address. By default fetches across all supported chains.
haiku_get_quoteGet a quote for a token swap or portfolio rebalance.
haiku_get_tokensGet supported tokens and DeFi positions for trading.
haiku_prepare_signaturesExternal wallet signing path — use this instead of passing signing payloads directly to haiku_execute
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan27 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 142 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10
How Haiku DeFi MCP compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 74/100
- higher than 40% of 48,255 servers
- Tools
- 7
- the typical server has 7
- Tools that change things
- 14%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 2
- more than 75% of 28,688 servers
- Downloads a week
- 63
- more than 50% of 12,191 servers with a package
What its tools let an agent do: 6 read · 1 change
Install Haiku DeFi MCP in Claude Code, Cursor or VS Code
Runs npx -y haiku-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add haiku-mcp-server -- npx -y haiku-mcp-server
What the publisher says
From the Haiku DeFi MCP repository's README, as published. We do not edit it. Read it on GitHub
Haiku MCP Server
An MCP (Model Context Protocol) server that enables AI agents to execute blockchain transactions via the Haiku API.
Features
- Token Discovery: List supported tokens and DeFi assets across 21 blockchain networks
- Balance Checking: Get wallet balances across all supported chains
- Trading Quotes: Get quotes for swaps and portfolio rebalancing
- Transaction Building: Convert quotes to unsigned EVM transactions
- Wallet Integration: Extract EIP-712 payloads for external wallet signing (Coinbase, AgentKit, Safe, etc.)
- Self-Contained Execution: Optional end-to-end execution with WALLETPRIVATEKEY env var
- Yield Discovery: Find the highest-yielding DeFi opportunities across protocols and chains, filtered by APY, TVL, and category
- Portfolio Analysis: Analyze a wallet's holdings and surface context-specific yield opportunities based on what it actually holds
Installation
npm install haiku-mcp-serverOr run directly with npx:
npx haiku-mcp-serverConfiguration
Environment Variables
Note: The API works without a key, but providing one unlocks higher rate limits for production use.
Claude Desktop Configuration
Add to your claudedesktopconfig.json:
{
"mcpServers": {
"haiku": {
"command": "npx",
"args": ["haiku-mcp-server"]
}
}
}With API key for higher rate limits:
{
"mcpServers": {
"haiku": {
"command": "npx",
"args": ["haiku-mcp-server"],
"env": {
"HAIKU_API_KEY": "your-api-key-here"
}
}
}
}Available Tools
haikugettokens
Get supported tokens and DeFi assets for trading.
Parameters:
- network (optional): Filter by chain ID (e.g., 42161 for Arbitrum)
- category (optional): Filter by token category:
- token - Vanilla tokens (ETH, USDC, etc.)
- collateral - eg. Aave aTokens (deposited collateral)
- varDebt - eg. Aave variable debt tokens
- vault - eg. Yearn/Morpho yield vaults
- weightedLiquidity - eg. Balancer LP tokens
- concentratedLiquidity - eg. Uniswap V3 LP positions
Example:
{
"network": 42161,
"category": "token"
}haikugetbalances
Get token balances for a wallet address across all chains.
Parameters:
- walletAddress (optional): Wallet address or ENS name. Required when WALLETPRIVATEKEY is not set; omit to auto-derive from WALLETPRIVATEKEY when it is set.
Example:
{
"walletAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
}Omit walletAddress when WALLETPRIVATEKEY is set to use the derived address.
haikugetquote
Get a quote for a token swap or portfolio rebalance.
Note: Quotes are valid for 5 minutes, but execute as quickly as possible after quoting — the longer you wait, the more likely prices have moved and the transaction will fail on-chain.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Haiku DeFi MCP: common questions
- Is Haiku DeFi MCP server safe?
- Mostly: it is graded B (74/100). Read the Haiku DeFi MCP safety report
- How do I install Haiku DeFi MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Haiku DeFi MCP need an API key?
- Yes. The registry entry asks for
HAIKU_API_KEY,WALLET_PRIVATE_KEY. - Is Haiku DeFi MCP maintained?
- The last commit was 179 days ago (2026-05-09). The latest release is v0.0.8.
- How does Haiku DeFi MCP compare with other MCP servers?
- safety score 74/100 (higher than 40% of 48,255 servers); tools 7 (the typical server has 7); tools that change things 14% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.