@aicoin/opendata-mcp 1.0.29 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -165
- package/build/index.js +978 -2249
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,166 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @aicoin/opendata-mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AiCoin OpenData MCP Server — real-time crypto market data & analytics for any AI assistant.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**30 tools** · Market data · K-lines · Funding rates · Liquidations · Order flow · Hyperliquid analytics · News
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- HmacSHA1 auto-signing for all API requests
|
|
9
|
-
- Covers real-time tickers, K-lines, news, whale tracking, liquidation data
|
|
10
|
-
- stdio transport for local MCP clients
|
|
7
|
+
> Need exchange trading (place orders, check balances)? Use [@aicoin/aicoin-mcp](https://www.npmjs.com/package/@aicoin/aicoin-mcp) instead — it includes everything here plus 11 CCXT trading tools.
|
|
11
8
|
|
|
12
|
-
##
|
|
9
|
+
## Connect
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
npm install
|
|
16
|
-
cp .env.example .env
|
|
17
|
-
# Edit .env with your AiCoin API credentials
|
|
18
|
-
npm run build
|
|
19
|
-
npm start
|
|
20
|
-
```
|
|
11
|
+
Get your free API key at [aicoin.com/opendata](https://www.aicoin.com/opendata), then add to your MCP client:
|
|
21
12
|
|
|
22
|
-
|
|
13
|
+
### Claude Code
|
|
23
14
|
|
|
24
15
|
```bash
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
claude mcp add aicoin-opendata -- npx -y @aicoin/opendata-mcp \
|
|
17
|
+
--env AICOIN_ACCESS_KEY_ID=your-key-id \
|
|
18
|
+
--env AICOIN_ACCESS_SECRET=your-secret
|
|
27
19
|
```
|
|
28
20
|
|
|
29
|
-
|
|
21
|
+
Or add to `.mcp.json` in your project root:
|
|
30
22
|
|
|
31
|
-
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"aicoin-opendata": {
|
|
27
|
+
"command": "npx",
|
|
28
|
+
"args": ["-y", "@aicoin/opendata-mcp"],
|
|
29
|
+
"env": {
|
|
30
|
+
"AICOIN_ACCESS_KEY_ID": "your-key-id",
|
|
31
|
+
"AICOIN_ACCESS_SECRET": "your-secret"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
32
37
|
|
|
33
|
-
|
|
34
|
-
|------|-------------|
|
|
35
|
-
| `get_coin_list` | All supported coins |
|
|
36
|
-
| `get_coin_ticker` | Real-time price, change, volume |
|
|
37
|
-
| `get_coin_config` | Coin profile/description |
|
|
38
|
-
| `get_ai_coin_analysis` | AI interpretation and prediction |
|
|
39
|
-
| `get_funding_rate_history` | Funding rate history |
|
|
40
|
-
| `get_liquidation_map` | Liquidation heatmap |
|
|
41
|
-
| `get_weighted_funding_rate_history` | Volume-weighted funding rate history |
|
|
42
|
-
| `get_aggregated_stablecoin_oi_history` | Aggregated stablecoin OI history |
|
|
43
|
-
| `get_aggregated_coin_margin_oi_history` | Aggregated coin-margin OI history |
|
|
44
|
-
| `get_liquidation_history` | Liquidation order history |
|
|
45
|
-
| `get_estimated_liquidation_history` | Estimated liquidation chart data |
|
|
46
|
-
| `get_historical_depth` | Historical order book depth |
|
|
47
|
-
| `get_super_depth_history` | Large order depth history |
|
|
48
|
-
| `get_trade_data` | Latest futures trade data |
|
|
49
|
-
|
|
50
|
-
### Contents
|
|
51
|
-
|
|
52
|
-
| Tool | Description |
|
|
53
|
-
|------|-------------|
|
|
54
|
-
| `get_newsflash` | Flash news (kuaixun) |
|
|
55
|
-
| `get_news_list` | News article list |
|
|
56
|
-
| `get_news_detail` | Full article content |
|
|
57
|
-
| `get_rss_news_list` | RSS news feed |
|
|
58
|
-
| `get_flash_list` | Industry flash news with classification |
|
|
59
|
-
| `get_exchange_listing_flash` | Exchange listing/delisting news |
|
|
38
|
+
### Cursor
|
|
60
39
|
|
|
61
|
-
|
|
40
|
+
Settings → MCP → Add new MCP server:
|
|
62
41
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
| `get_indicator_kline_data` | Indicator K-line data records |
|
|
78
|
-
| `get_coin_treasury_entities` | Coin treasury entity data |
|
|
79
|
-
| `get_coin_treasury_history` | Coin treasury historical data |
|
|
80
|
-
| `get_coin_treasury_accumulated` | Accumulated treasury history |
|
|
81
|
-
| `get_latest_coin_treasury_entities` | Latest treasury entities |
|
|
82
|
-
| `get_latest_coin_treasury_history` | Latest treasury history |
|
|
83
|
-
| `get_coin_treasury_summary` | Treasury data summary |
|
|
84
|
-
| `get_latest_depth` | Latest order book depth |
|
|
85
|
-
| `get_full_depth` | Full order book depth |
|
|
86
|
-
| `get_full_depth_grouped` | Full depth grouped by price |
|
|
87
|
-
|
|
88
|
-
### Features
|
|
89
|
-
|
|
90
|
-
| Tool | Description |
|
|
91
|
-
|------|-------------|
|
|
92
|
-
| `get_ls_ratio` | Long/short ratio |
|
|
93
|
-
| `get_liquidation_data` | Liquidation/forced-close data |
|
|
94
|
-
| `get_big_orders` | Whale order tracking |
|
|
95
|
-
| `get_agg_trades` | Aggregated large trades |
|
|
96
|
-
| `get_trading_pair_ticker` | Trading pair ticker data |
|
|
97
|
-
| `get_strategy_signal` | Indicator win-rate signals |
|
|
98
|
-
| `get_nav` | Market overview navigation data |
|
|
99
|
-
| `get_grayscale_trust` | Grayscale trust fund data |
|
|
100
|
-
| `get_gray_scale` | Grayscale holdings data |
|
|
101
|
-
| `get_stock_market` | Crypto-related stock market data |
|
|
102
|
-
| `get_signal_alert` | Signal alert data |
|
|
103
|
-
| `get_signal_alert_config` | Signal alert config options |
|
|
104
|
-
| `delete_signal_alert` | Delete signal alert by ID |
|
|
105
|
-
| `add_signal_alert` | Add new signal alert |
|
|
106
|
-
| `get_signal_alert_list` | Signal alert settings list |
|
|
107
|
-
| `get_change_signal` | Abnormal movement signals |
|
|
108
|
-
| `get_trading_pair` | Trading pair info by key |
|
|
109
|
-
| `get_trading_pairs` | Trading pair list for platform |
|
|
110
|
-
|
|
111
|
-
### Hyperliquid
|
|
112
|
-
|
|
113
|
-
| Tool | Description |
|
|
114
|
-
|------|-------------|
|
|
115
|
-
| `hl_get_tickers` | All Hyperliquid tickers |
|
|
116
|
-
| `hl_get_ticker_by_coin` | Ticker for specific coin |
|
|
117
|
-
| `hl_get_whale_positions` | Whale open positions |
|
|
118
|
-
| `hl_get_liquidations` | Liquidation history |
|
|
119
|
-
| `hl_get_trader_stats` | Trader statistics by address |
|
|
120
|
-
| `hl_info` | Generic Info API (all info types) |
|
|
121
|
-
| `hl_get_fills_by_address` | Trade fills by wallet address |
|
|
122
|
-
| `hl_get_fills_by_oid` | Trade fills by order ID |
|
|
123
|
-
| `hl_get_fills_by_twapid` | Trade fills by TWAP ID |
|
|
124
|
-
| `hl_get_top_trades` | Top trades |
|
|
125
|
-
| `hl_get_filled_orders` | Filled orders by address |
|
|
126
|
-
| `hl_get_filled_order_by_oid` | Filled order by order ID |
|
|
127
|
-
| `hl_get_orders` | Latest orders by address |
|
|
128
|
-
| `hl_get_order_by_oid` | Order by order ID |
|
|
129
|
-
| `hl_get_top_open_orders` | Top open orders |
|
|
130
|
-
| `hl_get_active_stats` | Active order statistics |
|
|
131
|
-
| `hl_get_portfolio` | Account value and PNL curves |
|
|
132
|
-
| `hl_get_pnls` | PNL curve data by address |
|
|
133
|
-
| `hl_get_best_trades` | Most profitable trades |
|
|
134
|
-
| `hl_get_performance_by_coin` | Per-coin trading performance |
|
|
135
|
-
| `hl_get_completed_trades` | Completed trades list |
|
|
136
|
-
| `hl_get_current_position_history` | Current position history |
|
|
137
|
-
| `hl_get_completed_position_history` | Completed position history |
|
|
138
|
-
| `hl_get_current_position_pnl` | Current position PnL |
|
|
139
|
-
| `hl_get_completed_position_pnl` | Completed position PnL |
|
|
140
|
-
| `hl_get_current_position_executions` | Current position executions |
|
|
141
|
-
| `hl_get_completed_position_executions` | Completed position executions |
|
|
142
|
-
| `hl_get_traders_accounts` | Batch trader account info |
|
|
143
|
-
| `hl_get_traders_statistics` | Batch trader statistics |
|
|
144
|
-
| `hl_get_whale_events` | Latest whale position events |
|
|
145
|
-
| `hl_get_whale_directions` | Whale long/short counts |
|
|
146
|
-
| `hl_get_whale_history_long_ratio` | Historical whale long/short ratio |
|
|
147
|
-
| `hl_get_liquidation_stats` | Liquidation statistics |
|
|
148
|
-
| `hl_get_liquidation_stats_by_coin` | Liquidation stats by coin |
|
|
149
|
-
| `hl_get_liquidation_top_positions` | Top liquidated positions |
|
|
150
|
-
| `hl_smart_find` | Discover smart money addresses |
|
|
151
|
-
| `hl_discover_traders` | Discover traders by criteria |
|
|
152
|
-
| `hl_get_twap_states` | TWAP order states |
|
|
153
|
-
| `hl_get_max_drawdown` | Max drawdown by address |
|
|
154
|
-
| `hl_get_net_flow` | Ledger net flow by address |
|
|
155
|
-
| `hl_get_klines_with_taker_vol` | K-lines with taker volume |
|
|
156
|
-
|
|
157
|
-
## Client Configuration
|
|
158
|
-
|
|
159
|
-
> Get your API credentials at [AiCoin OpenAPI](https://www.aicoin.com/opendata)
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"mcpServers": {
|
|
45
|
+
"aicoin-opendata": {
|
|
46
|
+
"command": "npx",
|
|
47
|
+
"args": ["-y", "@aicoin/opendata-mcp"],
|
|
48
|
+
"env": {
|
|
49
|
+
"AICOIN_ACCESS_KEY_ID": "your-key-id",
|
|
50
|
+
"AICOIN_ACCESS_SECRET": "your-secret"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
160
56
|
|
|
161
|
-
###
|
|
57
|
+
### Windsurf
|
|
162
58
|
|
|
163
|
-
Add to
|
|
59
|
+
Add to `~/.codeium/windsurf/mcp_config.json`:
|
|
164
60
|
|
|
165
61
|
```json
|
|
166
62
|
{
|
|
@@ -169,17 +65,39 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
|
169
65
|
"command": "npx",
|
|
170
66
|
"args": ["-y", "@aicoin/opendata-mcp"],
|
|
171
67
|
"env": {
|
|
172
|
-
"AICOIN_ACCESS_KEY_ID": "
|
|
173
|
-
"AICOIN_ACCESS_SECRET": "
|
|
68
|
+
"AICOIN_ACCESS_KEY_ID": "your-key-id",
|
|
69
|
+
"AICOIN_ACCESS_SECRET": "your-secret"
|
|
174
70
|
}
|
|
175
71
|
}
|
|
176
72
|
}
|
|
177
73
|
}
|
|
178
74
|
```
|
|
179
75
|
|
|
180
|
-
###
|
|
76
|
+
### VS Code (Copilot)
|
|
77
|
+
|
|
78
|
+
Add to `.vscode/mcp.json` in your project:
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"mcp": {
|
|
83
|
+
"servers": {
|
|
84
|
+
"aicoin-opendata": {
|
|
85
|
+
"type": "stdio",
|
|
86
|
+
"command": "npx",
|
|
87
|
+
"args": ["-y", "@aicoin/opendata-mcp"],
|
|
88
|
+
"env": {
|
|
89
|
+
"AICOIN_ACCESS_KEY_ID": "your-key-id",
|
|
90
|
+
"AICOIN_ACCESS_SECRET": "your-secret"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Claude Desktop
|
|
181
99
|
|
|
182
|
-
Add to
|
|
100
|
+
Add to `claude_desktop_config.json`:
|
|
183
101
|
|
|
184
102
|
```json
|
|
185
103
|
{
|
|
@@ -188,40 +106,110 @@ Add to `.cursor/mcp.json`:
|
|
|
188
106
|
"command": "npx",
|
|
189
107
|
"args": ["-y", "@aicoin/opendata-mcp"],
|
|
190
108
|
"env": {
|
|
191
|
-
"AICOIN_ACCESS_KEY_ID": "
|
|
192
|
-
"AICOIN_ACCESS_SECRET": "
|
|
109
|
+
"AICOIN_ACCESS_KEY_ID": "your-key-id",
|
|
110
|
+
"AICOIN_ACCESS_SECRET": "your-secret"
|
|
193
111
|
}
|
|
194
112
|
}
|
|
195
113
|
}
|
|
196
114
|
}
|
|
197
115
|
```
|
|
198
116
|
|
|
199
|
-
###
|
|
117
|
+
### OpenCode
|
|
200
118
|
|
|
201
|
-
Add to
|
|
119
|
+
Add to `.opencode/config.toml`:
|
|
202
120
|
|
|
203
|
-
|
|
121
|
+
```toml
|
|
122
|
+
[mcp_servers.aicoin-opendata]
|
|
123
|
+
command = "npx"
|
|
124
|
+
args = ["-y", "@aicoin/opendata-mcp"]
|
|
125
|
+
|
|
126
|
+
[mcp_servers.aicoin-opendata.env]
|
|
127
|
+
AICOIN_ACCESS_KEY_ID = "your-key-id"
|
|
128
|
+
AICOIN_ACCESS_SECRET = "your-secret"
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Codex
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
codex --mcp-config mcp.json
|
|
135
|
+
```
|
|
204
136
|
|
|
205
|
-
|
|
137
|
+
Where `mcp.json` contains:
|
|
206
138
|
|
|
207
139
|
```json
|
|
208
140
|
{
|
|
209
|
-
"
|
|
141
|
+
"mcpServers": {
|
|
210
142
|
"aicoin-opendata": {
|
|
211
|
-
"type": "stdio",
|
|
212
143
|
"command": "npx",
|
|
213
144
|
"args": ["-y", "@aicoin/opendata-mcp"],
|
|
214
145
|
"env": {
|
|
215
|
-
"AICOIN_ACCESS_KEY_ID": "
|
|
216
|
-
"AICOIN_ACCESS_SECRET": "
|
|
146
|
+
"AICOIN_ACCESS_KEY_ID": "your-key-id",
|
|
147
|
+
"AICOIN_ACCESS_SECRET": "your-secret"
|
|
217
148
|
}
|
|
218
149
|
}
|
|
219
150
|
}
|
|
220
151
|
}
|
|
221
152
|
```
|
|
222
153
|
|
|
223
|
-
|
|
154
|
+
## Tools
|
|
224
155
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
156
|
+
| Tool | What it does |
|
|
157
|
+
|------|-------------|
|
|
158
|
+
| `coin_info` | Coin list, real-time prices, profiles, AI analysis |
|
|
159
|
+
| `coin_funding_rate` | Funding rate history (per-exchange or volume-weighted) |
|
|
160
|
+
| `coin_liquidation` | Liquidation heatmap, history, estimated liquidation chart |
|
|
161
|
+
| `coin_open_interest` | Aggregated OI history (stablecoin / coin-margined) |
|
|
162
|
+
| `coin_futures_data` | Futures order book history, large orders, trade data |
|
|
163
|
+
| `market_info` | Exchange list, platform tickers, trending coins, futures OI rankings |
|
|
164
|
+
| `kline` | Standard & indicator K-lines, trading pair discovery |
|
|
165
|
+
| `index_data` | Index prices, details, list of all available indexes |
|
|
166
|
+
| `crypto_stock` | Crypto-related stock quotes, top gainers, company info |
|
|
167
|
+
| `coin_treasury` | Corporate holdings (entities, trade history, accumulated) |
|
|
168
|
+
| `depth` | Real-time order book snapshots (latest, full, grouped) |
|
|
169
|
+
| `market_overview` | Market nav, long/short ratio, liquidation, grayscale, stocks |
|
|
170
|
+
| `order_flow` | Whale order tracking, aggregated large trades |
|
|
171
|
+
| `trading_pair` | Trading pair tickers, pairs by platform, filtered search |
|
|
172
|
+
| `signal_data` | Win-rate strategy signals, alerts, abnormal price movements |
|
|
173
|
+
| `signal_manage` | Add or delete signal alerts |
|
|
174
|
+
| `news` | Paginated news articles, full article detail, RSS feed |
|
|
175
|
+
| `flash` | Flash news, industry flashes, exchange listing announcements |
|
|
176
|
+
| `hl_ticker` | Hyperliquid tickers (single coin or all) |
|
|
177
|
+
| `hl_whale` | HL whale positions, events, long/short directions |
|
|
178
|
+
| `hl_liquidation` | HL liquidation history, stats, top liquidated positions |
|
|
179
|
+
| `hl_open_interest` | HL OI summary, top coins, per-coin history |
|
|
180
|
+
| `hl_taker` | HL taker buy/sell delta, K-lines with taker volume |
|
|
181
|
+
| `hl_trader` | HL trader stats, best trades, performance, batch analytics |
|
|
182
|
+
| `hl_fills` | HL trade fills by address/order/TWAP, top trades |
|
|
183
|
+
| `hl_orders` | HL orders (latest, filled, top open, active stats, TWAP) |
|
|
184
|
+
| `hl_position` | HL position history, PnL, execution trace |
|
|
185
|
+
| `hl_portfolio` | HL portfolio curve, PnL, max drawdown, net flow |
|
|
186
|
+
| `hl_advanced` | HL generic info API, smart money finder, trader discovery |
|
|
187
|
+
| `guide` | Setup guides for API key and tier upgrade |
|
|
188
|
+
|
|
189
|
+
## Environment Variables
|
|
190
|
+
|
|
191
|
+
| Variable | Required | Description |
|
|
192
|
+
|----------|----------|-------------|
|
|
193
|
+
| `AICOIN_ACCESS_KEY_ID` | No | AiCoin API key (free tier built-in, rate-limited) |
|
|
194
|
+
| `AICOIN_ACCESS_SECRET` | No | AiCoin API secret |
|
|
195
|
+
|
|
196
|
+
## API Tiers
|
|
197
|
+
|
|
198
|
+
| Tier | Price | Rate Limit | Features |
|
|
199
|
+
|------|-------|------------|----------|
|
|
200
|
+
| Basic | Free | 10 req/min | Market data, news, K-lines, indexes |
|
|
201
|
+
| Normal | ¥99/mo | 60 req/min | + Funding rate, liquidation, OI |
|
|
202
|
+
| Premium | ¥299/mo | 120 req/min | + Depth, whale tracking, order flow |
|
|
203
|
+
| Professional | ¥999/mo | 300 req/min | + Full depth, all features |
|
|
204
|
+
|
|
205
|
+
Upgrade at [aicoin.com/opendata](https://www.aicoin.com/opendata). Your existing key is automatically upgraded.
|
|
206
|
+
|
|
207
|
+
## Migrating from v1.x
|
|
208
|
+
|
|
209
|
+
v2.0 consolidates 100+ individual tools into **30 action-based tools**. Each tool now supports multiple actions via an `action` parameter (e.g., `coin_info` with `action: "list"` / `"ticker"` / `"config"` / `"ai_analysis"`).
|
|
210
|
+
|
|
211
|
+
This reduces context overhead for AI assistants and improves tool selection accuracy. All API endpoints remain the same — only the tool interface changed.
|
|
212
|
+
|
|
213
|
+
## License
|
|
214
|
+
|
|
215
|
+
MIT
|