Hub-Equity MCP

com.hub-equity由 hub-equity.com 發布v2.0.0更新於 Oct 24, 2026

Standardized, restatement-aware SEC + European (ESEF) XBRL fundamentals, served to your agent.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理以唯讀方式取得標準化的美國 SEC 與歐洲 ESEF XBRL 財務資料,數值可溯源並支援重編辨識。

可以做什麼
依名稱、股票代號或 CIK 搜尋發行公司,讀取實體檔案、產業、簽證會計師與近期申報,並解析標準化 hub 概念代碼、依類別列出 hub 目錄。取得標準化財務事實、含年增率與複合年成長率的多年度時間序列、分部與地區拆分,以及依歐洲央行參考匯率換算貨幣。檢視重編資訊:10-K/A 修正摘要與無聲重編,付費方案下可取得逐概念差異與計算樹。跨發行公司、跨會計年度比較,依國家、產業、營收與資料品質篩選公司,並查看資料品質評級與 XBRL 驗證結果。讀取目錄、報表結構與使用指南資源,並使用八個分析提示範本。
適用情境
當助理需要跨美國與歐洲申報公司、可比較且可引用的基本面資料時使用,例如同業比較、盈餘品質分析或重編稽核。適合希望使用標準化概念而非原始 XBRL 分類架構的分析人員與代理程式。
執行需求
以 Python 套件形式在本機執行(需 Python 3.12 或更新版本),可透過 pipx、uvx 或 pip 啟動。需要在環境變數 HUBEQUITY_API_KEY 中提供 hubq_ 開頭的 API 金鑰;免費金鑰開放基礎工具,付費方案解鎖進階工具並提高速率上限。需要透過網路以 HTTPS 存取 Hub-Equity REST API;HUBEQUITY_API_URL 為選用項目。
安裝前請注意
API 金鑰屬於機密,會以 Bearer 權杖形式傳送給 Hub-Equity API,請勿寫入共用設定。進階工具需要付費方案,且受每分鐘及每日或每月配額限制。工具宣告為唯讀且冪等,但查詢內容與實體識別碼會傳送至第三方服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Hub-Equity MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

hub-equity-mcp

Standardized XBRL financial data for LLM agents. A Model Context Protocol (MCP) server that exposes normalized financial facts from US SEC (EDGAR) and European ESEF filings to Claude Desktop, Cursor, and any MCP-aware client.

Hub-Equity serves standardized European ESEF filings alongside US SEC data through one consistent hub-concept vocabulary, so an agent can ask for REVENUE or TOTAL_ASSETS and get a comparable, source-linked value whether the issuer files with the SEC or under ESEF.

Maturity. The public REST API behind this connector runs in production and powers Hub-Equity's own chat. The package follows Semantic Versioning; it keeps the Beta classifier while its install base is young.

Why

  • One vocabulary across two regimes. SEC us-gaap and ESEF ifrs-full concepts are mapped to a single set of standardized hub codes, so cross-issuer and cross-taxonomy comparison works out of the box.
  • Every number is source-linked. Facts carry their filing, period, and provenance so an agent can cite rather than guess.
  • Restatement-aware. Explicit amendments and silent restatements (a figure a later filing reprinted differently, with no amendment filed), each change with the filing that made it.
  • Read-only and closed-world. Every tool advertises readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=false per the MCP spec, so clients can reason about safety and caching without introspection.
  • No database credentials. The published package talks only to the public REST API (https://api.hub-equity.com) over HTTPS. It never ships or requires a database key.

Install

pipx run hub-equity-mcp

pipx run (or uvx hub-equity-mcp) fetches and starts the server in an isolated environment; pip install hub-equity-mcp works too. Requires Python 3.12 or newer.

Authentication and access

The server talks only to the public REST API, which needs a hubq_ key (env var HUBEQUITY_API_KEY).

  • Free key. Create an account and a key in a minute at https://hub-equity.com/settings/api-keys. Gives the base tool set (entity search, normalized facts, time series, segments, screener, data-quality grade, FX conversion, and more).
  • Paid plan. Unlocks the premium tools (restatement diffs, calculation trees, cross-period compare, cross-issuer compare, validation checks, extension concepts) and raises the rate limit. See the table below.

The published package never reaches the database directly, only the REST API.

Configure your client

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "hub-equity": {
      "command": "pipx",
      "args": ["run", "hub-equity-mcp"],
      "env": {
        "HUBEQUITY_API_KEY": "INSERT_YOUR_API_KEY"
      }
    }
  }
}

Without HUBEQUITY_API_KEY, every tool call answers HUBEQUITY_API_KEY is not set with the link to a Free key.

Cursor

Add to .cursor/mcp.json (project root) or the global Cursor MCP settings:

