CNEquity
Lets your AI agent query a local data lake of China A-share prices, financials, fund flows and events.
958 stars on GitHubby rootSuncLicense Apache-2.0Updated 20 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add cnequity -- uvx cnequity mcp --config "<config>"
Ready! Now test it
Restart the app and paste one of these requests in the chat:
What was the highest closing price of CATL in the last 30 trading days?
Show the daily prices for 600519.SH with adjustment for dividends.
What it is
CNEquity is an open-source tool that downloads China A-share market data into local files and lets an AI agent read it over MCP, read-only. It covers daily prices, adjustment factors, company financials, valuation, fund flows, announcements and more, in 57 datasets. It keeps delisted stocks and records where each row came from. It does not include a backtesting engine or order placing.
What it can do
- Query daily prices with adjustment factors
- Read financial statements with point-in-time announcement dates
- Look up the stock universe and delisting events
- Read valuation, fund flow and industry data
- Read futures and options data when those datasets are turned on
cne mcp: run the read-only MCP server over your local data
When to use
- βΊWhen you want your agent to answer questions about Chinese stock prices from your own data
- βΊWhen you are researching A-share history and need delisted stocks and correct report dates
- βΊWhen you want to check fund flows or valuations without signing up for a data service
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
akshareLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.equiblesHelps your agent search for US stock market data. Allows analysis of financial reports, call transcripts, and stock prices.vibe-tradingGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.Frequently asked questions
Is it free and open source?
The code is Apache-2.0. Data is subject to upstream licenses, and the repository does not ship the data itself.
Do I need an account or token?
No. Basic collection needs no account or token.
Which AI clients can use it?
Claude, ChatGPT, Codex, Gemini CLI, Cursor, VS Code and other MCP clients. ChatGPT needs a public URL through cne mcp --http --token and a tunnel.
Can it change my data or place trades?
No. The MCP connection is read-only, and the project has no backtesting engine or order placing.
How do I keep the data current?
Run cne run daily each day, or install a daily schedule with cne schedule install.
How long does a trial take?
cne init --profile demo takes about a minute and fetches 5 stocks over the last 30 trading days.
If it does not work
- βΊUse an absolute path for --config when you register the server with your agent.
- βΊRun cne check to see whether the data is complete and usable.
- βΊBuild the lake first with cne init (or cne init --profile demo), since the server reads local files.
5 new skills a week. 1 minute to read.