Skip to main content
Glama
volumeleaders-mcp

volumeleaders-mcp

by major

Python client and MCP server for volumeleaders.com

Unofficial. This project is not affiliated with, endorsed by, or connected to volumeleaders.com in any way.

Python client and MCP server for volumeleaders.com institutional block trade data.

Use it as a Python library to query institutional block trades, trade clusters, trade levels, and more with typed Pydantic models. Or run it as an MCP server to give AI coding assistants direct access to the same data.

Authentication works by extracting cookies from your browser session (no API keys needed).

Prerequisites

You must be logged into volumeleaders.com in Firefox before using the client. The library reads your browser cookies for authentication (there is no programmatic login).

Related MCP server: InsiderTrack MCP

Install

pip install volumeleaders

Or with uv:

uv add volumeleaders

Usage

from volumeleaders import VolumeLeadersClient, get_trades, get_exhaustion_scores

with VolumeLeadersClient() as client:
    # Fetch institutional trades for a date range
    trades = get_trades(
        client,
        start_date="2026-03-01",
        end_date="2026-03-31",
        tickers="AAPL",
    )
    for trade in trades:
        print(f"{trade.ticker} {trade.trade} @ {trade.current}")

    # Get exhaustion scores for today
    scores = get_exhaustion_scores(client)
    print(scores)

Available endpoints

Function

Description

get_trades

Institutional block trades with full filter set

get_trade_clusters

Clustered trade activity

get_trade_cluster_bombs

Large cluster events

get_exhaustion_scores

Daily exhaustion score ranks

get_earnings

Earnings data

get_company

Company metadata

get_snapshot

Chart snapshot for a ticker

get_all_snapshots

Price snapshots for all tickers

get_price_data

Price/volume bar data

get_chart_trades

Individual large trades from the chart envelope

get_chart_levels

Chart trade levels

get_trade_levels

Trade level data

get_trade_level_touches

Trade level touch events

get_institutional_volume

Institutional volume

get_ah_institutional_volume

After-hours institutional volume

get_total_volume

Total volume

get_trade_alerts

Trade alerts

get_trade_cluster_alerts

Trade cluster alerts

get_alert_configs

Alert configurations

get_watchlist_configs

Watchlist configurations

get_watchlist_tickers

Tickers in a watchlist

get_sector_breakdown

Daily institutional dollar volume by sector

get_institutional_outliers

Statistical block trade volume outliers

get_notional_by_sector_by_name

Hierarchical sector, theme, and ticker capital flows

get_supply_demand_areas

Automated sector supply and demand support scores

get_sector_daily_returns

Multi-factor sector metrics, momentum, Sharpe, and risk

get_dark_pool_volume_report

Binned dark pool volume distribution profiles

All endpoint functions take a VolumeLeadersClient as the first argument and return typed Pydantic models.

MCP Server

The library includes an MCP server that exposes VolumeLeaders data as tools for AI coding assistants. 12 tools are available:

  • trades: Institutional block trade scanner with context-aware defaults.

  • trade_clusters: Institutional trade cluster scanner for a given day.

  • trade_cluster_bombs: Large trade cluster bomb events over date ranges.

  • trade_levels: Institutional trade levels for a ticker symbol.

  • trade_level_touches: Intraday trade level touch scanner.

  • sector_flows: Daily institutional dollar flows and market share across sectors.

  • institutional_outliers: Statistical block trade volume anomalies (Z-scores).

  • sector_themes: Hierarchical capital allocation (Sector -> Theme -> Tickers).

  • sector_support_scores: Automated supply and demand support score distributions.

  • sector_factors: Multi-factor sector scorecard (Momentum, Sharpe, Beta, Volatility).

  • sector_rotation_rrg: JdK Relative Rotation Graph (RRG) modeling against SPY.

  • dark_pool_profile: Dark pool price-volume profile and Point-of-Control (POC).

Quick start with uv

No installation needed:

uv run --with "volumeleaders" volumeleaders-mcp

Or if the package is already installed:

volumeleaders-mcp

Client configuration

Create .mcp.json in your project root.

Using uv:

{
  "mcpServers": {
    "volumeleaders": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "--with", "volumeleaders", "volumeleaders-mcp"]
    }
  }
}

After adding the config, restart Claude Code and run /mcp to verify the server appears.

Add to opencode.json (or opencode.jsonc) in your project root.

Using uv:

