内容
Cerebrus Pulse 中转服务器
[](https://pypi.org/project/cerebrus-pulse-mcp/)
[](LICENSE)
[](https://pypi.org/project/cerebrus-pulse-mcp/)
Cerebrus Pulse 的中转服务器 — 为 AI 代理提供实时加密货币情报。提供 15 种工具,涵盖技术分析、清算热图、市场压力、资金费率等,覆盖 50 多种 Hyperliquid 永续合约。
## 工具列表
| 工具 | 描述 | 费用 |
|------|-------------|------|
| `cerebrus_health` | 网关健康检查 | 免费 |
| `cerebrus_list_coins` | 列出所有可用的交易对(50+) | 免费 |
| `cerebrus_pulse` | 多时间框架技术指标(RSI、EMA、BBands、VWAP、趋势) | $0.02 |
| `cerebrus_sentiment` | 综合市场情绪 + 恐惧/贪婪指数 | $0.01 |
| `cerebrus_funding` | 资金费率分析,附带历史背景 | $0.01 |
| `cerebrus_bundle` | Pulse + 情绪 + 资金费率综合(20% 折扣) | $0.04 |
| `cerebrus_screener` | 扫描所有交易对以获取顶级信号 | $0.04 |
| `cerebrus_oi` | 开仓兴趣变化、百分比、趋势 | $0.01 |
| `cerebrus_spread` | 买卖价差 + 滑点估计 | $0.008 |
| `cerebrus_correlation` | BTC-山寨币相关性矩阵 | $0.03 |
| `cerebrus_stress` | 跨链套利衍生的市场压力指数 | $0.015 |
| `cerebrus_cex_dex` | CEX 与 DEX 价格差异 | $0.02 |
| `cerebrus_basis` | Chainlink 预言机 vs Hyperliquid 基差 | $0.02 |
| `cerebrus_depeg` | 通过 Chainlink 的 USDC 抵押品健康状况 | $0.01 |
| `cerebrus_liquidations` | 5 个杠杆层级的清算热图 | $0.03 |
付费端点使用 [x402](https://x402.org/) 微支付(**Base** 或 **Solana** 上的 USDC)。免费工具无需配置即可使用。
## 安装
### Claude Desktop / Cursor / Windsurf
添加到您的 MCP 配置文件(`claude_desktop_config.json`、`.cursor/mcp.json` 等):
```json
{
"mcpServers": {
"cerebrus-pulse": {
"command": "uvx",
"args": ["cerebrus-pulse-mcp"]
}
}
}
```
要启用付费端点的自动 x402 支付,请添加您的钱包私钥:
```json
{
"mcpServers": {
"cerebrus-pulse": {
"command": "uvx",
"args": ["cerebrus-pulse-mcp"],
"env": {
"CEREBRUS_WALLET_KEY": "your-base-wallet-private-key",
"CEREBRUS_WALLET_KEY_SOLANA": "your-solana-wallet-private-key"
}
}
}
}
```
设置其中一个或两个 - x402 SDK 会选择您配置的钱包链。
### pip
```bash
pip install cerebrus-pulse-mcp
```
## 命令行使用
服务器包含一个 `--json` 标志,用于在没有 MCP 客户端的情况下直接访问 CLI:
```bash
# 列出所有可用的 CLI 工具
cerebrus-pulse-mcp --json
# 免费端点
cerebrus-pulse-mcp --json health
cerebrus-pulse-mcp --json list-coins
# 付费端点(如果钱包未配置,则返回支付详情)
cerebrus-pulse-mcp --json pulse BTC
cerebrus-pulse-mcp --json funding ETH lookback_hours=48
cerebrus-pulse-mcp --json screener top_n=10
cerebrus-pulse-mcp --json liquidations SOL
```
参数可以按位置传递(对于交易对)或作为 `key=value` 对传递。
## 配置
| 环境变量 | 描述 | 是否必需 |
|---------------------|-------------|----------|
| `CEREBRUS_BASE_URL` | API 基本 URL(默认:`https://api.cerebruspulse.xyz`) | 否 |
| `CEREBRUS_WALLET_KEY` | 用于 x402 自动支付的 Base 钱包私钥 | 否 |
| `CEREBRUS_WALLET_KEY_SOLANA` | 用于 x402 自动支付的 Solana 钱包私钥 | 否 |
## 示例响应
```bash
$ cerebrus-pulse-mcp --json health
{
"status": "ok",
"engine": "available",
"kill_switch": "enabled",
"version": "1.2.0"
}
```
## 开发
```bash
git clone https://github.com/0xsl1m/cerebrus-pulse-mcp.git
cd cerebrus-pulse-mcp
pip install -e .
```
## 链接
- [Cerebrus Pulse](https://cerebruspulse.xyz) — API 文档和指南
- [x402 协议](https://x402.org/) — HTTP 402 微支付标准
- [PyPI 软件包](https://pypi.org/project/cerebrus-pulse-mcp/)
- [更新日志](CHANGE## 许可证
MIT