cryptosense-mcp
CryptoSense MCP
Real-time crypto market intelligence for AI assistants.
CryptoSense MCP wraps the CoinGecko free API (no key needed) into a production-ready Model Context Protocol server built with FastMCP. Connect it to Claude, Cursor, Windsurf, or any MCP-compatible client and ask natural-language questions about crypto markets.
What this MCP does
Tool | Description |
| Current price, market cap, volume & 24h change for any coin |
| Top 10 trending coins by search volume (last 24 h) |
| Global market cap, BTC/ETH dominance, 24h change |
| Top N coins by market cap with full stats |
| Side-by-side comparison of 2+ coins |
| USD value of your holdings with best/worst performer |
All tools require a CryptoSense API key (see Authentication).
Related MCP server: mcp-market-data
Installation
Option A — local with uv (recommended)
# 1. Clone
git clone https://github.com/your-org/cryptosense-mcp.git
cd cryptosense-mcp
# 2. Create venv and install
uv venv && uv pip install -e .
# 3. Copy and edit environment variables
cp .env.example .env
# Edit .env: set CMC_API_KEY if you have one, adjust MCP_PORT if needed
# 4. Generate your first API key
python -c "
import asyncio
from src.cryptosense.auth import generate_api_key
key = asyncio.run(generate_api_key('you@example.com'))
print('Your API key:', key)
"
# 5. Start the server
cryptosense-mcp
# or: python -m cryptosense.serverOption B — local with pip
pip install -e .
cp .env.example .env
python -m cryptosense.serverOption C — Docker
docker build -t cryptosense-mcp .
docker run -p 8000:8000 \
-e CMC_API_KEY=your_key \
-v cryptosense-data:/app/data \
cryptosense-mcpAuthentication
Every tool call requires an api_key parameter with a valid CryptoSense key.
Generate a key
import asyncio
from cryptosense.auth import generate_api_key
key = asyncio.run(generate_api_key(email="you@example.com", plan="free"))
print(key) # cs_Abc123...Keys are stored in keys.db (SQLite). The keys.db file lives next to the server process (or at DATABASE_URL from .env).
CoinGecko API key (optional)
CoinGecko's free public API works without a key. If you experience rate limiting (30 calls/min on the free tier), sign up at https://www.coingecko.com/en/api for a free Demo API key and add it to your .env:
CG_API_KEY=CG-xxxxxxxxxxxxxxxxxxxxThe server currently uses the public endpoint. If you add a key, pass it via the
x-cg-demo-api-keyheader in_fetch()calls.
Configure Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"cryptosense": {
"command": "python",
"args": ["-m", "cryptosense.server"],
"cwd": "/absolute/path/to/cryptosense-mcp",
"env": {
"MCP_HOST": "127.0.0.1",
"MCP_PORT": "8000"
}
}
}
}Or if the server is already running remotely, use the HTTP transport URL:
{
"mcpServers": {
"cryptosense": {
"url": "http://localhost:8000/mcp"
}
}
}Configure Cursor
Open Settings → MCP → Add new MCP server and enter:
Field | Value |
Name | CryptoSense |
Type | HTTP |
URL |
|
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"cryptosense": {
"url": "http://localhost:8000/mcp"
}
}
}Configure Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"cryptosense": {
"serverUrl": "http://localhost:8000/mcp"
}
}
}Tool Reference & Example Prompts
price — Get coin price
"What is the price of Bitcoin?" "How much is Ethereum worth in EUR?" "Show me Solana's 24h change and market cap."
price(coin="bitcoin", currency="usd", api_key="cs_...")
# → { "coin": "bitcoin", "price": 67420.0, "market_cap": 1.32T, "change_24h_percent": 2.4, ... }top_coins — Top coins by market cap
"Show me top 10 coins." "What are the top 20 cryptocurrencies by market cap?" "List the 5 biggest coins in EUR."
top_coins(limit=10, currency="usd", api_key="cs_...")
# → { "coins": [{ "rank": 1, "name": "Bitcoin", "price": 67420, ... }, ...] }trending — Trending now
"What is trending in crypto today?" "Which coin is everyone searching for?" "Show me the hottest altcoins right now."
trending(api_key="cs_...")
# → { "trending_coins": [{ "name": "Pepe", "symbol": "PEPE", "market_cap_rank": 54, ... }] }portfolio_value — Portfolio calculator
"Calculate my portfolio: 0.5 BTC, 5 ETH, 100 SOL." "How much is my crypto worth? I have 1 bitcoin and 10 ethereum." "What is my total if I hold 0.1 BTC, 500 DOGE, and 2 ETH?"
portfolio_value(
holdings={"bitcoin": 0.5, "ethereum": 5, "solana": 100},
currency="usd",
api_key="cs_...",
)
# → { "total_value": 54230.00, "best_performer": {...}, "breakdown": [...] }compare — Side-by-side comparison
"Compare Bitcoin and Ethereum." "Which performs better: Solana, Avalanche, or Polkadot?" "Show me BTC vs ETH vs BNB."
compare(coins=["bitcoin", "ethereum", "solana"], currency="usd", api_key="cs_...")
# → { "comparison": [...], "best_performer_24h": "solana", "worst_performer_24h": "bitcoin" }market_overview — Global snapshot
"What is the total crypto market cap?" "What is Bitcoin's market dominance today?" "Give me a global crypto summary."
market_overview(api_key="cs_...")
# → { "total_market_cap_usd": 2.45T, "btc_dominance_percent": 52.3, ... }Environment Variables
Variable | Default | Description |
| — | CoinMarketCap API key (optional, reserved for future CMC tools) |
|
| Server bind address |
|
| Server port |
|
| Path to the SQLite database |
| — | Set to |
Error Handling
All tools return a friendly {"error": "..."} dict on failure — no stack traces are ever returned to the client. Handled conditions:
Invalid / missing API key → prompt to generate one
Coin not found → suggests using the full CoinGecko ID
Rate limit (429) → asks to wait and retry
Network errors → descriptive message
Invalid parameters → caught before the API call
License
MIT
Available Tools
6 toolscompareA
Compare two or more cryptocurrencies side by side.
Shows price, market cap, 24h volume, and 24h performance for each coin.
Inputs: coins (required), api_key, currency. Returns: object
market_overviewB
Get the global crypto market overview.
Includes total market cap, 24h volume, BTC dominance, ETH dominance, and active coin/market counts.
Example prompts:
"What is the total crypto market cap?"
"Give me a global crypto market summary."
"What is Bitcoin's market dominance?"
Inputs: api_key. Returns: object
portfolio_valueB
Calculate the current USD value of a crypto portfolio.
Inputs: holdings (required), api_key, currency. Returns: object
priceA
Get the current price, 24h change, market cap, and volume for any cryptocurrency.
Example prompts:
"What is the price of Bitcoin?"
"How much is Ethereum worth in EUR?"
"Show me Solana's market cap and 24h change."
Inputs: coin (required), api_key, currency. Returns: object
top_coinsB
Get the top N cryptocurrencies by market cap with price and stats.
Inputs: limit, api_key, currency. Returns: object
trendingA
Get the top 10 trending cryptocurrencies on CoinGecko right now.
Trending is based on search volume over the last 24 hours.
Example prompts:
"What is trending in crypto today?"
"Show me the hottest coins right now."
"Which crypto is everyone searching for?"
Inputs: api_key. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct query type: single price lookup, trending list, global stats, top N, comparison, and portfolio calculation. Overlap is minimal, with trending and top_coins differing by search volume versus market cap.
All names follow a consistent lowercase_with_underscores style, but the grammatical pattern is mixed: nouns (price, market_overview), gerund (trending), adjective+noun (top_coins), verb (compare), and compound noun (portfolio_value). No verb_noun pattern is established, though names remain readable.
Six tools is well-scoped for a crypto market data server, fitting comfortably within the ideal 3-15 range. Each tool has a clear purpose without redundancy.
The surface covers single-coin pricing, market lists, global overview, comparison, and portfolio valuation, covering core workflows. Historical price data and detailed coin metadata are missing, but these are not essential to the server's apparent purpose.
Maintenance
Related MCP Connectors
Crypto market & research MCP for AI agents: prices, derivatives, options, on-chain, sentiment, news.
Your agent needs crypto prices it can rely on — spot, ranked market tables, history, OHLC, per-venue tickers, and what is trending right now. **What you can ask for** • "What is the price of these 20 tokens in USD and EUR right now?" • "Give me the top 100 by market cap with 24h and 7d change." • "Chart this coin's price over the last year, hourly." • "Where does this token trade, and at what spread per venue?" • "What is trending on CoinGecko today?" **How to use it** Point any MCP client at https://mcp.aisa.one/crypto-market-data/mcp and sign in with OAuth — there is no key to create or paste. 21 CoinGecko tools: simple price and token price by contract, supported currencies, coin list and detail, ranked markets, history, market charts and ranges, OHLC, per-coin tickers, categories, exchanges and their tickers, token data and charts, and trending. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Price the token here, then ask the same agent what X is posting about it — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/finance/mcp for equities, crypto and prediction markets in one place.
Live crypto + IDX stock market intelligence for AI agents — 19 tools, no API key.
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenancemcprice ⚡ MCP Server for real-time stock & crypto prices in Claude Desktop / Cursor. Stocks → Yahoo Finance (no API key needed) Crypto → Binance Public API (no API key needed) Companion to: revolut-pulse (insider trades)-
- AlicenseAqualityDmaintenanceLive market data for AI agents. 8 tools: real-time crypto prices, OHLCV candles, order books, market cap rankings, trending coins, technical analysis (RSI/SMA/z-score), asset comparison, and Fear & Greed index. Zero API keys, zero dependencies.281MIT
- AlicenseAqualityCmaintenanceFree MCP server for real-time cryptocurrency data. Get token prices, market overview, top movers, historical charts, and detailed token info directly in Claude Code, Cursor, or any MCP-compatible AI tool. Powered by CoinGecko with 70+ token mappings and built-in caching.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query cryptocurrency data including prices, market cap, rankings, categories, and global metrics from CoinMarketCap via MCP tools.68 npmMIT