Skip to main content
Glama
blocklens-mcp-server

blocklens-mcp-server

Official
by blocklens

blocklens-mcp-server

MCP (Model Context Protocol) server for Blocklens Bitcoin on-chain analytics. Connect your AI agent to 127 on-chain metrics computed from raw blockchain data — no API wrappers, no delays.

Quick Start

Remote Access (No Install)

Connect directly to the hosted endpoint — no packages, no local setup:

Claude.ai (Browser): Settings → Connectors → Add → URL: https://mcp.blocklens.co

Claude Desktop / Cursor / Windsurf (via mcp-remote):

{
  "mcpServers": {
    "blocklens": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.blocklens.co"]
    }
  }
}

Any MCP HTTP client: POST to https://mcp.blocklens.co (Streamable HTTP transport)

Local Install

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "blocklens": {
      "command": "npx",
      "args": ["-y", "blocklens-mcp-server"],
      "env": {
        "BLOCKLENS_API_KEY": "blk_your_key_here"
      }
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Cursor / Windsurf

Add to your MCP config (.cursor/mcp.json):

{
  "blocklens": {
    "command": "npx",
    "args": ["-y", "blocklens-mcp-server"],
    "env": {
      "BLOCKLENS_API_KEY": "blk_your_key_here"
    }
  }
}

Demo Mode (No API Key)

Works without an API key — you get 60 days of history for basic-tier metrics. Get an API key at blocklens.co/api-keys for full access.

Related MCP server: crypto-projects-mcp

Available Tools (15)

Tool

Description

list_metrics

List all 127 available metrics with categories and tiers

search_metrics

Search metrics by keyword

get_metric

Get full definition of a single metric

get_categories

List metric categories with counts

get_prices

BTC daily OHLC, market cap, volume, drawdown, realized volatility (1W–1Y)

get_holder_supply

LTH/STH supply breakdown, circulating supply

get_holder_valuation

Realized cap/price, MVRV, thermo cap, delta cap, balanced price, investor cap

get_holder_profit

NUPL, realized/unrealized P/L, SOPR — LTH/STH breakdowns (Pro tier)

get_cohort_metrics

Age cohort supply, realized cap, realized price (12 age brackets)

get_utxo_history

UTXO set breakdown by age cohort

get_coindays

Coin Days Destroyed, liveliness, vaultedness, dormancy, dormancy flow

get_blockchain

Block height, blocks mined

get_cycle_performance

Cycle performance indexed from lows, ATHs, halvings

get_latest_metrics

Latest snapshot across all categories

render_chart

Render any metric as PNG with annotations and templates

Metrics Coverage (127 total)

Market Data (27 metrics)

Price, OHLC, volume, market cap, drawdown from ATH, 6 realized volatility windows (1W, 2W, 1M, 3M, 6M, 1Y), cycle performance, and individual cycle tracks from lows, ATHs, and halvings.

Supply (16 metrics)

Circulating supply, LTH/STH supply, cost basis distribution heatmap, and 12 age cohort supplies (<24h through 10y+) for HODL Waves analysis.

Valuation (41 metrics)

Realized cap, realized price, MVRV (aggregate + LTH/STH), thermo cap, delta cap, average cap, balanced price, investor cap, market cap/thermo cap ratio, and 24 age cohort realized prices and caps.

Profitability (12 metrics)

NUPL, unrealized/realized P/L, SOPR — each with aggregate, LTH, and STH breakdowns.

Coin Days (11 metrics)

Coin Days Destroyed (CDD), binary CDD, supply-adjusted CDD, liveliness, vaultedness, dormancy, dormancy flow, net coin days, coin days accumulated, transferred price, transfer volume.

ETF Analytics (11 metrics)

Total BTC holdings, AUM, net/cumulative flows, cumulative money flow, ETF realized price, US Spot ETF realized price, US Spot cumulative money flow, BTC dominance, US BTC holdings, ETF premium average.

Blockchain (2 metrics)

Block height, blocks mined.

Chart Rendering

The render_chart tool generates PNG charts inline in the conversation.

Quick examples:

render_chart({ metric: "price", days: 365 })
render_chart({ template: "mvrv_ratio" })
render_chart({ metrics: ["lth_supply", "sth_supply"], style: "area" })
render_chart({ metric: "dormancy_flow", overlay: "price" })
render_chart({ template: "realized_volatility", days: 730 })

Annotations — reference lines and areas:

render_chart({
  metric: "lth_mvrv",
  reference_lines: [
    { "y": 3.5, "label": "Overheated", "stroke": "#ef4444", "dash": "3 3" }
  ],
  reference_areas: [
    { "y1": 0, "y2": 0.85, "label": "Undervalued", "fill": "#22c55e", "fill_opacity": 0.15 }
  ]
})

Example Prompts

  • "What's Bitcoin's current MVRV ratio and what does it say about valuation?"

  • "Show me realized volatility — is short-term vol higher than long-term?"

  • "Chart dormancy flow with price overlay for the last 2 years"

  • "Compare LTH and STH supply trends over 90 days"

  • "Are long-dormant coins waking up? Check liveliness and CDD"

  • "Show cycle performance from each halving — are we tracking historical patterns?"

  • "What's the current NUPL level? Is the market in euphoria or fear?"

Access Tiers

Tier

History

Metrics

Daily Requests

Demo (no key)

60 days

Basic (grade 0)

Unlimited

Pro ($50/mo)

Unlimited

All grade 0–1

10,000

Enterprise ($900/mo)

Unlimited

All grade 0–2

100,000

License

MIT

Available Tools

15 tools
get_blockchainB

Get blockchain network metrics: block height or daily blocks mined.

Inputs: metric (required), days, end_date, start_date.

get_categoriesA

List all metric categories with counts and metric IDs in each. Categories include: price, supply, valuation, profit. Useful for discovering what data is available.

Inputs: no named parameters.

get_cohort_metricsA

Get age cohort metrics: supply (BTC), realized cap (USD), and realized price (USD) for a specific UTXO age bracket. 12 cohorts from <24h to 10y+. Used for HODL Waves analysis to track accumulation/distribution by coin age.

Inputs: cohort (required), days, end_date, start_date.

get_coindaysA

Get Coin Days metrics: CDD, binary CDD, supply-adjusted CDD, liveliness, vaultedness, dormancy, dormancy flow, transferred price, and transfer volume. Coin Days measure the economic weight of Bitcoin transactions by accounting for both amount and holding time.

Inputs: days, end_date, start_date.

get_cycle_performanceA

Get Bitcoin cycle performance data. Shows price progression indexed from cycle reference points (lows, ATHs, halvings). Without type parameter returns aggregate cycle comparison; with type returns individual cycle tracks.

Inputs: days, type, end_date, start_date.

get_holder_profitA

Get Bitcoin profit metrics: LTH/STH Realized P/L (USD) and SOPR (Spent Output Profit Ratio). SOPR > 1 means coins moved at profit; < 1 means at loss. Requires Pro tier API key.

Inputs: days, end_date, start_date.

get_holder_supplyA

Get Bitcoin holder supply breakdown: Long-Term Holder (LTH) supply, Short-Term Holder (STH) supply, and circulating supply. LTH = held >155 days, STH = held <155 days. Values in BTC.

Inputs: days, end_date, start_date.

get_holder_valuationB

Get Bitcoin valuation metrics: Realized Cap (USD), Realized Price (USD), LTH/STH Realized Cap and Price, MVRV ratio (Market Value / Realized Value), and Unrealized P/L. MVRV > 3.5 historically signals overheating; < 1 signals undervaluation.

Inputs: days, end_date, start_date.

get_latest_metricsA

Get the most recent snapshot across all metric categories (price, supply, valuation, profit) in a single call. Ideal for a quick market overview without specifying date ranges.

Inputs: no named parameters.

get_metricA

Get the full definition of a single metric by its ID. Returns name, description, category, endpoint, unit, access tier, documentation, and related metrics. Use search_metrics or list_metrics first to find metric IDs.

Inputs: metric_id (required).

get_pricesA

Get daily OHLC prices (open/high/low/close in USD), market cap, and 24h trading volume. Returns one row per day, newest first.

Inputs: days, symbol, end_date, start_date.

get_utxo_historyA

Get UTXO set breakdown by age cohort. Shows token amounts (BTC) and USD values for each cohort date. Useful for analyzing coin dormancy and accumulation patterns — when dormant supply moves, it often precedes price action.

Inputs: days, cohort_end, cohort_start, date_processed.

list_metricsA

List all available on-chain metrics with descriptions, categories, and tier requirements. Returns id, name, description, category, unit, endpoint, and access tier for each metric.

Inputs: no named parameters.

render_chartA

Render a Bitcoin on-chain analytics chart as a PNG image. Supports single metrics, multiple metrics, templates, computed formulas, and full customization.

Use this when the user asks to "show", "chart", "plot", "graph", or "visualize" any metric.

Smart defaults: just provide metric IDs and you get a beautiful chart. Customize with optional params.

Supports custom Y-axes with vertical zones (stack volume below price), domain clamping, reference lines, reference areas, and computed formula series.

IMPORTANT — Multi-axis guidance for different units: When combining metrics with different units (e.g., BTC supply + USD price, or a dimensionless ratio + USD), ALWAYS place them on separate Y-axes. Otherwise one metric will appear as a flat line near zero due to scale mismatch. Use list_metrics to check the "unit" field and assign metrics with different units to different axes (left vs right).

Examples:

  • Simple: render_chart({ metric: "price" })

  • Multi-metric: render_chart({ metrics: ["lth_supply", "sth_supply"], days: 730, style: "area" })

  • Template: render_chart({ template: "mvrv_ratio" })

  • Custom: render_chart({ metrics: [{ id: "price", axis: "right" }, { id: "lth_mvrv", axis: "left" }], days: 365, title: "Price vs MVRV" })

  • Multi-unit (separate axes): render_chart({ metrics: [{ id: "lth_supply", axis: "left" }, { id: "price", axis: "right" }], days: 365 })

  • Vertical zones: render_chart({ metrics: [{ id: "price", y_axis_id: "ax-p" }, { id: "volume", y_axis_id: "ax-v", style: "bar" }], y_axes: [{ id: "ax-p", side: "right", range: [20, 100] }, { id: "ax-v", side: "left", range: [0, 20] }] })

  • Reference line: render_chart({ metric: "lth_mvrv", reference_lines: [{ y: 3.5, label: "Overheated", stroke: "#ef4444", dash: "3 3" }] })

  • Reference area: render_chart({ metric: "lth_mvrv", reference_areas: [{ y1: 0, y2: 0.85, label: "Undervalued", fill: "#22c55e", fill_opacity: 0.15 }] })

  • Formula (ratio): render_chart({ metrics: [{ id: "lth_supply" }, { id: "sth_supply" }], formulas: [{ expression: "m1 / m2", label: "LTH/STH Ratio", color: "#f59e0b" }], days: 365 })

  • Formula on separate axis: render_chart({ metrics: [{ id: "lth_supply", axis: "left" }, { id: "sth_supply", axis: "left" }], formulas: [{ expression: "m1 / m2", label: "LTH/STH Ratio", y_axis_id: "ax-r" }], y_axes: [{ id: "ax-r", side: "right" }], days: 365 })

Inputs: days, scale, style, theme, +14 more.

search_metricsA

Search available metrics by name or description. Returns matching metrics with their IDs, API endpoints, access tiers, and descriptions. Use this to discover which metrics are available before fetching data.

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool has a distinct purpose: discovery (list_metrics, search_metrics, get_metric), specific data categories (prices, supply, valuation, profit, cohort, UTXO, coindays, blockchain, cycle), and visualization (render_chart). Even similar tools like get_cohort_metrics and get_utxo_history are clearly delineated by their descriptions.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern: list_*, get_*, search_*, render_*. No mixed casing or inconsistent verb styles are present.

    Tool Count4/5

    With 15 tools, the server sits at the upper boundary of the typical well-scoped range. Each tool covers a distinct aspect of on-chain data, but the count is slightly high, making it feel a bit heavier than the 3-15 ideal.

    Completeness4/5

    The tool surface comprehensively covers discovery, data retrieval for major on-chain metric families, and charting. A minor gap is the lack of a generic get_metric_data tool to fetch arbitrary historical time series, as specific getters only cover predetermined categories.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that tracks Bitcoin's Unspent Transaction Outputs (UTXO) and block statistics, giving AI agents direct access to essential on-chain data.
      2
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides AI agents with real-time and historical Bitcoin network data by wrapping the mempool.space WebSocket and REST APIs. It enables tracking addresses, monitoring blocks, and retrieving transaction details or fee estimates through natural language.
      MIT