CNEquity logo

CNEquity

Query a local China A-share data lake from MCP clients, including 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",
        "mcp",
        "--config",
        "<config>"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio cnequity -- uvx cnequity mcp --config '<config>'

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx cnequity mcp --config <config>

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

CNEquity MCP server gives AI clients read-only access to a local DuckLake-based China A-share data lake. It exposes prices, fundamentals, company events, capital flows, market structure, macro data, news, and futures or options datasets through MCP. Use it when an agent needs repeatable queries over locally stored, versioned data rather than ad hoc requests to a remote API. The server supports standard local MCP usage and an HTTP mode for clients that require a public URL.

Use cases

  • Query recent A-share prices for an AI research workflow
  • Check point-in-time financial information for historical dates
  • Analyze delisted stocks in survivorship-aware research
  • Inspect capital flows, valuation, and industry datasets
  • Explore futures and options data when optional coverage is enabled

Key features

  • Read-only MCP access to a local China A-share data lake
  • Point-in-time financial data and versioned historical stock profiles
  • Parquet storage with DuckLake catalog management
  • Row-level source, version, and retrieval metadata
  • Coverage across prices, fundamentals, events, flows, and derivatives
  • Optional HTTP mode for clients requiring a public MCP URL

Security & health

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

ActiveLast checked

Recent health check succeeded.

38/38 checks healthy over the last 49d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

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

Adoption & maintenance

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

GitHub stars1.1kStargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity17 viewsConfig copies, upvotes, and views on AllMCPs.

How CNEquity works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

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 DuckLake-based China A-share data lake. Its read-only query tools cover prices, fundamentals, company events, capital flows, historical instruments, and optional futures and options datasets, with source and version metadata available for research.

Install it with `pip install cnequity`, then create a demo or formal lake with `cne init --profile demo` or `cne init`. Start MCP with `cne mcp --config /absolute/path/to/config.toml`; Python 3.11 or newer is required.

CNEquity documents use with Claude, Claude Code, ChatGPT, Codex, Gemini CLI, Cursor, and VS Code. Local clients can run the standard `cne mcp` command, while ChatGPT requires HTTP mode, a token, and a tunnel that provides a public URL.

CNEquity can query A-share prices, adjustment factors, financial statements, valuation, company events, capital flows, industry data, macro indicators, risk data, news, and sentiment datasets. Minute bars, tick data, derivatives, and some flow or news datasets must be enabled in configuration.

No. CNEquity supplies locally stored research data and read-only MCP queries, but it does not include a backtesting engine or trading-order execution. Users can access the datasets through MCP, Python, SQL, or the command-line workflow.

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>