Install in Your AI Client

Connect Hive to Claude Code

Add Hive to Claude Code and Anthropic's CLI agent gets live crypto data without any wrapper code. One claude mcp add command and you're connected.


Before you start

  1. Claude Code installed — instructions here.
  2. A free Hive API key from /dashboard/keys.

30-second setup

Run this in your terminal, replacing YOUR_HIVE_API_KEY:

claude mcp add hive \
  --env HIVE_API_KEY=YOUR_HIVE_API_KEY \
  -- npx -y hive-intelligence@latest

That's it. Claude Code will pick up Hive as an MCP server on the next session.

Verify it worked

Start a new Claude Code session and ask:

"What is the current price of BTC and ETH?"

Claude Code should call Hive's get_price tool. If you see the tool invocation in the session log, you're connected.


What to ask once connected

Claude Code is especially good at multi-step data flows. Try:

  • "Check the top 10 DeFi protocols by TVL, then flag any whose TVL dropped more than 5% in the last 24 hours."
  • "Scan the top 50 coins by market cap for any showing >15% price drop today — summarize as a briefing."
  • "For this wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, show every token held, current USD value, and 24h P&L."
  • "Run a security check on this token list and tell me which ones are safe to hold."

Claude Code will chain multiple Hive tools together automatically — you don't need to name each one.


Managing the MCP server

List configured MCP servers:

claude mcp list

Remove Hive if you need to:

claude mcp remove hive

Update Hive to latest (@latest handles this automatically on each session start, but if you want to force a fresh install):

claude mcp remove hive
claude mcp add hive --env HIVE_API_KEY=YOUR_HIVE_API_KEY -- npx -y hive-intelligence@latest

Troubleshooting

"hive: command not found" or tool calls fail. Check node --version — Hive requires Node 18+. Upgrade Node and re-run claude mcp add.

"HIVE_API_KEY is invalid". Verify at /dashboard/keys. The key should not contain quotes.

MCP server not listed after add. Restart your terminal session — environment sometimes doesn't propagate until a fresh shell.


Other clients


Next steps