@aicoin/aicoin-mcp 1.0.0 → 1.0.1
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 +114 -112
- package/build/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,139 +1,141 @@
|
|
|
1
|
-
# @aicoin/mcp
|
|
1
|
+
# @aicoin/aicoin-mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AiCoin MCP Server — connect any AI assistant to real-time crypto market data and exchange trading.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**41 tools** covering market data, K-lines, funding rates, liquidations, order flow, Hyperliquid analytics, news, and multi-exchange trading via CCXT.
|
|
6
6
|
|
|
7
7
|
## Quick Start
|
|
8
8
|
|
|
9
|
+
### 1. Get your API Key
|
|
10
|
+
|
|
11
|
+
Visit [aicoin.com/opendata](https://www.aicoin.com/opendata) to create a free API key.
|
|
12
|
+
|
|
13
|
+
### 2. Add to your MCP client
|
|
14
|
+
|
|
15
|
+
**Claude Desktop / Cursor / Windsurf** — edit your MCP config:
|
|
16
|
+
|
|
9
17
|
```json
|
|
10
18
|
{
|
|
11
19
|
"mcpServers": {
|
|
12
20
|
"aicoin": {
|
|
13
21
|
"command": "npx",
|
|
14
|
-
"args": ["-y", "@aicoin/mcp"],
|
|
22
|
+
"args": ["-y", "@aicoin/aicoin-mcp"],
|
|
15
23
|
"env": {
|
|
16
|
-
"AICOIN_ACCESS_KEY_ID": "
|
|
17
|
-
"AICOIN_ACCESS_SECRET": "
|
|
18
|
-
"DEFAULT_EXCHANGE": "binance",
|
|
19
|
-
"BINANCE_API_KEY": "<your key>",
|
|
20
|
-
"BINANCE_SECRET": "<your secret>",
|
|
21
|
-
"USE_PROXY": "false"
|
|
24
|
+
"AICOIN_ACCESS_KEY_ID": "your-key-id",
|
|
25
|
+
"AICOIN_ACCESS_SECRET": "your-secret"
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
```
|
|
27
31
|
|
|
32
|
+
**Claude Code** — add to `.mcp.json` in your project root, same format as above.
|
|
33
|
+
|
|
34
|
+
That's it. Your AI assistant now has access to 41 crypto data tools.
|
|
35
|
+
|
|
36
|
+
### 3. (Optional) Enable exchange trading
|
|
37
|
+
|
|
38
|
+
To place orders, check balances, etc., add your exchange API key:
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"mcpServers": {
|
|
43
|
+
"aicoin": {
|
|
44
|
+
"command": "npx",
|
|
45
|
+
"args": ["-y", "@aicoin/aicoin-mcp"],
|
|
46
|
+
"env": {
|
|
47
|
+
"AICOIN_ACCESS_KEY_ID": "your-key-id",
|
|
48
|
+
"AICOIN_ACCESS_SECRET": "your-secret",
|
|
49
|
+
"DEFAULT_EXCHANGE": "okx",
|
|
50
|
+
"OKX_API_KEY": "your-exchange-api-key",
|
|
51
|
+
"OKX_SECRET": "your-exchange-secret",
|
|
52
|
+
"OKX_PASSPHRASE": "your-passphrase"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Exchange API keys are stored locally only and never sent to AiCoin servers.
|
|
60
|
+
|
|
28
61
|
## Environment Variables
|
|
29
62
|
|
|
30
63
|
| Variable | Required | Description |
|
|
31
64
|
|----------|----------|-------------|
|
|
32
|
-
| `AICOIN_ACCESS_KEY_ID` | No | AiCoin
|
|
33
|
-
| `AICOIN_ACCESS_SECRET` | No | AiCoin
|
|
34
|
-
| `DEFAULT_EXCHANGE` | No | Default exchange for trading (default: binance) |
|
|
65
|
+
| `AICOIN_ACCESS_KEY_ID` | No | AiCoin API key (free tier built-in, rate-limited) |
|
|
66
|
+
| `AICOIN_ACCESS_SECRET` | No | AiCoin API secret |
|
|
67
|
+
| `DEFAULT_EXCHANGE` | No | Default exchange for trading (default: `binance`) |
|
|
35
68
|
| `{EXCHANGE}_API_KEY` | For trading | Exchange API key |
|
|
36
69
|
| `{EXCHANGE}_SECRET` | For trading | Exchange API secret |
|
|
37
70
|
| `{EXCHANGE}_PASSPHRASE` | OKX/Bitget | Exchange passphrase |
|
|
38
|
-
| `USE_PROXY` | No | Enable proxy (true
|
|
39
|
-
| `PROXY_URL` | No | Proxy URL
|
|
40
|
-
|
|
41
|
-
Supported exchanges: `binance
|
|
42
|
-
|
|
43
|
-
## Tools
|
|
44
|
-
|
|
45
|
-
###
|
|
46
|
-
|
|
47
|
-
|
|
|
48
|
-
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
56
|
-
|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
|
64
|
-
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
|
74
|
-
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
|
83
|
-
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
|
92
|
-
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
|
102
|
-
|
|
103
|
-
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
| 33 | `hl_open_interest` | OI data. Actions: `summary`, `top_coins`, `history` |
|
|
107
|
-
| 34 | `hl_taker` | Taker data. Actions: `delta`, `klines` |
|
|
108
|
-
| 35 | `hl_trader` | Trader analytics. Actions: `stats`, `best_trades`, `performance`, `completed_trades`, `accounts`, `statistics` |
|
|
109
|
-
| 36 | `hl_fills` | Trade fills. Actions: `by_address`, `by_oid`, `by_twapid`, `top_trades` |
|
|
110
|
-
| 37 | `hl_orders` | Orders. Actions: `latest`, `by_oid`, `filled`, `filled_by_oid`, `top_open`, `active_stats`, `twap_states` |
|
|
111
|
-
| 38 | `hl_position` | Position data. Actions: `current_history`, `completed_history`, `current_pnl`, `completed_pnl`, `current_executions`, `completed_executions` |
|
|
112
|
-
| 39 | `hl_portfolio` | Portfolio data. Actions: `portfolio`, `pnls`, `max_drawdown`, `net_flow` |
|
|
113
|
-
| 40 | `hl_advanced` | Advanced. Actions: `info`, `smart_find`, `discover` |
|
|
114
|
-
|
|
115
|
-
### Guide (1)
|
|
116
|
-
|
|
117
|
-
| # | Tool | Description |
|
|
118
|
-
|---|------|-------------|
|
|
119
|
-
| 41 | `guide` | Setup guides. Actions: `api_key`, `upgrade`, `trade_setup` |
|
|
120
|
-
|
|
121
|
-
## Testing
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
npm run build
|
|
125
|
-
node test-tools.mjs # Test all tools
|
|
126
|
-
node test-tools.mjs hl_ # Test Hyperliquid only
|
|
127
|
-
node test-tools.mjs coin # Test coin-related only
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## Development
|
|
131
|
-
|
|
132
|
-
```bash
|
|
133
|
-
npm run dev # Watch mode
|
|
134
|
-
npm run build # Production build
|
|
135
|
-
npm start # Run server
|
|
136
|
-
```
|
|
71
|
+
| `USE_PROXY` | No | Enable proxy (`true`/`false`) |
|
|
72
|
+
| `PROXY_URL` | No | Proxy URL, e.g. `http://127.0.0.1:7890` |
|
|
73
|
+
|
|
74
|
+
Supported exchanges: `binance` `binanceusdm` `binancecoinm` `okx` `bybit` `bitget` `gate` `huobi` `hyperliquid`
|
|
75
|
+
|
|
76
|
+
## Tools
|
|
77
|
+
|
|
78
|
+
### Market Data (30 tools)
|
|
79
|
+
|
|
80
|
+
| Tool | What it does |
|
|
81
|
+
|------|-------------|
|
|
82
|
+
| `coin_info` | Coin list, real-time prices, profiles, AI analysis |
|
|
83
|
+
| `coin_funding_rate` | Funding rate history (per-exchange or volume-weighted) |
|
|
84
|
+
| `coin_liquidation` | Liquidation heatmap, history, estimated liquidation chart |
|
|
85
|
+
| `coin_open_interest` | Aggregated OI history (stablecoin / coin-margined) |
|
|
86
|
+
| `coin_futures_data` | Futures order book history, large orders, trade data |
|
|
87
|
+
| `market_info` | Exchange list, platform tickers, trending coins, futures OI rankings |
|
|
88
|
+
| `kline` | Standard & indicator K-lines, trading pair discovery |
|
|
89
|
+
| `index_data` | Index prices, details, list of all available indexes |
|
|
90
|
+
| `crypto_stock` | Crypto-related stock quotes, top gainers, company info |
|
|
91
|
+
| `coin_treasury` | Corporate holdings (entities, trade history, accumulated) |
|
|
92
|
+
| `depth` | Real-time order book snapshots (latest, full, grouped) |
|
|
93
|
+
| `market_overview` | Market nav, long/short ratio, liquidation, grayscale, stocks |
|
|
94
|
+
| `order_flow` | Whale order tracking, aggregated large trades |
|
|
95
|
+
| `trading_pair` | Trading pair tickers, pairs by platform, filtered search |
|
|
96
|
+
| `signal_data` | Win-rate strategy signals, alerts, abnormal price movements |
|
|
97
|
+
| `signal_manage` | Create and delete signal alerts |
|
|
98
|
+
| `news` | Paginated news articles, full article detail, RSS feed |
|
|
99
|
+
| `flash` | Flash news, industry flashes, exchange listing announcements |
|
|
100
|
+
| `hl_ticker` | Hyperliquid tickers (single coin or all) |
|
|
101
|
+
| `hl_whale` | HL whale positions, events, long/short directions |
|
|
102
|
+
| `hl_liquidation` | HL liquidation history, stats, top liquidated positions |
|
|
103
|
+
| `hl_open_interest` | HL OI summary, top coins, per-coin history |
|
|
104
|
+
| `hl_taker` | HL taker buy/sell delta, K-lines with taker volume |
|
|
105
|
+
| `hl_trader` | HL trader stats, best trades, performance, batch analytics |
|
|
106
|
+
| `hl_fills` | HL trade fills by address/order/TWAP, top trades |
|
|
107
|
+
| `hl_orders` | HL orders (latest, filled, top open, active stats, TWAP) |
|
|
108
|
+
| `hl_position` | HL position history, PnL, execution trace |
|
|
109
|
+
| `hl_portfolio` | HL portfolio curve, PnL, max drawdown, net flow |
|
|
110
|
+
| `hl_advanced` | HL generic info API, smart money finder, trader discovery |
|
|
111
|
+
| `guide` | Setup guides for API key, tier upgrade, exchange trading |
|
|
112
|
+
|
|
113
|
+
### Exchange Trading (11 tools, requires exchange API key)
|
|
114
|
+
|
|
115
|
+
| Tool | What it does |
|
|
116
|
+
|------|-------------|
|
|
117
|
+
| `exchange_info` | List supported exchanges, query trading pairs |
|
|
118
|
+
| `exchange_ticker` | Real-time ticker (single or batch) |
|
|
119
|
+
| `exchange_market_data` | Order book, recent trades, OHLCV candlesticks |
|
|
120
|
+
| `exchange_funding` | Current and historical funding rates |
|
|
121
|
+
| `account_status` | Account balance and open positions |
|
|
122
|
+
| `account_orders` | Query open/closed orders, trade history |
|
|
123
|
+
| `account_history` | Ledger, deposit, and withdrawal history |
|
|
124
|
+
| `create_order` | Place market or limit orders |
|
|
125
|
+
| `cancel_order` | Cancel single or all open orders |
|
|
126
|
+
| `set_trading_config` | Set leverage and margin mode |
|
|
127
|
+
| `transfer` | Transfer funds between accounts (spot/futures) |
|
|
128
|
+
|
|
129
|
+
## API Tiers
|
|
130
|
+
|
|
131
|
+
| Tier | Price | Rate Limit | Features |
|
|
132
|
+
|------|-------|------------|----------|
|
|
133
|
+
| Basic | Free | 10 req/min | Market data, news, K-lines, indexes |
|
|
134
|
+
| Normal | ¥99/mo | 60 req/min | + Funding rate, liquidation, OI |
|
|
135
|
+
| Premium | ¥299/mo | 120 req/min | + Depth, whale tracking, order flow |
|
|
136
|
+
| Professional | ¥999/mo | 300 req/min | + Full depth, all features |
|
|
137
|
+
|
|
138
|
+
Upgrade at [aicoin.com/opendata](https://www.aicoin.com/opendata). Your existing key is automatically upgraded.
|
|
137
139
|
|
|
138
140
|
## License
|
|
139
141
|
|
package/build/index.js
CHANGED
|
@@ -2133,7 +2133,7 @@ Add them to your MCP client config:
|
|
|
2133
2133
|
"mcpServers": {
|
|
2134
2134
|
"aicoin": {
|
|
2135
2135
|
"command": "npx",
|
|
2136
|
-
"args": ["-y", "@aicoin/mcp"],
|
|
2136
|
+
"args": ["-y", "@aicoin/aicoin-mcp"],
|
|
2137
2137
|
"env": {
|
|
2138
2138
|
"AICOIN_ACCESS_KEY_ID": "<your accessKeyId>",
|
|
2139
2139
|
"AICOIN_ACCESS_SECRET": "<your accessSecret>"
|
|
@@ -2235,7 +2235,7 @@ Common proxy ports:
|
|
|
2235
2235
|
"mcpServers": {
|
|
2236
2236
|
"aicoin": {
|
|
2237
2237
|
"command": "npx",
|
|
2238
|
-
"args": ["-y", "@aicoin/mcp"],
|
|
2238
|
+
"args": ["-y", "@aicoin/aicoin-mcp"],
|
|
2239
2239
|
"env": {
|
|
2240
2240
|
"AICOIN_ACCESS_KEY_ID": "<your opendata key>",
|
|
2241
2241
|
"AICOIN_ACCESS_SECRET": "<your opendata secret>",
|