# CNEquity [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/rootSunc/CNEquity  
**GitHub Stars:** 1113  
**Views:** 17  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cnequity

## Description
China A-share data lake for AI agents: prices, fundamentals, flows and events, point-in-time.

## Claude Desktop Quick Installation
Install path inferred — verify against the README before running it. Uses `uvx` (confidence: medium):

```json
"mcpServers": {
  "cnequity": {
    "command": "uvx",
    "args": ["cnequity","mcp","--config","<config>"]
  }
}
```

## Documentation

## What CNEquity does

CNEquity provides a local data lake for Chinese A-share research and makes that lake available to AI agents through a read-only MCP interface. Its coverage spans Shanghai, Shenzhen, and Beijing equities, with related company, market, macroeconomic, and derivatives data. The project organizes 86 datasets into layers covering reference data, prices, company events, fundamentals, capital flows, industry structure, macro indicators, sentiment, risk, and derivatives.

The data model is intended for repeated research and historical analysis. It includes daily and optional intraday prices, adjustment factors, financial statements, valuation metrics, investor activity, announcements, index constituents, futures, options, and related derived datasets. Historical instrument profiles retain delisted stocks, while financial statements use point-in-time disclosure dates.

## How it works

CNEquity stores data locally as Parquet partitions managed through a DuckLake catalog. Coverage records drive incremental collection and allow interrupted jobs to continue. Rows include source, data version, and fetch timestamp fields, supporting provenance checks and reproducible reads.

Run `cne mcp` with a configuration file to expose the lake to an MCP client. Queries can be made against the locally available datasets, including examples such as recent daily prices for a stock. The same installation also provides Python and command-line access; Python callers can use `load()` to read datasets directly.

The `cne serve` command opens a browser-based console for exploring coverage and querying data. Daily maintenance can be handled with `cne run daily`, while `cne check` validates data completeness and quality.

## Setup and configuration

CNEquity requires Python 3.11 or newer and DuckDB 2.0 or newer, and supports macOS, Linux, and Windows. Install the package with:

```bash
pip install cnequity
```

Create a demonstration lake with `cne init --profile demo`, or initialize a formal lake with `cne init`. The demo configuration can then be passed to MCP:

```bash
cne mcp --config /absolute/path/to/config.toml
```

The basic collection workflow does not require an account or token. Optional data sources, including paid sources such as Tushare, can be configured for additional coverage. ChatGPT connections use HTTP mode with `--http --token` and a tunnel because ChatGPT accepts a public URL.

## Tools and capabilities

- Query read-only A-share data through MCP clients.
- Search and inspect the local dataset coverage.
- Retrieve prices, adjustment factors, fundamentals, events, valuation, and capital-flow data.
- Work with historical stock universes that include delisted securities.
- Query optional futures, options, minute-bar, news, and sentiment datasets when enabled.
- Preserve row-level source, version, and retrieval metadata.

## Limitations and notes

CNEquity is a data lake and MCP query layer, not a backtesting engine or order-execution system. The repository does not include a populated data lake; users create and maintain local data with the collection commands. Minute data, tick data, derivatives, capital-flow data, news, and popularity rankings are optional and disabled by default.

Coverage can depend on the selected upstream sources and their terms. The project is in the 0.x release line, so deployments should account for compatibility changes during upgrades. Back up the data directory before applying lake migrations. The software is Apache-2.0 licensed, while the data remains subject to upstream source licenses.

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

