DataSinking

io.github.heubme2020由 GitHub 帳號 heubme2020 發布v0.2.17更新於 Oct 24, 2026

Full-text financial reports (US, China, Japan, Korea, Taiwan, UK) as clean Markdown for RAG agents.

已驗證Streamable HTTP可網頁執行金融知識與記憶

概覽

AI 產生的概覽

DataSinking 讓助理取得美國、英國、中國、日本、韓國與台灣的財報全文,以乾淨的 Markdown 呈現,並支援依章節擷取以用於 RAG。

可以做什麼
  • 了解涵蓋範圍與公司:列出各交易所及報告數量,再列出某交易所的股票
  • 依代碼或交易所加股票代碼列出公司報告,含中繼資料與來源標註
  • 取得報告完整 Markdown 內文,或列出各章節及其大小與預估 token 數
  • 依關鍵字只取某一章節以節省 token,內文帶區塊標記便於引用段落與表格
適用情境
適合助理需要閱讀或引用美國與亞洲市場的年報、半年報與季報時使用,例如擷取數據、摘要經營討論或風險章節,或把報告文字送入 RAG 流程。
執行需求
需要 DataSinking API 金鑰,透過 Authorization Bearer 標頭或 DATASINK_API_KEY 環境變數提供。可使用 api.datasink.ing 的託管端點(HTTP,僅 POST,無狀態),或以 npx(Node 18+)或 uvx/pip(Python 3.8+)在本機執行。需要能連線至該服務的網路。
安裝前請注意
API 金鑰屬於機密;若把金鑰放在 URL 查詢參數而非標頭中,會暴露在日誌與螢幕分享中。用量以滾動 7 天視窗內的文件的數量計算,免費金鑰共用額度池,因此整間交易所之類的批次下載需要付費金鑰。報告文字來自第三方揭露平台,引用時應保留來源標註。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 DataSinking,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.heubme2020%2Fdatasinking/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "datasinking": {
      "type": "http",
      "url": "https://api.datasink.ing/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

DataSinking

[PyPI version] [MCP server]

Full-text financial reports across the US, Europe and Asia, as clean Markdown.

DataSinking serves full-text financial reports — annual, semi-annual and quarterly — from the US, China, Europe, Japan, Korea and Taiwan as clean Markdown, ready for LLM reading and RAG. Query by FMP-style symbol (AAPL, 600519.SS, 7203.T, 005930.KS, 2330.TW) or filter by exchange, report period, or section — pull just the MD&A / risk section instead of the whole filing, saving tokens. Every figure is traceable to its source disclosure and block. Reports are sourced from official disclosure platforms and parsed into structured Markdown with YAML frontmatter, preserved headings, paragraphs and tables.


MCP server

Ship DataSinking to any AI agent (Claude / Cursor / Codex / Devin Desktop / n8n) as an MCP server — 8 tools: list exchanges, list stocks, list reports, fetch a report, list sections, fetch one section (token-friendly for RAG), request a full backfill of a stock (idempotent — returns the current status if already queued), check a backfill's progress.

Hosted — nothing to install

One URL, no package, no Python, no local server. Most clients take this shape:

json
{  "mcpServers": {    "datasinking": {      "type": "http",      "url": "https://api.datasink.ing/mcp",      "headers": { "Authorization": "Bearer YOUR_KEY" }    }  }}

Claude Code, in one line:

bash
claude mcp add --transport http datasinking https://api.datasink.ing/mcp \  --header "Authorization: Bearer YOUR_KEY"

A client that can't set a header can put the key in the URL instead — https://api.datasink.ing/mcp?apikey=YOUR_KEY — but only do that when you must: a key in a URL ends up in logs and screen shares, and no client can redact it.

Two clients don't fit the shape above: Codex's config is TOML, and Devin Desktop's remote field is serverUrl, not url. Per-client files: docs/mcp/.

Local — run it yourself

If you'd rather keep everything on your own machine, there are two identical builds — pick whichever runtime you already have:

Node 18+ (no Python needed):

json
{  "mcpServers": {    "datasinking": {      "command": "npx",      "args": ["-y", "datasinking-mcp"],      "env": { "DATASINK_API_KEY": "YOUR_KEY" }    }  }}

Python 3.8+:

bash
pip install "datasinking[mcp]"datasinking-mcp          # requires DATASINK_API_KEY (free at https://datasink.ing)

Then use command: datasinking-mcp in your client.

Both run the same eight tools with the same schemas — npm/ and datasinking/mcp_server.py are kept in lockstep by check_mcp_parity.py.

Full per-client setup: mcp-server.md (overview) · docs/mcp/ (one guide per client).

The hosted endpoint is POST-only and stateless — GET /mcp returns 405, and no session id is issued. Most clients read MCP config at launch, so restart one after changing its config.

[DataSinking MCP in Claude]

What this repo is

Examples, research and tutorials showing how to work with financial report data, including reproducing the presentation styles found in financial-report research papers.

datasinking/├── examples/     # Example scripts: pull data from the API and analyze it├── research/     # Research notes / blog posts (reproducing paper-style presentation)├── datasinking/  # Python client + MCP server — pip install "datasinking[mcp]"├── npm/          # The same MCP server on npm — npx -y datasinking-mcp (Node 18+)├── r-datasinking/  # R client — remotes::install_github("heubme2020/datasinking", subdir="r-datasinking")├── docs/mcp/     # Per-client MCP setup — Claude Code, Desktop, Cursor, Codex, WorkBuddy, Devin…├── mcp-server.md # MCP server overview — endpoint, per-client table, tools, troubleshooting├── llm-examples.md  # Ask an LLM — no code needed (10 end-to-end examples)├── api-examples.md  # 8 examples × 3 interfaces (curl / Python / LLM)└── README.md

Per-client MCP guides — one file each, with the exact config path, both scopes, verification and the errors that client actually produces:

ClientGuide
Claude Codedocs/mcp/claude-code.md
Claude Desktopdocs/mcp/claude-desktop.md
OpenAI Codex CLIdocs/mcp/codex.md
WorkBuddy / CodeBuddydocs/mcp/workbuddy.md
Doubao Work / 豆包工作docs/mcp/doubao.md
Cursordocs/mcp/cursor.md
DeepSeek Harness (dsh)docs/mcp/deepseek.md
Devin Desktopdocs/mcp/windsurf.md
OpenCodedocs/mcp/opencode.md
Qoderdocs/mcp/qoder.md
Reasonixdocs/mcp/reasonix.md

Quick start

  1. Get an API key at datasink.ing
  2. One line (FMP-style ?apikey=):
bash
curl "https://api.datasink.ing/documents?symbol=600519.SS&with_content=1&apikey=YOUR_KEY"

Or in Python:

bash
pip install datasinking
python
from datasinking import DataSinking
ds = DataSinking("YOUR_KEY")for r in ds.get_stock_reports("600519.SS", limit=3):    print(r["report_period"], r["title"], len(r["content"]), "chars")

The full reference (curl / Python / LLM): api-examples.md.

Ask an LLM (no code)

Don't want to write code? Point any LLM at datasink.ing, give it your API key, and ask in plain language. See llm-examples.md for ten end-to-end examples — explore coverage, list a company's reports, and extract a figure with correct units.

RAG frameworks

Official integrations load reports straight into LlamaIndex, LangChain, or Haystack — one import, one call:

python
from datasinking.llama_index import DataSinkingReaderdocs = DataSinkingReader(api_key="YOUR_KEY").load_data("AAPL", doc_type="annual")
from datasinking.langchain import DataSinkingLoaderdocs = DataSinkingLoader(api_key="YOUR_KEY", symbol="AAPL").load()
from datasinking.haystack import DataSinkingFetcherdocs = DataSinkingFetcher(api_key="YOUR_KEY", symbol="AAPL").run()["documents"]

Pass split_by_section=True to load one Document per section (token-friendly for RAG). Each Document's metadata keeps the official disclosure source. Install the client with pip install -U datasinking; each framework is an optional dependency you install separately.

Examples (examples/)

FileWhat it does
01_quickstart.pyThe core functions: list exchanges / stocks / reports / fetch a report / fetch a stock's reports
02_download_company.pyDownload a company's full reports to local Markdown files
03_download_exchange.pyDownload an entire exchange's reports (all stocks) to local Markdown files
rag_ingest.pySlice reports into RAG chunks (on the <!-- ds:block:N --> anchors, with source traceability) and ingest into a vector store

Every example pulls from the live API and runs as-is.

03_download_exchange.py fetches every report on an exchange (e.g. all of Shenzhen — 150k+ documents). Quotas count documents, not requests, over a rolling 7-day window: a free key gets 3 req/s and 8,191 documents per 7 days, inside a pool of 524,287 per 7 days shared by all free users and website visitors. A whole exchange will therefore take well over a week on a free key — a paid (yearly) key (31 req/s, 524,287 documents per 7 days) is strongly recommended.

Research (research/)

research/ hosts research notes and blog posts, each based on DataSinking data with the source cited. You can reproduce charts and presentations found in financial-report research papers, e.g.:

  • Long-term revenue / profit trends
  • Industry comparison and distribution
  • Time series of financial metrics

Start from research/TEMPLATE.md.

Data overview

CoverageUS (NYSE / NASDAQ / OTC) · China (SSE / SZSE / BSE) · Europe (ESEF) · Japan (TSE) · Korea (KOSPI / KOSDAQ) · Taiwan (TWSE / TPEx)
Document typesannual / semiannual / q1 / q3 / amendment
Update frequencyDaily — US/Korea/Japan via official SEC EDGAR / DART / EDINET APIs (new filings within ~24h of publication)
FormatFull-text Markdown (with YAML frontmatter)
APIREST — GET /documents, batch download, with_content=1 for full text, ?section= + /sections for chapter-level access, POST /feedback for full backfill of a stock's filings
SymbolsFMP style: AAPL / 600519.SS / 7203.T / 005930.KS
Auth?apikey= query parameter (FMP style)

Data source

Reports are sourced from the official regulatory disclosure platform of each market and converted in-house to clean Markdown:

MarketSourcePlatform
US (bare ticker, e.g. AAPL)SEC EDGARUS Securities and Exchange Commission — sec.gov/edgar
China A-shares (.SS .SZ .BJ)巨潮资讯网 cninfoCSRC-designated disclosure platform
EuropeESEFEuropean Single Electronic Format — filings.xbrl.org
Korea (.KS .KQ .KN)DARTFinancial Supervisory Service — opendart.fss.or.kr
Japan (.T)EDINETFinancial Services Agency — disclosure2.edinet-fsa.go.jp
Taiwan (.TW .TWO)公開資訊觀測站 MOPSTaiwan Stock Exchange — mops.twse.com.tw

Every document also carries a source field in the API response, so the attribution travels with the data. Please keep it when you redistribute.

How to cite

If you use DataSinking in a paper, add a data-availability note (and, optionally, an acknowledgment).

Data availability:

Full-text financial reports (annual, semi-annual, and quarterly filings across the US, China, Europe, Japan, Korea, and Taiwan) were obtained from DataSinking (https://datasink.ing) in Markdown format.

BibTeX:

bibtex
@misc{datasinking2026,  author       = {{DataSinking}},  title        = {{DataSinking: Full-text financial reports as Markdown}},  year         = {2026},  howpublished = {https://datasink.ing},  note         = {Accessed: 2026-10-27}}

DataSinking provides report text, not investment advice.

Affiliate

Earn $7 every purchase for every customer you refer — recurring, PayPal, $31 minimum withdrawal: datasink.ing/affiliate

License

MIT

來源:README.md,提交 8b5663c

工具

6

list_exchanges

List exchanges

List the exchanges DataSinking covers. Returns exchange codes (bj / br / by / jpx / koe / ksc / lk / lse / nasdaq / np / nyse / otc / pk / rs / sse / szse / tpex / twse) with the number of reports available per exchange. Call this first to discover coverage. Sources: US = SEC EDGAR, A-shares = cninfo.com.cn, Japan = EDINET, Korea = DART, Taiwan = MOPS, UK = FCA NSM, Nepal = NEPSE, Brazil = CVM, Belarus = ЕПФР, Sri Lanka = CSE, Pakistan = PSX, Serbia = SEC register.

無需輸入參數。

list_stocks

List stocks

List the stocks on one exchange, including the report count per company.

輸入參數limitexchange必填

list_reports

List reports

List a company's reports — metadata only (id, title, period), no body text. Each item carries a `source` field naming the official disclosure platform; keep that attribution when you cite it. Look up by `symbol` (FMP-style, e.g. AAPL / 600519.SS / NABIL.NP) or by `exchange` + `stock_code` (from list_stocks) for markets whose codes aren't ticker-shaped (e.g. Brazil CNPJ, Sri Lanka 'AAA.N0000').

輸入參數sizesymboldoc_typeexchangestock_code

get_report

Get report

Fetch one report's full text (metadata + Markdown body). The `source` field names the official disclosure platform; keep that attribution when you cite it. Expensive in tokens — prefer get_section when you only need one chapter. Content is annotated with block markers (`<!-- ds:block:N -->`) so you can cite a specific paragraph or table.

輸入參數document_id必填

list_sections

List sections

List every section of a report with its size, before you decide what to pull. Returns `sections` (titles, in order) plus `section_details` — same order, one entry per section with `title`, `has_tables`, `chars` and `estimated_tokens`. Use `estimated_tokens` to avoid pulling a chapter that would blow your context, and `has_tables` to know whether the chapter needs special handling (tables are the part RAG pipelines usually get wrong). Then call get_section with a heading keyword — the headings are in the report's own language.

輸入參數document_id必填

get_section

Get section

Fetch only one section of a report by keyword — much cheaper than get_report, best for RAG. Content is annotated with block markers (`<!-- ds:block:N -->`) so you can cite a specific paragraph or table.

輸入參數section必填document_id必填

版本歷史

6
  1. v0.2.17最新Oct 13, 2026
  2. v0.2.14Oct 4, 2026
  3. v0.2.13Sep 27, 2026
  4. v0.2.10Sep 22, 2026
  5. v0.2.8Sep 22, 2026
  6. v0.2.2Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分