{
  "mcp": {
    "volumeleaders": {
      "type": "local",
      "command": ["uv", "run", "--with", "volumeleaders", "volumeleaders-mcp"]
    }
  }
}

License

MIT

Available Tools

12 tools
dark_pool_profileDark Pool ProfileC

Analyze dark pool volume-by-price distribution and Point-of-Control.

Inputs: tickers (required), bins, end_date, start_date, +2 more. Returns: object

institutional_outliersInstitutional OutliersC

Scan for institutional block trade volume anomalies exceeding thresholds.

Inputs: date, sectors, tickers, min_sigmas, +3 more. Returns: object

sector_factorsSector FactorsC

Score market sectors across multi-factor momentum and risk.

Inputs: date, metric, sectors, timeframe, +1 more. Returns: object

sector_flowsSector FlowsC

Scan institutional dollar volume flows and market share across sectors.

Inputs: sectors, end_date, start_date, include_query. Returns: object

sector_rotation_rrgSector Rotation RrgC

Analyze sector rotation using JdK Relative Rotation Graph modeling vs SPY.

Inputs: window, sectors, roc_period, equity_only, +2 more. Returns: object

sector_support_scoresSector Support ScoresC

Analyze automated supply and demand support score distributions.

Inputs: date, sectors, end_date, start_date, +1 more. Returns: object

sector_themesSector ThemesC

Examine hierarchical capital flows across sectors, themes, and tickers.

Inputs: date, theme, sector, top_themes, +2 more. Returns: object

trade_cluster_bombsTrade Cluster BombsA

Find trade cluster bomb events over a date range.

A trade cluster bomb is an exceptionally large trade cluster, a rare event where institutional block trades in a single security reach an unusually high total dollar volume within a trading day. Cluster bombs are significant because they represent extraordinary institutional conviction or activity that stands out even among normal trade clusters.

Cluster bombs don't happen every day, so a wider date range (default: one week) helps capture recent events.

Key fields per bomb:

  • rank: significance rank (1 = largest, lower = more significant)

  • dollars_multiplier: how unusual this bomb's size is relative to typical institutional activity (higher = more unusual)

  • cumulative_distribution: percentile of institutional dollar volume (values near 1.0 = among the largest ever seen)

  • last_comparable_date: when a comparable cluster bomb last occurred for this ticker

Inputs: tickers, end_date, start_date, max_results. Returns: object

trade_clustersTrade ClustersB

Find institutional trade clusters for a given day.

A trade cluster is a group of institutional block trades in the same security that occur within a time window on a single day. Clusters indicate concentrated institutional activity, where multiple large block trades converge on the same stock in a short period, suggesting coordinated or conviction-driven positioning.

Key fields per cluster:

  • rank: significance of the cluster (1 = largest by dollars, 9999 = unranked)

  • dollars_multiplier: how unusual this cluster's size is relative to typical institutional activity (higher = more unusual)

  • cumulative_distribution: percentile of institutional dollar volume (values near 1.0 = among the largest clusters)

  • last_comparable_date: when a similar-sized cluster last occurred

Inputs: date, tickers, max_results. Returns: object

trade_levelsTrade LevelsA

Look up institutional trade levels for a ticker.

A trade level is a price where institutional block trades have accumulated over time, forming a support/resistance zone backed by real money. Levels are created when multiple block trades cluster near the same price (server-determined tolerance). Each level is ranked by total dollar volume (rank 1 = largest).

Use this tool when you need to know where institutional money is concentrated for a specific stock or ETF. The levels represent prices where large block trades have historically occurred, indicating significant institutional interest.

This tool calls the same GetChartTradeLevels endpoint used by the VolumeLeaders chart page and by the vl-tv-bridge extension, so the picture it returns matches what those clients render. The default five-year lookback matches the chart default; pass an explicit start_date to shorten (e.g. for recent-only levels) or extend the window further back.

Key fields per level:

  • rank: significance of the level (1 = largest by dollars, 0 = unranked)

  • relative_size: level's share of the ticker's total institutional volume (0.0-1.0, higher = more concentrated)

  • dollars: formatted total institutional dollars at this level

  • cumulative_distribution: running total of institutional volume share across all levels (0.0-1.0)

  • level_origin_date / level_last_confirmed: date range of the block trades composing this level

Inputs: ticker (required), end_date, start_date, trade_level_count. Returns: object

trade_level_touchesTrade Level TouchesA

Find trade level touch events for a given day.

