CryptoScholar MCP server

CryptoScholar MCP server

cryptoscholar•bycryptographer11

A Model Context Protocol server that brings live cryptocurrency technical analysis, ranking, correlation, macro context, watchlists, alerts, and reports into Claude.

License: MIT•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Runs full technical analysis on a coin, fetching 300 days of OHLCV candles from Binance with CoinGecko fallback and computing trend, momentum, volatility, relative strength, funding rate, regime, and a Trend Strength Score.
  • •Ranks a supplied list of symbols by Trend Strength Score in parallel, or fetches the top 50 coins by market cap from CoinGecko and ranks those while filtering stablecoins, wrapped tokens, and low-liquidity coins.
  • •Computes pairwise Pearson correlation of 30-day daily returns across 2–20 coins, returning a correlation matrix, high-correlation clusters, and uncorrelated pairs.
  • •Stores persistent named watchlists in SQLite with add, remove, show, list, scan, and TSS/regime alert tools.

BEST FOR

  • •Assessing whether a coin's trend, momentum, and relative strength favor a swing trade setup.
  • •Comparing multiple coins by trend strength or reviewing diversification with correlation analysis.
  • •Monitoring a saved watchlist and checking alerts when TSS thresholds or regimes change.

ABOUT CRYPTOSCHOLAR

CryptoScholar MCP server is cataloged as an MCP server attributed to cryptographer11. A Model Context Protocol server that brings live cryptocurrency technical analysis, ranking, correlation, macro context, watchlists, alerts, and reports into Claude. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for CryptoScholar MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Do I need an API key for market data?

No API key is needed for market data; ANTHROPIC_API_KEY is required only for the debate and generate_report tools.

Which coins can be analyzed?

It works with any coin listed on CoinGecko or Binance by passing the ticker symbol, resolving other symbols through CoinGecko search and falling back to CoinGecko OHLCV when unavailable on Binance.

Upstream README

View this exact version on GitHub

README.md · 4a55b62ea934 · Fetched 2026-11-13 11:42:37 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

CryptoScholar

Crypto technical analysis, directly inside Claude. CryptoScholar is a Model Context Protocol (MCP) server that gives Claude real-time TA capabilities — no chart-switching, no copy-pasting data, no context loss.

Ask Claude "Is SOL set up for a swing trade?" and it fetches live data from Binance, runs a full indicator suite, scores it, and delivers a grounded bull/bear debate — all in one response.


What it does

CryptoScholar exposes 15 MCP tools that Claude can call natively:

analyze_coin

Full technical analysis snapshot for any coin. Fetches 300 days of real OHLCV candles from Binance (with CoinGecko fallback) and computes:

IndicatorDetails
TrendEMA-20, EMA-50, EMA-200 alignment + weekly EMA slope
MomentumRSI-14, MACD (line / signal / histogram), ADX-14
VolatilityATR-14, Bollinger Band width, Historical Volatility (20-day annualised)
Relative StrengthCoin vs BTC (20-day ratio change)
Multi-timeframe4H EMA alignment — ±3 TSS bonus/penalty based on 4H EMA-20 vs EMA-50
RSI DivergenceBullish / bearish / none — price vs RSI extremes over last 30 bars
OBV TrendOn-Balance Volume direction (rising / falling / flat) — ±2 TSS confirmation bonus
Funding RateCurrent USDT-M perpetual funding rate — positive extremes = over-leveraged longs
RegimeLow / mid / high volatility — classified by 3-state GaussianHMM (falls back to rule-based)
TSSTrend Strength Score — 0–100 composite (40% trend + 30% momentum + 30% RS ± MTF ± OBV)

rank_coins

Pass a list of symbols and get them back ranked by TSS. Runs in parallel (up to 8 workers) for fast results on large lists. Each result includes TSS, regime, EMA alignment, 4H MTF alignment, RSI divergence, OBV trend, funding rate, RSI-14, ADX-14, and RS vs BTC.

