Skip to main content
Glama
equity-figures-mcp

equity-figures-mcp

by ngkawaix

equity-figures-mcp

An MCP server that serves company financial figures as each issuer reported them. Every reported figure has its source: the document URL, its SHA-256 hash, a locator inside it, the document date, the retrieval date and, for an EDGAR filing, the SEC accession number. Missing figures stay gaps with their reason; the server fills none.

The data lives in a separate repository, equity-figures-data, in two tiers. The server stores no theses or opinions.

  • Curated (AAPL, AMZN, AVGO, GOOGL, META, MSFT, NVDA): about 25 quarters of figures reviewed against the issuer's releases, filings and calls, with segment and non-GAAP lines and computed lens series.

  • XBRL (the S&P 500, 498 companies; share classes such as GOOG answer as aliases): every consolidated fact each company tagged in its 10-Q and 10-K filings since 2020, as first reported, with later filings' figures for the same period listed as revisions. A fourth quarter's three-month flow is usually a gap, because a 10-K reports the year; the [fy] series hold the year.

A ticker in both tiers defaults to curated; every tool takes tier to choose.

Not investment advice. The figures are extracted by software and reviewed, and may still contain errors; check the source document before relying on one.

Tools

Tool

What it returns

list_companies

Tickers, names, tier, publication date and the quarters held

list_metrics

A ticker's series: id, label, unit, reported or computed, latest value

get_series

One series by quarter, with the source of every reported point

check_condition

Your measure and threshold evaluated at every quarter: holding, broken or not established

Quarters are fiscal quarters in each company's own calendar, labelled like FY2026Q4. Series ids starting cell. are reported figures; the others are computed lens series that name the figures they use.

check_condition takes a measure such as {"name": "growth", "series": "cell.revenue", "quarters": 4} and a condition such as ">= 10". The measures are level, change, growth, vs_mean, spread, ttm_sum and ttm_ratio.

Related MCP server: akyla-mcp

Install

Claude Code:

claude mcp add equity-figures -- uvx --from git+https://github.com/ngkawaix/equity-figures-mcp equity-figures-mcp

Claude Desktop, in claude_desktop_config.json:

{"mcpServers": {"equity-figures": {"command": "uvx",
  "args": ["--from", "git+https://github.com/ngkawaix/equity-figures-mcp", "equity-figures-mcp"]}}}

The first start clones and builds the package, which can exceed a client's 30-second connection timeout. If it does, run uvx --from git+https://github.com/ngkawaix/equity-figures-mcp equity-figures-mcp once in a terminal (stop it with Ctrl+C), then reconnect.

Set EQUITY_FIGURES_DATA to a local folder or another base URL to read a different copy of the dataset.

Tests

python -m unittest discover -s tests

Available Tools

4 tools
check_conditionA

Evaluate a measure at every quarter from start to end and test it against condition.

measure is {"name": ..., "series": ...} plus its arguments. Names: level; change (quarters, default 1); growth (quarters, default 4, in percent); vs_mean (quarters, default 4); spread (minus: a second series); ttm_sum; ttm_ratio (over: a second series, money over money, in percent). Series ids come from list_metrics. condition is a comparator and a number in the measure's unit, for example ">= 28"; the measure holds when it is true. Without a condition the values are returned with no status. A quarter that cannot be evaluated is not established, with the reason. tier picks 'curated' or 'xbrl' for a ticker in both.

Inputs: ticker (required), measure (required), end, tier, +2 more.

get_seriesB

One series at every quarter from start to end (fiscal labels like FY2024Q1; default the whole window). A reported point has its value, period and source (URL, document hash, locator, document and retrieval dates, accession number). A computed point names the reported figures it was computed from. A gap has its state and no value. An XBRL point lists later filings' figures for its period as revisions, and restated says whether any differs.

Inputs: ticker (required), series_id (required), end, tier, +1 more.

list_companiesA

The companies in the dataset: ticker, name, tier, publication date, the first and last fiscal quarter held, and how many series each has.

Inputs: no named parameters.

list_metricsA

The series a ticker has: id, label, unit, kind (reported or computed), lens and latest value. search narrows the list to ids or labels containing those words (case does not matter). tier picks 'curated' or 'xbrl' for a ticker in both.

Inputs: ticker (required), tier, search.

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 4 tools

    Disambiguation5/5

    Each tool serves a clearly distinct purpose: list_companies for discovery, list_metrics for series enumeration, get_series for raw data retrieval, and check_condition for computed evaluations. The descriptions clarify that get_series returns one series while check_condition evaluates measures and conditions, so overlap is minimal.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern: list_companies, list_metrics, get_series, check_condition. The convention is predictable and easy to parse.

    Tool Count5/5

    With only 4 tools, the set is well-scoped for a read-only equity data server. Each tool earns its place by covering a distinct phase of the workflow: discovery, enumeration, retrieval, and conditional analysis.

    Completeness5/5

    The surface fully covers the domain: list_companies provides company metadata, list_metrics enumerates available series, get_series retrieves detailed point data, and check_condition supports derived measures and condition testing. No critical gaps for typical equity figure analysis.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Provides access to SEC filings and detailed XBRL financial data for all publicly traded U.S. companies. It enables users to search for company info, retrieve historical metrics like revenue and assets, and compare financial performance across different industries.
      6
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      Provides as-reported US equity fundamentals, live quotes, financial statements, valuation comps, and a screener from SEC filings, with per-cell filing provenance for citations.
      7
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to query US public company financial data from SEC filings, with tools for resolving tickers, listing filings, retrieving financial concepts, comparing companies, extracting filing sections, and full-text search. It surfaces data ambiguities like tag variations, restatements, and fiscal-year misalignment rather than hiding them.
      6
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to look up SEC company fundamentals point in time: what a company first reported, what was known on any given date, and which values were later restated, with the filing behind each value. Supports querying history over time, tracing every vintage of a period, and resolving measures such as revenue or EPS across the XBRL tags a company has used.
      1
      MIT