A trade level is a price where institutional block trades have accumulated over time, forming a support/resistance zone backed by real money. Levels are created when multiple block trades cluster near the same price (server-determined tolerance). Each level is ranked by total dollar volume (rank 1 = largest).

A trade level touch is an intraday event where price revisits one of these institutional levels. Touches signal that price is re-engaging a zone where institutions previously committed capital, which often produces support/resistance reactions.

Key fields per touch:

  • rank: significance of the level (1 = largest by dollars)

  • relative_size: level's share of the ticker's total institutional volume (0.0-1.0, higher = more concentrated)

  • dollars: formatted total institutional dollars at this level

  • level_origin_date / level_last_confirmed: date range of the block trades composing this level (not price revisits)

Inputs: date, tickers, max_results, min_dollars, +2 more. Returns: object

tradesTradesA

Look up institutional block trades across all tickers or for specific symbols.

An institutional block trade is a large-volume transaction typically executed by institutional investors (hedge funds, pension funds, mutual funds). These trades represent significant capital commitments and often signal institutional conviction at specific price levels.

Context-aware defaults adjust automatically based on whether tickers are specified:

  • Ticker queries: 90-day lookback, include phantom and offsetting trades for a complete history

  • Broad scans: Today only, exclude phantom and offsetting trades to focus on actionable activity

Key fields per trade:

  • trade_rank: significance ranking within the query scope (1 = most significant by dollar volume, 9999 = unranked). For broad scans, rank is among all trades that day. For ticker queries, rank is among that ticker's trades in the date range. Default filter is 100 (ranked only).

  • dollars_multiplier: how unusual this trade is relative to typical institutional activity (higher = more unusual)

  • types: trade classification. ["block"] for standard block trades; special types include dark_pool, sweep, late_print, signature_print, opening, closing, phantom

  • last_comparable_date: when a similar-sized trade last occurred

  • trade_count: when > 1, the trade aggregates multiple prints at the same price. dollars/volume are summed; price/time reflect the last print.

Results are sorted by the sort_by parameter (default: time descending). Use offset + max_results for pagination.

Inputs: offset, sort_by, tickers, end_date, +5 more. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools are clearly separated: trades (raw blocks), trade_clusters vs trade_cluster_bombs (clusters vs the rarer extreme subset), and trade_levels vs trade_level_touches (levels vs intraday revisits). The weakest area is the five sector_* tools — sector_flows vs sector_themes both describe capital flows across sectors, and sector_factors vs sector_support_scores both score sectors — but the descriptions give enough differentiating detail (market share, hierarchical themes, multi-factor momentum, supply/demand scores, RRG).

    Naming Consistency4/5

    All names are snake_case with clear domain prefixes (sector_*, trade_*) and no mixed casing or camelCase. There is no verb_noun pattern — names are noun phrases (e.g. `trades`, `trade_levels`), but that convention is applied consistently enough that an agent can predict names by domain. Minor deviation: `trades` and `sector_flows` lack the qualifying suffix that sibling names carry.

    Tool Count5/5

    Twelve tools is well within the ideal range and each maps to a distinct analytical product (flows, dark pool, outliers, factors, rotation, support, themes, clusters, cluster bombs, levels, touches, trades). Nothing feels padded or redundant at the count level.

    Completeness4/5

    The surface covers institutional volume analysis broadly: discovery (outliers, clusters, bombs), location (levels, touches, dark pool profile), and sector-level views. Gaps are minor — there is no ticker search/validation, no per-ticker institutional volume time series, and no cross-ticker comparison tool, so an agent can't easily verify a symbol or track trends over time without stitching queries together.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants like GitHub Copilot to access live stock market data, company information, technical analysis, news, and portfolio analytics.
      -
    • F
      license
      A
      quality
      B
      maintenance
      Lets AI assistants query Congress and corporate insider trading data, including who is buying, ticker scores, and whether those signals performed.
      12
      1
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to access low-latency global market data, including quotes, fundamentals, technical indicators, earnings context, sector movers, and options implied-volatility screening across equities, ETFs, FX pairs, and cryptocurrencies.
      8
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Gives AI clients streamable-HTTP access to decades of US market data, so they can backtest strategies in seconds, grade stocks A+ to F, query prices, fundamentals, factors, macro and short interest, and screen portfolios through ready-made tools or read-only SQL. Also exposes search and fetch tools so assistants like ChatGPT deep research can cite the strategy library, studies and forum.
      3
      MIT