top_coins

No symbol list needed. Fetches the top 50 coins by market cap from CoinGecko and returns them ranked by TSS. Smart filtering automatically removes:

  • Stablecoins (USDT, USDC, DAI, etc.)
  • Wrapped / synthetic tokens (WBTC, WETH, stETH, cbBTC, etc.)
  • Low-liquidity coins with < $10M daily volume

correlate_coins

Compute pairwise Pearson correlation of 30-day daily returns across 2–20 coins. Returns the full correlation matrix, high-correlation clusters (>0.85), and uncorrelated pairs (<0.30) — useful for portfolio diversification analysis.

market_context

Macro market signals to frame individual coin analysis. Uses CoinGecko global data, DefiLlama stablecoin supply, and Alternative.me Fear & Greed Index. Returns:

SignalDescription
BTC dominanceCurrent % and 30-day change — falling = capital rotating to alts
ETH/BTC ratio20-day trend — rising = broadening rally
TOTAL3Altcoin market cap (ex-BTC, ex-ETH) 30-day change
Stablecoin supplyTotal stablecoin market cap and 30-day trend (rising = more buying power)
Fear & GreedAlternative.me index (0–100) — extreme fear/greed applies ±5 modifier to MRS
ARSAltcoin Rotation Score 0–100 — how favourable macro is for alts
MRSMarket Readiness Score 0–100 — overall market readiness for upside moves

debate

Claude reads the live TA data and generates a structured bull/bear debate grounded in actual indicator values — not hallucinated opinion. Returns:

  • Bull case — what the technicals say in favour
  • Bear case — what could go wrong
  • Bottom line — one-sentence synthesis

Watchlist tools

Persistent coin lists stored in SQLite (~/.cryptoscholar/watchlist.db).

ToolWhat it does
watchlist_addAdd symbols to a named list (creates the list if needed)
watchlist_removeRemove symbols; also clears their alerts
watchlist_showShow all symbols + configured alerts for a list
watchlist_listsList all named watchlists with symbol counts
watchlist_scanRun a full TSS analysis on every coin in the list — parallel digest view
alert_setSet a tss_above, tss_below, or regime_change alert on any symbol
alert_checkFetch live TA for all alerted symbols, report which alerts fired, update baseline

train_regime_model

Manually trigger a retrain of the HMM volatility regime model on fresh BTC price history. The model auto-retrains every 7 days automatically — use this after a major market structure shift to force an immediate update. Accepts an optional force=True flag to bypass the 7-day cooldown.

generate_report

Generate a structured analysis report for one or more coins. Uses a 3-stage pipeline:

  1. Cluster — groups TA signals into thematic sections (trend, momentum, volume/on-chain, volatility, relative strength)
  2. Write — Claude writes a narrative paragraph for each section based on the clustered signals
  3. Assemble — combines sections into a formatted markdown report with a key statistics table at the top

Supports single-coin deep-dives and multi-coin comparison reports (e.g. ["BTC", "ETH", "SOL"]). Pass output_format="json" for structured output instead of markdown. Up to 10 symbols per call.

No API key required for market data. ANTHROPIC_API_KEY is needed for the debate and generate_report tools.


What's new in v0.7.1

  • Requires the mcp 2.x SDK (mcp>=2.2.0,<3). The server now runs on MCPServer (formerly FastMCP). Claude Code 2.1.282+ opens connections with the 2026 server/discover probe, which mcp 1.x logged as a "Failed to validate request" warning before falling back. Existing installs: pip install -U 'mcp>=2.2.0,<3'. Tool names and input schemas are unchanged.
  • Fix: regime model file is written atomically. The HMM model was saved in place, so a concurrent call could read an empty file and silently fall back to the rule-based classifier until the next retrain; retraining now also runs once under concurrent calls (2.x runs tools on worker threads).
  • requirements.txt now lists hmmlearn and scikit-learn, which pyproject.toml already required.

