Haiku MCP Server

MCP server for Haiku API - enables AI agents to execute any blockchain transactions

Local serverstdio

What is the Haiku MCP server?

MCP server for Haiku API - enables AI agents to execute any blockchain transactions. That is what the haiku mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

An MCP (Model Context Protocol) server that enables AI agents to execute blockchain transactions via the Haiku API.

  • 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 WALLET_PRIVATE_KEY env var

Getting it running

haiku-mcp-server on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

The tools it exposes

The server publishes 7 tools. What each one is for:

  • haiku_get_tokens — The haiku_get_tokens tool exposed by this server
  • haiku_get_balances — The haiku_get_balances tool exposed by this server
  • haiku_get_quote — The haiku_get_quote tool exposed by this server
  • haiku_prepare_signatures — Extract and normalize EIP-712 signing payloads from a quote for external wallet signing (Path B only). When using quoteId, the quote must have been
  • haiku_discover_yields — Discover yield-bearing opportunities across DeFi protocols, ranked by APY or TVL
  • haiku_analyze_portfolio — Analyze a wallet's DeFi portfolio and surface relevant yield opportunities
  • haiku_execute — Execute a quote. Two distinct paths depending on who holds the private key

What it needs from you

Configuration is passed through the environment: HAIKU_API_KEY, WALLET_PRIVATE_KEY, HAIKU_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Haiku's toolset — haiku_get_tokens, haiku_get_balances, haiku_get_quote and 4 more — is a fair guide to whether it matches your workflow. It is maintained by haiku-trading; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
haiku_get_tokensThe haiku_get_tokens tool exposed by this server.
haiku_get_balancesThe haiku_get_balances tool exposed by this server.
haiku_get_quoteThe haiku_get_quote tool exposed by this server.
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.
haiku_executeExecute a quote. Two distinct paths depending on who holds the private key.

How to install the Haiku MCP server

{
  "mcpServers": {
    "haiku": {
      "command": "npx",
      "args": ["haiku-mcp-server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
HAIKU_API_KEYCredential the server authenticates with.Yes
WALLET_PRIVATE_KEYCredential the server authenticates with.Yes
HAIKU_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Haiku to haiku get tokens.
  • Use Haiku to haiku get balances.
  • Use Haiku to haiku get quote.

Frequently asked questions

It connects Haiku to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (haiku_get_tokens, haiku_get_balances, haiku_get_quote, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Haiku directly.