VOOZH about

URL: https://glama.ai/mcp/servers/hive-intel/hive-sdk?locale=zh-CN

⇱ Hive Intelligence by hive-intel | Glama


Hive Intelligence

用于加密货币、Web3 和金融市场分析的 MCP 服务器及 CLI。通过你的 AI 助手或终端访问涵盖 14 个类别389 个工具

安装

npm install -g hive-intelligence

这将为你提供两个命令:

命令

用途

hive-intelligence

用于 AI 客户端(Claude Desktop、Cursor、VS Code 等)的 MCP stdio 服务器

hive

用于终端操作的 CLI 工具

注意: hive-intelligence 是一个 MCP stdio 服务器——直接运行它会开启一个等待 JSON-RPC 消息的 stdio 传输。它不是交互式的,也不接受子命令。如需在终端使用,请使用 hive CLI。

无需安装直接运行

CLI 是同一个包中的独立二进制文件,因此使用 npx 时必须通过 -p 显式选择它:

# Run the CLI via npx (note: -p selects the package, `hive` is the bin)
HIVE_API_KEY=hive_live_... npx -y -p hive-intelligence hive --help
HIVE_API_KEY=hive_live_... npx -y -p hive-intelligence hive market price --ids bitcoin --vs usd

# Plain `npx -y hive-intelligence` launches the MCP stdio server, not the CLI.

Related MCP server: CryptoQuant MCP Server

API 密钥

需要 API 密钥。请在 hiveintelligence.xyz 获取并将其设置为环境变量:

export HIVE_API_KEY="hive_live_..."

或者使用 CLI 登录:

hive auth login

MCP 服务器设置

Claude Desktop

添加到你的配置文件中:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
 "mcpServers": {
 "hive": {
 "command": "npx",
 "args": ["-y", "hive-intelligence"],
 "env": {
 "HIVE_API_KEY": "hive_live_..."
 }
 }
 }
}

Cursor

添加到 .cursor/mcp.json

{
 "mcpServers": {
 "hive": {
 "command": "npx",
 "args": ["-y", "hive-intelligence"],
 "env": {
 "HIVE_API_KEY": "hive_live_..."
 }
 }
 }
}

VS Code

添加到 .vscode/mcp.json

{
 "servers": {
 "hive": {
 "type": "stdio",
 "command": "npx",
 "args": ["-y", "hive-intelligence"],
 "env": {
 "HIVE_API_KEY": "hive_live_..."
 }
 }
 }
}

Claude Code

claude mcp add hive-intelligence -e HIVE_API_KEY=hive_live_... -- npx -y hive-intelligence

远程 MCP 服务器

对于支持 HTTP 传输的客户端:

URL: https://mcp.hiveintelligence.xyz/mcp
Headers: { "Authorization": "Bearer hive_live_..." }

更多详情:https://hiveintelligence.xyz/crypto-mcp

CLI 使用方法

hive CLI 是一个与 Hive API 通信的轻量级客户端。在进行调用之前,请设置 HIVE_API_KEY(或运行 hive auth login)。

# Get Bitcoin price
hive market price --ids bitcoin --vs usd

# Top coins by market cap
hive market top --vs usd --limit 10

# DeFi protocol TVL
hive defi tvl --protocol aave

# Stock quote
hive stocks quote --symbol AAPL

# Search across all tools
hive tools search "price"

# Run any tool by name
hive tools call get_price --args '{"ids": "ethereum", "vs_currencies": "usd"}'

CLI 命令

领域

描述

market

加密货币价格、图表、排名、稳定币、Gas 费

defi

DeFi 协议 TVL、费用、收益率、跨链桥

portfolio

钱包余额、DeFi 持仓、NFT

security

代币安全扫描、授权、模拟

stocks

股票报价、K 线、财务数据、分析师评级

macro

经济日历、市场状态、国家数据

prediction

预测市场、事件、交易者、结果

exchange

CEX 报价、订单簿、交易、资金费率

dex

DEX 池、热门交易对、交易、成交量

wallet

链上余额、转账、交易记录

nft

NFT 系列、市场、趋势

network

链、Gas 价格、区块

search

搜索代币和流动性池

altdata

内幕交易、财报、IPO

CLI 选项

--json Force JSON output
--pretty Force human-readable output
--fields <list> Comma-separated fields to include
--jq <expr> Filter JSON output (jq-like syntax)
--csv Output as CSV
--timeout <ms> Request timeout (default: 30000)
--no-retry Disable automatic retry
-q, --quiet Suppress non-data output
-v, --verbose Show debug info

身份验证与配置

# Log in with API key
hive auth login

# Check connectivity
hive doctor

# Show current profile
hive auth whoami

# Manage multiple profiles
hive auth profiles
hive auth switch production

Shell 自动补全

# Bash
eval "$(hive completion bash)"

# Zsh
eval "$(hive completion zsh)"

# Fish
hive completion fish > ~/.config/fish/completions/hive.fish

# Auto-install
hive completion bash --install

别名

hive alias set btc 'market price --ids bitcoin --vs usd'
hive btc

分析类别 (389 个工具)

#

类别

工具数

描述

1

市场数据与价格

70

实时/历史价格、OHLCV、市值、稳定币、衍生品、资金费率

2

链上 DEX 与流动性池

58

DEX 池、流动性、热门交易对、成交量、跨链桥、GoldRush XY=K 分析

3

投资组合与钱包

50

钱包余额、盈亏 (PnL)、DeFi 持仓、兑换历史、Moralis 与 GoldRush 智能数据

4

代币与合约

44

代币元数据、持有人、Moralis 分析、ENS 解析、国库追踪

5

DeFi 协议

21

TVL 数据、协议费用、流动性挖矿、链指标、国库

6

NFT 分析

41

系列数据、市场图表、流动性池、GoldRush NFT 元数据与特征

7

安全与风险

37

代币安全、蜜罐检测、Tenderly 模拟、Gas 估算

8

网络与基础设施

20

网络健康状况、区块数据、链状态、事件日志

9

搜索与发现

10

代币搜索、趋势分析、分类、代币发现

10

股票与权益

8

实时报价、K 线、公司概况、推荐建议

11

外汇与大宗商品

4

外汇汇率、大宗商品价格(黄金、白银、铂金)

12

经济指标

3

经济日历、市场状态、国家数据

13

另类数据

5

内幕交易、情绪评分、财报/IPO 日历

14

预测市场

19

Polymarket/Kalshi 事件、交易者统计、结果价格、交易历史

数据提供商

CoinGecko, DefiLlama, GeckoTerminal, Codex (Defined.fi), Moralis, GoPlus, GoldRush (Covalent), Tenderly, CCXT, Finnhub

环境变量

变量

描述

HIVE_API_KEY

必需。 API 密钥(或使用 hive auth login

HIVE_API_URL

自定义服务器 URL(默认:https://mcp.hiveintelligence.xyz

API_EXECUTE_ENDPOINT

覆盖 MCP 服务器后端 URL

开发

# Install dependencies
npm install

# Build
npm run build

# Test with MCP inspector
npm run inspector

# Start MCP server locally
npm start

许可证

MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hive-intel/hive-sdk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server