CNEquity logo

CNEquity

Read-only MCP access to a local Parquet lake of China A-share prices, fundamentals, flows, events, and derivatives.

Install CNEquity

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cnequity": {
      "command": "uvx",
      "args": [
        "cnequity"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

CNEquity MCP server connects AI clients to a locally managed Parquet data lake for China A-share research. It exposes read-only queries across market prices, fundamentals, company events, capital flows, macro indicators, and derivatives, with point-in-time financial data and row-level provenance. Use it when you need repeatable, self-hosted access to historical Chinese market data rather than a live trading or order-execution system. Data collection and updates run through the CNEquity CLI, while MCP provides the AI-facing query interface.

Use cases

  • Query recent and historical A-share prices
  • Build point-in-time fundamental research datasets
  • Analyze historical universes including delisted stocks
  • Study valuation, capital flows, and industry rotation
  • Inspect futures and options market data

Key features

  • Read-only MCP access to a local Parquet data lake
  • 57 curated and derived financial datasets
  • Point-in-time financial statements
  • Delisted-security retention and row-level provenance
  • Incremental collection with resumable runs
  • CLI checks for completeness and data quality

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

11/11 checks healthy over the last 24d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · cnequity (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars958Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Directory activity10 viewsConfig copies, upvotes, and views on AllMCPs.

How CNEquity works

What CNEquity does

CNEquity provides a local data lake for Chinese A-share research, quantitative analysis, and backtesting. It organizes 57 datasets into local Parquet files, including 49 curated datasets and 8 derived datasets. Coverage spans Shanghai, Shenzhen, and Beijing securities, with data for prices, trading calendars, instruments, trading status, corporate actions, announcements, financial statements, valuation, ownership, consensus estimates, capital flows, industries, macro indicators, news, sentiment, risk events, futures, and options.

The MCP interface gives AI clients read-only access to the data lake. Queries can cover daily prices, adjusted-price factors, point-in-time financial information, historical universes, delisting events, valuation, flow data, industry structures, and derivatives. The dataset design retains delisted securities and records source, version, and collection time at row level, supporting historical research and auditability.

CNEquity is intended for maintaining and querying a local historical store. It is not a backtesting engine and does not place orders.

How it works

Install the Python package and initialize a data profile with the cne command-line interface. A demo profile can download recent data for five stocks and create an isolated lake; a full initialization can build a broader Shanghai, Shenzhen, and Beijing market lake. Initialization supports interruption and continuation, and later daily runs update the stored data incrementally.

After initialization, start the MCP process with cne mcp --config and point an MCP-compatible client at the command. The configuration path should be absolute when registering the server with a client. The MCP connection exposes the local lake without requiring an account or token for basic collection.

The server can also run over HTTP with cne mcp --http --token. The documented ChatGPT workflow uses a publicly reachable URL, so an HTTP deployment may need a tunnel. A browser-based cne serve console is available separately for inspecting lake status, coverage, daily details, and quality checks.

Setup and configuration

CNEquity requires Python 3.10 or newer and supports macOS, Linux, and Windows. Install it with:

Terminal
pip install cnequity

For a quick test, run:

bash
cne init --profile demo
cne serve --config configs/cnequity.demo.toml

For a formal lake, use cne init, then validate it with cne check. Run cne run daily to refresh the lake, or install a user-level scheduled task with cne schedule install. Configuration upgrades and migrations use cne config upgrade and cne migrate; migrations can be previewed before applying changes.

Optional datasets such as minute bars, tick data, futures and options, capital-flow data, news, and popularity rankings must be enabled when needed. The repository does not include a prebuilt data lake; users collect and store the data locally.

Tools and capabilities

  • Query daily stock and index prices, adjustment factors, and selected intraday data.
  • Retrieve point-in-time financial statements based on announcement dates.
  • Examine instruments, trading status, delisting events, and historical stock universes.
  • Analyze valuation, ownership, industry composition, market breadth, and capital flows.
  • Query corporate actions, announcements, earnings schedules, and regulatory events.
  • Work with futures and options contracts, contract-level prices, continuous contracts, Greeks, and minute data.
  • Connect AI clients through a read-only MCP interface.
  • Check lake completeness and data-quality results with the CLI.

Limitations and notes

The project is in the 0.x series. It does not include a backtesting engine or trading-order interface. Data availability varies by dataset and source, and expanded datasets are disabled by default. Upstream data-source licenses apply in addition to the software license.

Historical-universe research should account for survivorship bias: a current security list is not a substitute for the constituents that existed on a historical date. Point-in-time financial data and retained delisted securities are available to support this type of analysis, but research logic still needs to use the appropriate dates and datasets.

The software is licensed under Apache-2.0. Basic collection does not require registration or an access token, while HTTP MCP deployments can be protected with the command's token option.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about CNEquity

CNEquity is an MCP server that connects AI clients to a local Parquet data lake containing China A-share market data. Its main tools provide read-only queries across prices, fundamentals, company events, flows, macro data, and derivatives, with point-in-time financial data and row-level provenance.

Install it with `pip install cnequity`, then initialize a demo or full data profile with the `cne` CLI. Register the MCP command using `cne mcp --config` and an absolute configuration path. Python 3.10 or newer is required on macOS, Linux, or Windows.

Yes, CNEquity can be connected to Cursor through its MCP configuration. The server uses the standard `cne mcp --config` command for local read-only access; the repository provides client-specific MCP connection instructions.

Yes, but the documented ChatGPT setup uses a publicly reachable HTTP URL. Run `cne mcp --http --token` and expose the service through a tunnel or another public endpoint.

No. CNEquity provides data collection, local storage, validation, and read-only MCP queries. It does not include a backtesting engine or an order-execution interface.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCNEquity AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cnequity?style=directory)](https://allmcps.com/mcp/cnequity)
HTML Embed
<a href="https://allmcps.com/mcp/cnequity"><img src="https://allmcps.com/api/badge/cnequity?style=directory" alt="CNEquity on AllMCPs" /></a>