{
  "mcpServers": {
    "hub-equity": {
      "command": "pipx",
      "args": ["run", "hub-equity-mcp"],
      "env": {
        "HUBEQUITY_API_KEY": "INSERT_YOUR_API_KEY"
      }
    }
  }
}

Environment variables

  • HUBEQUITY_API_KEY (required): a hubq_ key. A Free key opens the base tools; a paid plan opens the premium tools and the higher rate limit.
  • HUBEQUITY_API_URL (optional): defaults to https://api.hub-equity.com. https:// is enforced whenever a key is set (the server refuses to send the Bearer key over plaintext to a non-loopback host).

Capabilities

TypeWhat
ToolsRead-only tools: discovery, facts, time series, segments, forensic checks (table below)
ResourcesHub catalog, statement schema, tier catalog, usage guides, coverage snapshot
PromptsAnalytical templates (list below)
Completion API{hub_code} autocomplete

Tools

The machine-readable tier catalog is served as a resource (hub-equity://catalog/tool-tiers). Free tools cover discovery and identity; Pro tools, open on every paid plan (Builder, Team, Enterprise), add forensic depth (calculation trees, restatement diffs on amendments and silent restatements, cross-period comparison, cross-issuer comparison, validation results, extension concepts). The tier of a tool mirrors the REST endpoint it calls: every Pro tool's endpoint requires the facts.premium scope server-side, and the Free caps (get_fact_decomposition depth 1 without roll-up components or dimensional slices, screen_companies 20 results without the quality filter, get_segments axes without members, roll_up_metric the value without its rule) are applied by the API, not only by this package.

ToolTierWhat it does
find_entity(query)FreeSearch by name, ticker, or CIK. Returns the entity_id other tools need.
get_fact(entity_id, hub_concept_code, fiscal_year, fiscal_period_type?)FreeOne normalized value plus its filing source.
get_fact_decomposition(entity_id, fiscal_year, hub_concept_code? or qname?, depth?)Free (depth 1, linkbase only) / Pro (depth 2-3)Hub rollup, XBRL calc-linkbase children, and dimensional breakdown. Free: the linkbase layer, without the roll-up components and the dimensional slices.
search_concept(query)FreeResolve a hub code from a label or a partial code.
list_hubs(category?, include_non_primary?, limit?)FreeEnumerate the standardized hub catalog by category.
get_entity_profile(entity_id)FreeSector, auditor, employees, fiscal year end, recent filings.
get_metric_history(entity_id, hub_concept_code, n_years?)FreeN-year time series with YoY growth and CAGR.
get_segments(entity_id, hub_concept_code, fiscal_year)Free (capped)Dimensional axis/member breakdown (segment, geography). Free: the axes without their members; Pro: every member.
get_amendments(entity_id, fiscal_year?)Free10-K/A restatement summary: every amendment, its per-concept changes (50 per amendment).
get_silent_restatements(entity_id, fiscal_year?)FreeSilent restatements: figures a later filing reprinted differently in its comparative columns, with no amendment filed, grouped by the filing that revealed them (50 changes per filing).
compare_entities(entity_ids, hub_concept_codes, fiscal_year)Pro (up to 10x10)Cross-issuer comparison matrix at one period, calendar-year aligned. Accepts UUIDs, tickers or TICKER.MIC.
roll_up_metric(entity_id, hub_concept_code, fiscal_year)Free (capped)Compute a value from signed children when it is not directly tagged. Free: the value; Pro: the rule and the signed contributions behind it.
convert_currency(amount, from_currency, to_currency, date?, rate_type?)FreeECB reference-rate FX conversion (closing, average YTD, average prior year).
screen_companies(country?, sector?, min_revenue?, ..., sort_by?, limit?)Free (limit 20, no quality filter) / Pro (higher)Filter the issuer universe by metadata, revenue, audit, and data quality.
get_amendment_diff(entity_id, fiscal_year?, hub_concept_code?, min_diff_pct?, kind_filter?)ProPer-concept 10-K/A diffs: materiality, kind and concept filters, label, absolute delta, both filings as sources.
get_silent_restatement_diff(entity_id, fiscal_year?, hub_concept_code?, min_diff_pct?, kind_filter?)ProThe same diff on the silent restatements.
get_calculation_tree(filing_id, link_role?)ProThe filing's calculation linkbase: every total and its components, declared sign next to the sign the filed values support.
compare_filings(entity_id, fiscal_year_a, fiscal_year_b, hub_concept_codes?)ProCross-period same-entity compare with new / removed / sign-flip / restatement flags.
get_extension_concepts(entity_id, status_filter?, limit?)ProIssuer-specific qnames declared outside standard taxonomies.
get_data_quality_grade(entity_id)FreeA+ to D grade (or none), the two gates and counts behind it, freshness, direct-vs-derived split.
get_validation_results(filing_id?, entity_id?, fiscal_year?, status_filter?)ProXBRL accounting and calculation-linkbase checks.

Resources

URITypePurpose
hub-equity://catalog/hubsjsonFull standardized hub catalog with EN/FR labels and category.
hub-equity://catalog/categoriesjsonHub counts per category.
hub-equity://catalog/tool-tiersmarkdownFree vs Pro tool catalog and gating conditions.
hub-equity://schema/financial-statementsmarkdownStatement structure and reading rules.
hub-equity://catalog/hub/{hub_code}templateForward catalog entry for one hub.
hub-equity://entity/{entity_id}/profiletemplateFull entity snapshot.
hub-equity://prompts/best-practicesmarkdownSystem-prompt guidance for client integrations. Load this before calling any tool.
hub-equity://prompts/tool-usage-examplesmarkdownPer-tool few-shot examples (good and anti-pattern).
hub-equity://prompts/data-coveragejsonLive dataset snapshot (issuer and filing counts, sources, taxonomies, fiscal year range). Cached 24h.

Prompts

Eight analytical templates: peer_comparison, quality_of_earnings, restatement_audit, sector_overview, valuation_screen, goodwill_impairment_risk, working_capital_diagnostic, cash_flow_consistency.

For client developers

Before calling any tool, fetch hub-equity://prompts/best-practices and inject the markdown into your system prompt. This makes your client follow the same tool routing, source-citation, and numeric-fidelity rules as Hub-Equity's own chat.

# Pseudo-code for a typical MCP client integration
session = mcp.connect("hub-equity-mcp")
best_practices = session.read_resource("hub-equity://prompts/best-practices")
system_prompt = "You are an assistant ...\n\n" + best_practices
# now call session.call_tool("find_entity", {"query": "AAPL"}) etc.

Rate limits

ModeLimitNotes
Free key120 requests / minuteBase tools.
Builder key300 requests / minutePremium tools unlocked.
Team key600 requests / minutePremium tools unlocked.
Enterprise key1 000 requests / minuteNegotiable.

The bucket is per API key.

On a per-minute 429 the client retries with exponential backoff (up to 3 times) before raising RateLimitExceeded. A used-up daily or monthly allowance is raised at once, with the API's message.

Troubleshooting

SymptomCauseFix
429 Too Many Requests / RateLimitExceededRate cap hit (120/min with a Free key, 300 to 1 000/min on a paid key)Move to a paid plan, or slow down the tool-call fan-out. The client already backs off up to 3 times.
HUBEQUITY_API_KEY is not set on every tool callNo key in the client's env blockSet HUBEQUITY_API_KEY; a Free key takes a minute at https://hub-equity.com/settings/api-keys.
HubEquityRestError: HTTP 401An invalid, expired or revoked hubq_ key (INVALID_API_KEY)Create a new key at https://hub-equity.com/settings/api-keys.
HubEquityRestError: HTTP 403The key's workspace is on the Free plan and the call needs a Pro tool, or a Free cap (depth > 1, limit > 20, min_quality_grade)Upgrade the plan, or stay within the Free caps.
RateLimitExceeded whose body carries DAILY_QUOTA_EXCEEDED / MONTHLY_QUOTA_EXCEEDEDThe workspace's volume allowance is used up (Free 200 a day / 5 000 a month, Builder 50 000, Team 500 000 a month); raised at once, without retryWait for resets_on, or upgrade the plan.
Connection or timeout errorsNetwork issue reaching api.hub-equity.com, or a bad HUBEQUITY_API_URLCheck connectivity; confirm HUBEQUITY_API_URL (if set) points to a reachable https:// host.
ValueError: HUBEQUITY_API_URL must use https://A key is set but the URL is plain http:// on a non-loopback hostUse https://, or unset HUBEQUITY_API_URL to fall back to the default API.
Server does not appear in Claude Desktop or CursorConfig JSON error, or pipx not on the client's PATHValidate the JSON; use the absolute path of pipx (or uvx) if the client cannot resolve it.

Run locally

python -m hub_equity_mcp.server

Or drive it interactively with the MCP inspector:

npx @modelcontextprotocol/inspector python -m hub_equity_mcp.server

The inspector lists every tool, resource and prompt and lets you call each one.

Development

pip install -e '.[dev]'
pytest tests/

Tests are hermetic: tool tests mock the REST API with respx, so no live backend is needed.

License

Apache-2.0. See LICENSE and NOTICE. This connector is an open client to the public Hub-Equity REST API; access to premium data stays gated by API key, plan, and rate limits on the service side.

來源:README.md,提交 4566ad6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v2.0.0最新Oct 6, 2026
  2. v1.0.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分