# DataSinking [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/heubme2020/datasinking  
**GitHub Stars:** 24  
**npm Downloads (last month):** 547  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/datasinking

## Description
Full-text Asian financial reports (China, Korea, Japan) as clean Markdown — 6 tools for RAG agents.

## Tools
Capabilities this server exposes over MCP:

- **list_exchanges** — List the exchanges DataSinking covers. Returns exchange codes (nyse / nasdaq / cboe / sse / szse / bj / jpx / ksc / koe / knx / twse / tpex / lse) 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.
- **list_stocks** — List the stocks on one exchange, including the report count per company.
- **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.
- **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.
- **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.
- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

**Requires environment variables:** `DATASINK_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What DataSinking does

DataSinking exposes financial-report discovery and retrieval through the Model Context Protocol. Its coverage includes exchanges and disclosure sources across the United States, Europe, China, Japan, Korea, and Taiwan. Reports may be annual, semiannual, quarterly, or amendments, and are returned as structured Markdown with preserved headings, paragraphs, tables, and YAML frontmatter.

The server uses FMP-style symbols such as `AAPL`, `600519.SS`, `7203.T`, `005930.KS`, and `2330.TW`. Exchange and company listings help an agent find available data before requesting a filing. Each report includes metadata such as its title and period, while retrieved content identifies the official disclosure platform that supplied it.

## How it works

A typical workflow starts with `list_exchanges`, followed by `list_stocks` for a selected exchange and `list_reports` for a company. `list_sections` then exposes the report's headings, character counts, estimated token usage, and table indicators. An agent can use that information to choose a relevant chapter and call `get_section` instead of loading the entire filing.

`get_report` returns the complete report and its Markdown body. `get_section` retrieves one chapter by a keyword from the report's own headings. Both content-retrieval tools add `<!-- ds:block:N -->` markers, allowing applications to associate a paragraph or table with a specific block when building citations or RAG chunks.

The MCP implementation is available through a hosted HTTP endpoint or as a local process. The hosted service is stateless and accepts POST requests. Local Node.js and Python distributions expose the same tool set and schemas. The repository also includes clients and loaders for LlamaIndex, LangChain, and Haystack, although those are separate from MCP client configuration.

## Setup and configuration

A hosted connection uses `https://api.datasink.ing/mcp` with an authorization bearer token. Clients that cannot send headers can place the API key in an `apikey` query parameter, though URL-based keys may appear in logs or screen shares. Client configuration may need to be reloaded after changes.

For local execution, the Node package runs with Node.js 18 or newer through `npx -y datasinking-mcp`. The Python package can be installed with `pip install "datasinking[mcp]"` and started with `datasinking-mcp`; Python 3.8 or newer is supported. Local processes read the `DATASINK_API_KEY` environment variable.

The server requires an API key available from DataSinking. Usage quotas count documents rather than requests over a rolling seven-day period. Free access has request and document limits, while downloading a complete exchange can require a paid yearly key because of the number of documents involved.

## Tools and capabilities

- `list_exchanges` reports supported exchange codes and the number of available reports.
- `list_stocks` enumerates companies on an exchange with report counts.
- `list_reports` returns report metadata without downloading body text.
- `get_report` retrieves a complete Markdown report.
- `list_sections` describes headings, table presence, character counts, and estimated tokens.
- `get_section` retrieves one report chapter by heading keyword.
- Backfill operations can request a full stock backfill and check its progress; repeated requests return the existing queued status.

## Limitations and notes

Complete reports can consume substantial context, so section discovery should precede retrieval when only one chapter is needed. Report headings remain in their source language, making the heading keyword important when calling `get_section`. Tables are flagged by `list_sections` because they often need additional handling in RAG pipelines.

The hosted endpoint is POST-only and does not issue a session identifier. Official disclosure attribution is carried in each report's `source` field and should be retained when citing extracted material. Exchange-wide downloads can take more than a week under free quotas, particularly for exchanges with very large document collections.

_Full upstream README: https://allmcps.com/mcp/datasinking/readme_

