Skip to main content
Glama
justetf-mcp

justetf-mcp

by p-gentili

justetf-mcp

CI License: MIT Python

A local Model Context Protocol (MCP) server for read-only justETF data.

This server wraps the third-party druzsan/justetf-scraping Python scraper and exposes a compact MCP tool surface for ETF search, profiles, charts, comparisons, and live quotes.

Caveat: justETF does not publish a stable public API for these endpoints. The upstream scraper relies on justETF web-app endpoints/page structure, so tools can break if justETF changes its site. Use conservative request volumes and review justETF terms for your use case. This is not investment advice.

Tools

  • search_etfs — query the justETF screener with filters and pagination.

  • get_etf_profile — profile/details for one ISIN, including holdings and country/sector allocations.

  • get_chart — historical chart/performance series for one ISIN.

  • compare_charts — compare performance series for multiple ISINs.

  • get_live_quote — latest gettex/EUR quote via justETF's WebSocket feed.

There is also a justetf://help resource with brief usage notes.

Related MCP server: polygon-mcp

Install

uv sync

Or install as a Python package:

pip install .

Run locally

uv run justetf-mcp

The server communicates over stdio, which is the usual transport for local MCP clients.

MCP client configuration

Example configuration for a stdio MCP client:

{
  "mcpServers": {
    "justetf": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/justetf-mcp", "run", "justetf-mcp"]
    }
  }
}

If you install the package globally/in a dedicated venv, use the justetf-mcp executable directly.

Example prompts

  • "Search justETF for MSCI World accumulating ETFs and show TER and fund size."

  • "Get the profile for IE00B4L5Y983 without live quote."

  • "Compare IE00B4L5Y983 and IE00B3RBWM25 over the last 5 years."

  • "Fetch the last 30 chart rows for IE00B5BMR087."

Development

uv sync --dev      # install runtime + dev dependencies
uv run pytest -q   # run the test suite
uv run ruff check . # lint

How the underlying scraper reaches justETF

The upstream justetf-scraping package currently uses:

  • Screener: https://www.justetf.com/en/search.html with Wicket AJAX POST requests.

  • Chart data: https://www.justetf.com/api/etfs/{isin}/performance-chart.

  • Live quote: wss://api.mobile.stock-data-subscriptions.justetf.com/?subscription=trend&parameters=isins:{isin}/currency:EUR/language:en.

  • Profile pages: https://www.justetf.com/en/etf-profile.html?isin={isin} plus AJAX expansion for allocations.

Acknowledgements

Data access is provided by the third-party druzsan/justetf-scraping package, which is MIT licensed. This project is not affiliated with or endorsed by justETF.

License

MIT © Paolo Gentili. The bundled dependency justetf-scraping is also MIT licensed, so the two are license-compatible.

Available Tools

5 tools
compare_chartsA

Compare historical chart series for multiple ETFs.

Args: isins: List of ETF ISINs. currency: EUR, USD, CHF, or GBP. dates: shortest for common range, longest for union range. input_value: quote, quote_with_dividends, or quote_with_reinvested_dividends. output_value: absolute, relative, or percentage. start/end: Optional inclusive date range applied after comparison.

Inputs: isins (required), currency, dates, input_value, +5 more. Returns: object

get_chartA

Return historical ETF performance chart data for one ISIN.

Args: isin: ETF ISIN. currency: EUR, USD, CHF, or GBP. start: Optional inclusive date YYYY-MM-DD. end: Optional inclusive date YYYY-MM-DD. unclosed: Include current day's quote if justETF provides it. columns: Optional subset of chart columns. Common columns are quote, relative, dividends, cumulative_dividends, quote_with_dividends, relative_with_dividends, quote_with_reinvested_dividends, and relative_with_reinvested_dividends. limit: Number of rows to return, capped at 5000. Defaults to roughly one year. offset: Result offset for pagination after date filtering.

Inputs: isin (required), currency, start, end, +4 more. Returns: object

get_etf_profileB

Return comprehensive ETF profile data for one ISIN.

Includes name, description, tracked index, TER, fund size, replication, distribution policy, top holdings, country/sector allocations, and optionally a live gettex quote. include_gettex defaults to false because it uses a WebSocket and can block outside trading/network conditions.

Inputs: isin (required), include_gettex, expand_allocations, timeout_seconds. Returns: object

get_live_quoteA

Return the latest live quote for an ETF from gettex in EUR.

This uses justETF's WebSocket feed. The upstream scraper currently supports gettex/EUR only. Outside trading hours, it should still usually return an initial quote, but a timeout is enforced for local MCP usability.

Inputs: isin (required), timeout_seconds. Returns: object

search_etfsA

Search the justETF screener and return ETF overview rows.

Args: query: Free-text query or ISIN. If it looks like an ISIN, the scraper sends it as an ISIN query; otherwise results are post-filtered by name/ticker/wkn/isin. strategy: justETF product group: epg-longOnly, epg-activeEtfs, epg-shortAndLeveraged, or null to query all strategies. asset_class: Optional justETF asset class such as class-equity, class-bonds, class-preciousMetals, class-commodities, class-currency, class-realEstate, class-moneyMarket. region: Optional region such as World, Europe, North%2BAmerica, Emerging%2BMarkets, Asia%2BPacific. country: Optional target country name or alpha-2 code. instrument: Optional instrument type: ETF, ETC, or ETN. provider: Optional provider code/name accepted by justETF. index: Optional tracked index name, e.g. MSCI World. currency: Response currency: EUR, USD, CHF, GBP. limit: Maximum number of rows to return, capped at 5000. offset: Result offset for pagination.

Inputs: query, strategy, asset_class, region, +7 more. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct purpose: comparing multiple ETFs, getting single chart, profile data, live quote, and searching. No overlap or confusion.

    Naming Consistency5/5

    All tool names use lowercase with underscores and follow a consistent verb_noun pattern (e.g., get_chart, compare_charts, search_etfs).

    Tool Count5/5

    5 tools is an appropriate scope for an ETF data server, covering search, profile, chart, comparison, and live quote without being excessive.

    Completeness4/5

    Core ETF operations are covered, but a tool for listing available filters (e.g., regions, asset classes) could enhance discovery. Slight gap but not critical.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Read-only MCP server for Taiwan active ETF research database, providing tools to list ETFs, track buy/sell deltas, view stock history and PnL, and find consensus buys across ETFs.
      5
      -
    • A
      license
      C
      quality
      D
      maintenance
      Enables querying real-time and historical financial market data for stocks, options, forex, and crypto, including quotes, trades, technical indicators, and reference data through a set of MCP tools.
      71
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables access to financial market data including EOD, intraday, fundamentals, news, and more via 75 read-only MCP tools.
      5
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Exposes Nordnet's public market data (quotes, charts, news, trades, profiles, FX) via MCP, requiring no API key or authentication.
      19
      MIT