https://github.com/truss44/mcp-crypto-price
A Model Context Protocol (MCP) server that provides real-time cryptocurrency analysis via CoinCap's API. Enables Claude and other MCP clients to fetch crypto prices, analyze market trends, and track historical data.
https://github.com/truss44/mcp-crypto-price
anthropic claude coincap crypto crypto-api cryptocurrency financial-data market-analysis mcp modelcontextprotocol nodejs real-time trading typescript
Last synced: 2 months ago
JSON representation
A Model Context Protocol (MCP) server that provides real-time cryptocurrency analysis via CoinCap's API. Enables Claude and other MCP clients to fetch crypto prices, analyze market trends, and track historical data.
- Host: GitHub
- URL: https://github.com/truss44/mcp-crypto-price
- Owner: truss44
- License: mit
- Created: 2025-01-02T02:32:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-21T23:21:00.000Z (3 months ago)
- Last Synced: 2026-03-22T10:50:35.734Z (3 months ago)
- Topics: anthropic, claude, coincap, crypto, crypto-api, cryptocurrency, financial-data, market-analysis, mcp, modelcontextprotocol, nodejs, real-time, trading, typescript
- Language: TypeScript
- Homepage:
- Size: 671 KB
- Stars: 39
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - **mcp-crypto-price** - A Model Context Protocol (MCP) server that provides real-time cryptocurrency analysis via CoinCap's API. Enables Claude and other MCP clients to fetch crypto prices, analyze market trends, and track historical data. `typescript` `anthropic` `claude` `coincap` `crypto` `npm install truss44/mcp-crypto-price` (๐ค AI/ML)
- metorial-index - Crypto Price & Market Analysis Server - Real-time cryptocurrency price data and market analysis are provided through an easy-to-use interface, leveraging the CoinCap API for comprehensive analysis and historical trends. (APIs and HTTP Requests)
- toolsdk-mcp-registry - โ mcp-crypto-price - time cryptocurrency data, enabling price tracking, market analysis, and historical trend examination for financial applications. (3 tools) (node) (Finance & Fintech / How to Submit)
- awesome-mcp-security - mcp-crypto-price - time cryptocurrency analysis via CoinCap's API. Ena... | 92 โ | 38 | [่กจ็คบ](https://agentseal.org/mcp/https-githubcom-truss44-mcp-crypto-price) | (ใซใใดใช / ๐ฐ <a name="finance--crypto"></a>้่ใปๆๅท่ณ็ฃ)
- awesome-mcp-servers - MCP Crypto Price - A Model Context Protocol server that provides real-time cryptocurrency analysis via CoinCats API for fetching crypto prices and tracking historical data. ([Read more](/details/mcp-crypto-price.md)) `Cryptocurrency` `Price Analysis` `Coincap` (Finance & Market Data Mcp Servers)
- awesome-web3-mcp-servers - truss44/mcp-crypto-price - A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. (Web3 MCP Categories / ๐ <a name="market-data"></a>Market Data)
README
# Crypto Price & Market Analysis MCP Server
[](https://smithery.ai/server/@truss44/mcp-crypto-price) [](https://www.npmjs.com/package/mcp-crypto-price)
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Supports both STDIO and Streamable HTTP transports.
## Requirements
- **Node.js 22.14+**
- **CoinCap API key** via `COINCAP_API_KEY`
## What's New
- **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))
- Streamable HTTP transport added (while keeping STDIO compatibility)
- Smithery CLI scripts to build and run the HTTP server
## Usage
Add this configuration to your Claude Desktop config file:
- **MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"mcp-crypto-price": {
"command": "npx",
"args": ["-y", "mcp-crypto-price"],
"env": {
"COINCAP_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
```
If your MCP client requires launching via `cmd.exe` on Windows:
```json
{
"mcpServers": {
"mcp-crypto-price": {
"command": "cmd",
"args": ["/c", "npx", "-y", "mcp-crypto-price"],
"env": {
"COINCAP_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
```
### Development scripts
```bash
npm run build # Compile TypeScript โ dist/
npm run format # Format source files with Prettier
npm run lint # Check for lint errors (ESLint + typescript-eslint)
npm run lint:fix # Auto-fix lint errors
npm run types:check # TypeScript type-check without emitting files
npm test # Run all tests
npm run test:coverage # Run tests with coverage report
npm run inspector # Open MCP inspector for interactive debugging
```
### Run as Streamable HTTP server
You can run the server over HTTP for environments that support MCP over HTTP streaming.
- Dev server (recommended during development):
```bash
npm run dev
```
- Build and run the HTTP server:
```bash
# Build (outputs to dist/)
npm run build
# Start the HTTP server
npm run start:http
```
- Build and run the STDIO server:
```bash
# Build (outputs to dist/)
npm run build
# Start the STDIO server
npm run start:stdio
```
The server listens on port 3000 by default (override with `PORT`). For clients that connect over HTTP (e.g. Smithery, Claude.ai), pass your API key as a query parameter:
```
http://localhost:3000/mcp?COINCAP_API_KEY=YOUR_API_KEY_HERE
```
For remote deployments:
```
https://mcp-crypto-price.codemonkeyinnovations.com/mcp?COINCAP_API_KEY=YOUR_API_KEY_HERE
```
## Required: CoinCap API Key
This server uses the CoinCap v3 API, which requires an API key. A **free tier** is available.
1. Sign up and get your API key at [pro.coincap.io/dashboard](https://pro.coincap.io/dashboard)
2. Add the key to your MCP client configuration:
- **STDIO**: via the `COINCAP_API_KEY` environment variable (see Usage examples above)
- **HTTP**: via the `COINCAP_API_KEY` query parameter in the connection URL (e.g. `/mcp?COINCAP_API_KEY=your_key`)
Without a valid API key, all tools will return an error with instructions on how to obtain one.
## Note for Smithery CLI users
This MCP server works directly via `npx` (configs above) and does not require Smithery.
If you do use the Smithery CLI, authenticate with `smithery auth login` or by setting `SMITHERY_API_KEY` in your environment. Recent versions of the Smithery CLI do not support passing API keys via `--key` (or older `--profile` patterns).
Launch Claude Desktop to start using the crypto analysis tools.
## Tools
#### get-crypto-price
Gets current price and 24h stats for any cryptocurrency, including:
- Current price in USD
- 24-hour price change
- Trading volume
- Market cap
- Market rank
#### get-market-analysis
Provides detailed market analysis including:
- Top 5 exchanges by volume
- Price variations across exchanges
- Volume distribution analysis
- VWAP (Volume Weighted Average Price)
#### get-historical-analysis
Analyzes historical price data with:
- Customizable time intervals (5min to 1 day)
- Support for up to 30 days of historical data
- Price trend analysis
- Volatility metrics
- High/low price ranges
#### get-top-assets
Lists top cryptocurrencies ranked by market cap, including:
- Current price in USD
- 24-hour price change
- Market cap and rank
- Configurable result count (1โ50, default 10)
#### get-technical-analysis
Returns the latest technical indicators for any cryptocurrency:
- SMA (Simple Moving Average) with period
- EMA (Exponential Moving Average) with period
- RSI (Relative Strength Index) with Overbought/Oversold/Neutral signal
- MACD with signal line, histogram, and Bullish/Bearish label
- VWAP (Volume Weighted Average Price, 24h)
#### get-rates
Returns USD-based conversion rates for fiat currencies and cryptocurrencies:
- All fiat currency rates (USD base)
- Top 10 cryptocurrency rates
- Optional `slug` parameter (e.g. `euro`, `bitcoin`) for a single rate lookup
#### get-exchanges
Lists top cryptocurrency exchanges ranked by 24h volume:
- Exchange name, rank, and 24h volume in USD
- Number of trading pairs and market share percentage
- Optional `exchangeId` parameter (e.g. `binance`) for single exchange details
- Optional `limit` parameter (1โ50, default 10)
## Sample Prompts
- "What's the current price of Bitcoin?"
- "Show me market analysis for ETH"
- "Give me the 7-day price history for DOGE"
- "What are the top exchanges trading BTC?"
- "Show me the price trends for SOL with 1-hour intervals"
- "What are the technical indicators for ETH right now?"
- "What's the current EUR to USD exchange rate?"
- "Which crypto exchanges have the highest 24h volume?"
## Project Inspiration
This project was inspired by Alex Andru's [coincap-mcp](https://github.com/QuantGeekDev/coincap-mcp) project.
## License
This project is licensed under the MIT License