mcp-crypto-price 3.7.0 → 4.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 +56 -54
- package/dist/http.js +369 -13
- package/dist/index.js +27 -14
- package/dist/mcp-crypto-price-4.0.1.tgz +0 -0
- package/dist/tools/asset-info.js +26 -0
- package/dist/tools/candlestick.js +26 -0
- package/dist/tools/compare.js +24 -0
- package/dist/tools/exchanges.js +35 -0
- package/dist/tools/global-metrics.js +19 -0
- package/dist/tools/historical.js +29 -0
- package/dist/tools/market.js +32 -0
- package/dist/tools/price-conversion.js +14 -0
- package/dist/tools/price.js +18 -0
- package/dist/tools/rates.js +29 -0
- package/dist/tools/search-assets.js +18 -0
- package/dist/tools/technical-analysis.js +56 -0
- package/dist/tools/top-assets.js +22 -0
- package/package.json +1 -1
- package/dist/mcp-crypto-price-3.7.0.tgz +0 -0
package/README.md
CHANGED
|
@@ -17,7 +17,9 @@ A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency
|
|
|
17
17
|
- **BREAKING**: CoinCap v2 API removed. Now uses v3 API exclusively. A `COINCAP_API_KEY` is required (free tier available at [pro.coincap.io/dashboard](https://pro.coincap.io/dashboard))
|
|
18
18
|
- Streamable HTTP transport added (while keeping STDIO compatibility)
|
|
19
19
|
- Smithery CLI scripts to build and run the HTTP server
|
|
20
|
-
- **6 new tools**: `search
|
|
20
|
+
- **6 new tools**: `assets.search`, `market.global`, `assets.compare`, `analysis.candlestick`, `price.convert`, `assets.info`
|
|
21
|
+
- **Dot-notation tool naming**: All tools organized into a navigable tree (`price.*`, `market.*`, `assets.*`, `analysis.*`)
|
|
22
|
+
- **Output schemas**: All tools now declare `outputSchema` with `structuredContent` for type-safe responses
|
|
21
23
|
- **MCP best practices**: `isError` flag on validation errors, server description, and `asset://{symbol}` resource template
|
|
22
24
|
|
|
23
25
|
## Usage
|
|
@@ -134,7 +136,7 @@ Launch Claude Desktop to start using the crypto analysis tools.
|
|
|
134
136
|
|
|
135
137
|
## Tools
|
|
136
138
|
|
|
137
|
-
#### get
|
|
139
|
+
#### price.get
|
|
138
140
|
|
|
139
141
|
Gets current price and 24h stats for any cryptocurrency, including:
|
|
140
142
|
- Current price in USD
|
|
@@ -143,7 +145,14 @@ Gets current price and 24h stats for any cryptocurrency, including:
|
|
|
143
145
|
- Market cap
|
|
144
146
|
- Market rank
|
|
145
147
|
|
|
146
|
-
####
|
|
148
|
+
#### price.convert
|
|
149
|
+
|
|
150
|
+
Converts a cryptocurrency amount into any fiat currency:
|
|
151
|
+
- Uses real-time price data and USD-based exchange rates
|
|
152
|
+
- Parameters: `symbol` (e.g. `BTC`), `amount` (default 1), `currency` (default `usd`)
|
|
153
|
+
- Example: 2.5 BTC in EUR
|
|
154
|
+
|
|
155
|
+
#### market.analysis
|
|
147
156
|
|
|
148
157
|
Provides detailed market analysis including:
|
|
149
158
|
- Top 5 exchanges by volume
|
|
@@ -151,40 +160,23 @@ Provides detailed market analysis including:
|
|
|
151
160
|
- Volume distribution analysis
|
|
152
161
|
- VWAP (Volume Weighted Average Price)
|
|
153
162
|
|
|
154
|
-
####
|
|
155
|
-
|
|
156
|
-
Analyzes historical price data with:
|
|
157
|
-
- Customizable time intervals (5min to 1 day)
|
|
158
|
-
- Support for up to 30 days of historical data
|
|
159
|
-
- Price trend analysis
|
|
160
|
-
- Volatility metrics
|
|
161
|
-
- High/low price ranges
|
|
162
|
-
|
|
163
|
-
#### get-top-assets
|
|
164
|
-
|
|
165
|
-
Lists top cryptocurrencies ranked by market cap, including:
|
|
166
|
-
- Current price in USD
|
|
167
|
-
- 24-hour price change
|
|
168
|
-
- Market cap and rank
|
|
169
|
-
- Configurable result count (1–50, default 10)
|
|
170
|
-
|
|
171
|
-
#### get-technical-analysis
|
|
163
|
+
#### market.global
|
|
172
164
|
|
|
173
|
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
165
|
+
Provides an overview of the entire cryptocurrency market:
|
|
166
|
+
- Total market capitalization across all assets
|
|
167
|
+
- 24-hour trading volume
|
|
168
|
+
- Number of active cryptocurrencies
|
|
169
|
+
- Bitcoin dominance percentage
|
|
170
|
+
- Top gainers and losers
|
|
179
171
|
|
|
180
|
-
####
|
|
172
|
+
#### market.rates
|
|
181
173
|
|
|
182
174
|
Returns USD-based conversion rates for fiat currencies and cryptocurrencies:
|
|
183
175
|
- All fiat currency rates (USD base)
|
|
184
176
|
- Top 10 cryptocurrency rates
|
|
185
177
|
- Optional `slug` parameter (e.g. `euro`, `bitcoin`) for a single rate lookup
|
|
186
178
|
|
|
187
|
-
####
|
|
179
|
+
#### market.exchanges
|
|
188
180
|
|
|
189
181
|
Lists top cryptocurrency exchanges ranked by 24h volume:
|
|
190
182
|
- Exchange name, rank, and 24h volume in USD
|
|
@@ -192,50 +184,60 @@ Lists top cryptocurrency exchanges ranked by 24h volume:
|
|
|
192
184
|
- Optional `exchangeId` parameter (e.g. `binance`) for single exchange details
|
|
193
185
|
- Optional `limit` parameter (1–50, default 10)
|
|
194
186
|
|
|
195
|
-
####
|
|
187
|
+
#### assets.top
|
|
188
|
+
|
|
189
|
+
Lists top cryptocurrencies ranked by market cap, including:
|
|
190
|
+
- Current price in USD
|
|
191
|
+
- 24-hour price change
|
|
192
|
+
- Market cap and rank
|
|
193
|
+
- Configurable result count (1–50, default 10)
|
|
194
|
+
|
|
195
|
+
#### assets.search
|
|
196
196
|
|
|
197
197
|
Searches for cryptocurrencies by name or symbol with fuzzy matching:
|
|
198
198
|
- Returns matching assets with symbol, name, price, and rank
|
|
199
199
|
- Configurable result count (1–50, default 10)
|
|
200
200
|
- Example: search "bit" returns Bitcoin, Bitcoin Cash, BitTorrent, etc.
|
|
201
201
|
|
|
202
|
-
####
|
|
202
|
+
#### assets.info
|
|
203
203
|
|
|
204
|
-
|
|
205
|
-
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
-
|
|
209
|
-
- Top gainers and losers
|
|
204
|
+
Returns detailed metadata for a single cryptocurrency:
|
|
205
|
+
- ID, rank, symbol, and name
|
|
206
|
+
- Price, 24h change, market cap, and volume
|
|
207
|
+
- Circulating supply and max supply
|
|
208
|
+
- VWAP (24h)
|
|
210
209
|
|
|
211
|
-
#### compare
|
|
210
|
+
#### assets.compare
|
|
212
211
|
|
|
213
212
|
Compares 2–5 cryptocurrencies side by side:
|
|
214
213
|
- Price, 24h change, market cap, volume, and rank for each asset
|
|
215
214
|
- Comma-separated symbols (e.g. `BTC,ETH,SOL`)
|
|
216
215
|
- Highlights best performer by 24h change
|
|
217
216
|
|
|
218
|
-
####
|
|
217
|
+
#### analysis.historical
|
|
219
218
|
|
|
220
|
-
|
|
221
|
-
-
|
|
222
|
-
-
|
|
223
|
-
-
|
|
219
|
+
Analyzes historical price data with:
|
|
220
|
+
- Customizable time intervals (5min to 1 day)
|
|
221
|
+
- Support for up to 30 days of historical data
|
|
222
|
+
- Price trend analysis
|
|
223
|
+
- Volatility metrics
|
|
224
|
+
- High/low price ranges
|
|
224
225
|
|
|
225
|
-
####
|
|
226
|
+
#### analysis.technical
|
|
226
227
|
|
|
227
|
-
|
|
228
|
-
-
|
|
229
|
-
-
|
|
230
|
-
-
|
|
228
|
+
Returns the latest technical indicators for any cryptocurrency:
|
|
229
|
+
- SMA (Simple Moving Average) with period
|
|
230
|
+
- EMA (Exponential Moving Average) with period
|
|
231
|
+
- RSI (Relative Strength Index) with Overbought/Oversold/Neutral signal
|
|
232
|
+
- MACD with signal line, histogram, and Bullish/Bearish label
|
|
233
|
+
- VWAP (Volume Weighted Average Price, 24h)
|
|
231
234
|
|
|
232
|
-
####
|
|
235
|
+
#### analysis.candlestick
|
|
233
236
|
|
|
234
|
-
|
|
235
|
-
-
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
- VWAP (24h)
|
|
237
|
+
Retrieves OHLCV candlestick data from a specific exchange:
|
|
238
|
+
- Open, high, low, close, and volume for each candle
|
|
239
|
+
- Configurable exchange (e.g. `binance`), quote currency (e.g. `usd`), and interval (`5m`, `15m`, `1h`, `6h`, `1d`)
|
|
240
|
+
- Supports 1–30 days of historical candles
|
|
239
241
|
|
|
240
242
|
## Resources
|
|
241
243
|
|