What's new in v0.7.0

  • generate_report tool (tool #15) — 3-stage Cluster → Write → Assemble pipeline that produces a formatted markdown report for any coin or list of coins. Stage 1 groups TA signals into thematic clusters; Stage 2 uses Claude to write narrative sections; Stage 3 assembles a report with a key statistics table.
  • Multi-coin comparison — pass up to 10 symbols and get a comparative report with per-coin summaries, a strongest/weakest setup call, and an overall comparative summary.
  • JSON output option — pass output_format="json" to get the full structured report dict instead of markdown, useful for downstream processing.
  • Parallel analysis — coin data for multi-symbol reports is fetched in parallel (up to 8 workers) before the Claude write stage.

Quick start

Requirements: Python 3.11+, mcp SDK 2.2+

git clone https://github.com/cryptographer11/cryptoscholar.git
cd cryptoscholar
make install
cp .env.example .env
# Add your ANTHROPIC_API_KEY to .env (only needed for debate tool)
cryptoscholar

Add to Claude Code

In ~/.claude/.mcp.json:

{
  "mcpServers": {
    "cryptoscholar": {
      "command": "python",
      "args": ["-m", "cryptoscholar"],
      "env": {
        "ANTHROPIC_API_KEY": "your_key_here"
      }
    }
  }
}

Restart Claude Code. You can now ask:

  • "Analyze BTC for me"
  • "Rank ETH, SOL, AVAX, and LINK by trend strength"
  • "Show me the top 50 coins ranked by trend strength"
  • "What does the macro market look like right now?"
  • "Give me the bull and bear case for DOGE based on current TA"
  • "How correlated are BTC, ETH, SOL, and AVAX over the last month?"
  • "Add BTC, ETH, and SOL to my main watchlist"
  • "Set an alert on BTC if TSS drops below 35"
  • "Check my alerts"
  • "Give me the digest for my main watchlist"

Screenshots


Ranking BTC, ETH, and XRP by Trend Strength Score — then drilling into the bear case for XRP

rank_coins scores each coin across trend, momentum, and relative strength vs BTC and returns them sorted by TSS. Here BTC leads at 63.7, ETH at 53.0, and XRP trails at 47.8 — all in low_vol regime. Asking for the XRP bear case immediately after surfaces the specific technical reasons: a steepest weekly EMA slope, faltering MACD, and ETH underperformance vs BTC flagged as early institutional exit pressure.



Full technical analysis snapshot for SOL — indicators, scoring, and bear case in one response

analyze_coin returns a structured breakdown covering EMA stack alignment, RSI, MACD, ADX, ATR, Bollinger Band width, OBV trend, funding rate, and relative strength vs BTC — all computed from 300 days of live Binance candles. Claude then reads the raw indicator values to generate a grounded bear case: EMA-200 resistance, weekly slope steepening, and MACD crossdown risk. No chart-switching, no copy-pasting — the full TA context is already in Claude's window.


Example output

market_context()

{
  "btc_price_30d_change_pct": -8.4,
  "btc_dominance_current": 54.2,
  "btc_dominance_30d_change_pct": 2.1,
  "eth_btc_20d_change_pct": -5.3,
  "total3_30d_change_pct": -14.6,
  "stablecoin_supply_usd": 196500000000,
  "stablecoin_30d_change_pct": 2.8,
  "fear_greed_value": 22,
  "fear_greed_label": "Fear",
  "btc_trend_score": 35.0,
  "ars": 28.5,
  "stablecoin_score": 60.0,
  "fear_greed_modifier": 0.0,
  "mrs": 42.3
}

analyze_coin("SOL")

{
  "symbol": "SOL",
  "data_source": "binance",
  "price": 142.30,
  "tss": 79.2,
  "regime": "mid_vol",
  "regime_source": "hmm",
  "vrs": 55,
  "ema_alignment": "full_bull",
  "mtf_alignment_4h": "bullish",
  "rsi_divergence": "none",
  "obv_trend": "rising",
  "funding_rate": 0.00012,
  "indicators": {
    "rsi_14": 61.4,
    "macd_hist": 0.42,
    "adx_14": 28.1,
    "atr_14": 6.82,
    "hv_20": 68.4,
    "rs_btc": 4.2,
    "bb_width": 0.18,
    "rsi_divergence": "none",
    "obv_trend": "rising"
  }
}

correlate_coins(["BTC", "ETH", "SOL", "BNB"])

{
  "symbols": ["BTC", "ETH", "SOL", "BNB"],
  "lookback_days": 30,
  "matrix": {
    "BTC": {"BTC": 1.0, "ETH": 0.91, "SOL": 0.78, "BNB": 0.83},
    "ETH": {"BTC": 0.91, "ETH": 1.0, "SOL": 0.82, "BNB": 0.79},
    "SOL": {"BTC": 0.78, "ETH": 0.82, "SOL": 1.0, "BNB": 0.71},
    "BNB": {"BTC": 0.83, "ETH": 0.79, "SOL": 0.71, "BNB": 1.0}
  },
  "high_correlation_pairs": [
    {"symbol_a": "BTC", "symbol_b": "ETH", "correlation": 0.91}
  ],
  "uncorrelated_pairs": []
}

debate("SOL")

{
  "bull_case": "SOL is in a full bullish EMA stack with RSI at 61 — healthy momentum without overbought conditions. ADX at 28 confirms trending structure, and relative strength vs BTC is positive at +4.2%, signalling capital rotation into SOL. Rising OBV confirms volume is flowing in on up-days.",
  "bear_case": "Historical volatility at 68% is elevated, and Bollinger Band width is widening — conditions that often precede sharp reversals. A break below EMA-20 would invalidate the current trend structure. Funding rate at 0.012% hints at building long leverage.",
  "bottom_line": "Technicals are constructive for continuation but volatility is high; position sizing should reflect the risk."
}

Configuration

VariableDefaultDescription
ANTHROPIC_API_KEY—Required for the debate tool
CRYPTOSCHOLAR_MODELclaude-haiku-4-5-20251001Claude model used for debates (swap for Sonnet/Opus for deeper analysis)
CRYPTOSCHOLAR_LOG_DIR/tmpDirectory for rotating log files
CRYPTOSCHOLAR_DATA_DIR~/.cryptoscholarDirectory for watchlist SQLite DB

Supported coins

CryptoScholar works with any coin listed on CoinGecko or Binance — just pass the ticker symbol. No configuration needed.

A built-in symbol map covers 65 major coins for instant resolution — the full top-50 market cap universe including BTC, ETH, SOL, BNB, XRP, ADA, AVAX, DOGE, LINK, DOT, SUI, TIA, WIF, BONK, and more. For anything outside that list, CryptoScholar automatically queries CoinGecko's search API to resolve the symbol and falls back to CoinGecko OHLCV if the coin isn't available on Binance.

In practice: if it trades somewhere and has a CoinGecko listing, it will work.


Architecture

Stateless by design — no database, no scheduler. Every tool call fetches fresh data.

Claude (MCP call)
    └── server.py              MCPServer entry point
         ├── tools/
         │    ├── analyze.py        Orchestrates fetch → indicators → regime → score
         │    ├── rank.py           Runs analyze_coin in parallel, sorts by TSS
         │    ├── top_coins.py      Fetches top N by market cap, delegates to rank_coins
         │    ├── correlate.py      Pairwise Pearson correlation of 30-day returns
         │    ├── watchlist.py      Watchlist + alert tools (7 tools)
         │    ├── debate.py         Builds prompt from TA data, calls Claude API
         │    └── market_context.py ARS + MRS + macro signals
         ├── ta/
         │    ├── indicators.py     pandas-ta + custom HV / RS / OBV functions
         │    ├── scoring.py        TSS: trend + momentum + RS ± MTF ± OBV bonuses
         │    ├── regime.py         HMM-first regime classifier with rule-based fallback
         │    └── hmm_regime.py     GaussianHMM train / persist / classify / auto-retrain
         ├── market/
         │    └── context.py        BTC dominance, ETH/BTC, TOTAL3, F&G, ARS, MRS
         └── data/
              ├── binance.py        Binance klines + funding rate (1,200 req/min, no auth)
              ├── coingecko.py      CoinGecko client, 5-min TTL cache, OHLCV builder
              ├── alternative_me.py Fear & Greed Index (Alternative.me, 1-hr cache)
              ├── defillama.py      DefiLlama stablecoin supply history
              └── watchlist_db.py   SQLite watchlist + alert persistence (~/.cryptoscholar/)

Data flow for analyze_coin("SOL"):

  1. Map symbol → CoinGecko ID (SOL → solana)
  2. Fetch 300-day daily OHLCV from Binance (SOLUSDT klines); fall back to CoinGecko if unavailable
  3. Fetch 200-bar 4H OHLCV from Binance for multi-timeframe analysis
  4. Fetch USDT-M perpetual funding rate from Binance Futures (null if no perpetual)
  5. Compute all daily indicators via pandas-ta (EMA, RSI, MACD, ADX, ATR, BB, HV, OBV, RS vs BTC)
  6. Compute OBV trend (EMA-10 of OBV slope over last 5 bars)
  7. Compute 4H indicators (EMA-20/50) and derive MTF alignment bonus (±3 TSS pts)
  8. Detect RSI divergence over last 30 bars (bullish/bearish/none)
  9. Classify regime via GaussianHMM (hv_20 + normalised ATR + BBW); falls back to rule-based if no model
  10. Compute TSS (weighted composite of trend, momentum, RS vs BTC ± MTF bonus ± OBV bonus)
  11. Fetch current market data (price, market cap, 24h change) from CoinGecko
  12. Return structured dict to Claude

Data flow for market_context():

  1. Fetch total market cap history (30d) from CoinGecko /global/market_cap_chart
  2. Fetch BTC and ETH market chart history (30d) from CoinGecko
  3. Fetch stablecoin supply history from DefiLlama
  4. Fetch Fear & Greed Index from Alternative.me (1-hr cache)
  5. Compute BTC dominance trend, ETH/BTC ratio trend, TOTAL3 change
  6. Score into ARS (altcoin rotation) and MRS (market readiness + F&G modifier)

Development

make test            # run test suite
make test-parallel   # run tests in parallel (pytest-xdist)
make coverage        # coverage report
make lint-security   # bandit security scan

222 tests, 0 failures.


Roadmap

See ROADMAP.md for planned versions. Highlights:

  • v0.8 — research_coin tool: web search + Jina reader for news and narrative context
  • v0.9 — Market structure classification (HH/HL/LH/LL) via swing point detection; new market_structure field in analyze_coin
  • v1.0 — Support & resistance zones clustered from swing pivots; support_zones + resistance_zones in analyze_coin
  • v1.1 — Setup confluence score (1–5) measuring signal alignment; surfaces in analyze_coin, rank_coins, watchlist_scan
  • v1.2 — Trade plan block: entry_zone, take_profit, stop_loss, risk_reward_ratio computed from S/R zones + ATR
  • v1.3 — Pi Cycle indicator in market_context; brief tool: Claude Haiku one-paragraph setup summary
  • v1.4 — EV filter: ev_score + ev_signal flags negative-EV setups before acting on a trade plan
  • v1.5 — backtest_strategy tool: walk-forward simulation, fee-adjusted R, win rate, max drawdown

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for CryptoScholar MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/cryptoscholar)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics