MCP server for DeFi on 22 chains offering token discovery, portfolio analysis, quoting, and transaction execution.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Haiku MCP Server.
haiku_get_tokensGet supported tokens and DeFi assets for trading.
haiku_get_balancesGet token balances for a wallet address across all chains.
haiku_get_quoteGet a quote for a token swap or portfolio rebalance.
haiku_prepare_signaturesExtract and normalize EIP-712 signing payloads from a quote for external wallet signing (Path B only). When using `quoteId`, the quote must have been obtained in the same session.
haiku_discover_yieldsDiscover yield-bearing opportunities across DeFi protocols, ranked by APY or TVL.
haiku_analyze_portfolioAnalyze a wallet's DeFi portfolio and surface relevant yield opportunities.
An MCP (Model Context Protocol) server that enables AI agents to execute blockchain transactions via the Haiku API.
Or run directly with npx:
| Variable | Required | Description |
|---|---|---|
HAIKU_API_KEY | No | Your Haiku API key for higher rate limits. Contact contact@haiku.trade to request one. |
HAIKU_BASE_URL | No | API base URL. Defaults to https://api.haiku.trade/v1 |
WALLET_PRIVATE_KEY | No | Private key (0x hex) for self-contained execution via haiku_execute. |
RPC_URL_{chainId} | No | Override RPC URL for a specific chain (e.g., RPC_URL_42161 for Arbitrum). |
Note: The API works without a key, but providing one unlocks higher rate limits for production use.
Add to your claude_desktop_config.json:
With API key for higher rate limits:
haiku_get_tokensGet 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 tokensvault - eg. Yearn/Morpho yield vaultsweightedLiquidity - eg. Balancer LP tokensconcentratedLiquidity - eg. Uniswap V3 LP positionsExample:
haiku_get_balancesGet token balances for a wallet address across all chains.
Parameters:
walletAddress (optional): Wallet address or ENS name. Required when WALLET_PRIVATE_KEY is not set; omit to auto-derive from WALLET_PRIVATE_KEY when it is set.Example:
Omit walletAddress when WALLET_PRIVATE_KEY is set to use the derived address.
haiku_get_quoteGet 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.
Parameters:
inputPositions (required): Map of token IID to amount to spendtargetWeights (required): Map of output token IID to weight (must sum to 1)slippage (optional): Max slippage as decimal (default: 0.003)receiver: Receiving wallet address. Required when WALLET_PRIVATE_KEY is not set โ must be provided explicitly. When WALLET_PRIVATE_KEY is set, auto-derived if omitted. When WALLET_PRIVATE_KEY is not set (Path B), you must pass receiver explicitly.Example:
Example above omits receiver (valid when WALLET_PRIVATE_KEY is set). For Path B, include "receiver": "0x...".
haiku_prepare_signaturesExtract and normalize EIP-712 signing payloads from a quote for external wallet signing (Path B only). When using quoteId, the quote must have been obtained in the same session.
Use this when a wallet MCP handles signing (Coinbase Payments MCP, wallet-agent, AgentKit, Safe, etc.). Returns standardized typed data that any wallet's signTypedData can consume, plus step-by-step instructions.
Parameters:
quoteId (preferred): Quote ID from haiku_get_quote โ server resolves the full quote from session cache. QuoteId only works when the quote was returned by haiku_get_quote in the same MCP session; otherwise use quoteResponse.quoteResponse (fallback): Full response object from haiku_get_quote, if quoteId is unavailableReturns:
requiresPermit2: Whether Permit2 signature is neededpermit2: EIP-712 payload to pass to signTypedData (if required)requiresBridgeSignature: Whether bridge signature is neededbridgeIntent: EIP-712 payload to pass to signTypedData (if required)sourceChainId: Chain ID for the transactioninstructions: Step-by-step instructions for completing the flowExample:
haiku_discover_yieldsDiscover yield-bearing opportunities across DeFi protocols, ranked by APY or TVL.
Use this to answer questions like "best lending yields on Arbitrum", "highest APY vaults
with at least $1M TVL", or "what can I do with USDC on Base". The iid field in results
can be used directly as a key in the targetWeights object in haiku_get_quote.
Parameters:
network (optional): Filter by chain ID (e.g., 42161 for Arbitrum)category (optional): lending (Aave collateral), vault (Yearn/Morpho), lp (Balancer/Uniswap), all (default)minApy (optional): Minimum APY as a percentage (e.g., 5 means โฅ5% APY)minTvl (optional): Minimum TVL in USD (e.g., 1000000 means โฅ$1M). Filters to established mainstream vaults.sortBy (optional): apy (default) or tvl, descendinglimit (optional): Max results (default 20)Example:
haiku_analyze_portfolioAnalyze a wallet's DeFi portfolio and surface relevant yield opportunities.
Returns current positions enriched with available APY options, collateral health factors,
and context-specific opportunities based on what the wallet actually holds. Pair with
haiku_discover_yields for broader market context, then use haiku_get_quote to execute.
Parameters:
walletAddress (required): Wallet address (0x...) to analyzeExample:
haiku_executeExecute a quote. Two distinct paths depending on who holds the private key.
Path A โ Self-contained (WALLET_PRIVATE_KEY set in env): Haiku signs Permit2/bridge payloads internally and broadcasts. Returns a tx hash.
Parameters:
quoteId (required): Quote ID from haiku_get_quotesourceChainId (recommended): Chain ID from the quote response. Omit only if the quote was obtained in the same session โ the server can recover from cache.permit2SigningPayload (optional): Pass through from haiku_get_quote if presentbridgeSigningPayload (optional): Pass through from haiku_get_quote if present (cross-chain only)approvals (optional): Pass through from haiku_get_quote if presentExample:
Path B โ External wallet (no WALLET_PRIVATE_KEY, using a wallet MCP): You sign and broadcast. broadcast: false is required โ without WALLET_PRIVATE_KEY, haiku cannot sign or send the final EVM transaction. If you call haiku_execute with broadcast: true and no WALLET_PRIVATE_KEY, the server returns an error directing you to set broadcast: false and broadcast the returned transaction via your wallet MCP.
Before calling haiku_execute:
approvals is non-empty in the quote: broadcast each approval as a transaction { to, data, value } (include value when present, e.g. for native token) via your wallet MCP and wait for confirmation.haiku_prepare_signatures with the quoteId, sign the returned EIP-712 payloads via your wallet MCP, then pass the signatures here.Parameters:
quoteId (required): Quote ID from haiku_get_quotesourceChainId (recommended): Chain ID from the quote response. Omit only if the quote was obtained in the same session โ the server can recover from cache.broadcast (required): Must be false โ haiku returns the unsigned tx for you to broadcastpermit2Signature (optional): Signature from signing the Permit2 payload via your wallet MCPuserSignature (optional): Signature from signing the bridge payload via your wallet MCP (cross-chain only)Example:
Returns { transaction: { to, data, value, chainId } } โ pass transaction to your wallet MCP's sendTransaction.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/haiku-trading-haiku-mcp-server)<a href="https://allmcps.com/mcp/haiku-trading-haiku-mcp-server"><img src="https://allmcps.com/api/badge/haiku-trading-haiku-mcp-server?style=directory" alt="Haiku MCP Server on AllMCPs" /></a>