Metadata-Version: 2.4
Name: datasinking-mcp
Version: 0.1.0
Summary: MCP server for DataSinking — full-text Asian financial reports (China, Korea, Japan) as Markdown, for AI agents.
Author: DataSinking
License: MIT
Project-URL: Homepage, https://datasink.ing
Project-URL: Documentation, https://datasink.ing/docs
Project-URL: Repository, https://github.com/heubme2020/datasinking-mcp
Keywords: mcp,model-context-protocol,financial-reports,a-share,korea,japan,markdown,rag,llm,ai
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp>=1.0.0
Requires-Dist: requests>=2.28
Dynamic: license-file

# DataSinking MCP

[![PyPI version](https://img.shields.io/pypi/v/datasinking-mcp.svg)](https://pypi.org/project/datasinking-mcp/)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![MCP](https://img.shields.io/badge/MCP-Protocol-orange.svg)](https://modelcontextprotocol.io)
[![Python](https://img.shields.io/badge/Python-3.10+-blue.svg)](https://www.python.org)

**Asian financial reports as full-text Markdown, for AI agents.**

An [MCP](https://modelcontextprotocol.io) server that exposes the
[DataSinking](https://datasink.ing) API to any MCP-compatible AI client
(Claude, Cursor, Codex, DeepSeek, Windsurf, …). Ask for a company's annual
report, a specific chapter (MD&A, risk, notes), or explore coverage — no code
needed.

- **Full-text Markdown** — China (SSE/SZSE/BSE) · Korea (KOSPI/KOSDAQ/KONEX) · Japan (TSE)
- **Chapter-level access** — pull just the MD&A / risk section to save tokens (built for RAG)
- **FMP-style symbols** — `600519.SS` (Moutai), `005930.KS` (Samsung), `7203.T` (Toyota)

## Quick start

```bash
# 1. Get a free API key (no credit card):
#    https://datasink.ing  →  POST /free-key
export DATASINK_API_KEY="YOUR_KEY"

# 2. Add to Claude Code:
claude mcp add datasinking -e DATASINK_API_KEY="$DATASINK_API_KEY" -- uvx datasinking-mcp
```

Or add to any MCP client's config (same `command` + `args` + `env` shape):

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

## Tools

| Tool | What it does | API |
|------|-------------|-----|
| `list_exchanges` | List covered exchanges | `/exchanges` |
| `list_stocks(exchange)` | List stocks on an exchange | `/stocks` |
| `list_reports(symbol, doc_type, size)` | List a company's reports (metadata) | `/documents` |
| `get_report(document_id)` | Get a report's full text | `/documents/{id}` |
| `list_sections(document_id)` | List a report's section headings | `/documents/{id}/sections` |
| `get_section(document_id, section)` | Get one section only (token-efficient, for RAG) | `/documents/{id}?section=` |

## Supported clients

MCP is an open standard; these clients connect the same way:

| Client | How to add |
|--------|------------|
| Claude Code | `claude mcp add datasinking -- uvx datasinking-mcp` |
| Claude Desktop | `Settings → Developer → Edit Config` (JSON above) |
| Cursor | `Settings → MCP → Add server` (JSON above) |
| OpenAI Codex | `~/.codex/config.toml` → `[mcp_servers.datasinking]` |
| Windsurf | `Settings → MCP` |
| DeepSeek | MCP config (JSON above) |

## Install from source

```bash
pip install datasinking-mcp
```

Requires Python 3.10+ and a DataSinking API key ([free](https://datasink.ing)).

## Docs

- API reference: <https://datasink.ing/docs>
- OpenAPI spec: <https://api.datasink.ing/openapi.json>
- LLM examples: <https://github.com/heubme2020/datasinking/blob/main/llm-examples.md>

## License

[MIT](LICENSE)
