home / mcp / tushare mcp server
Provides MCP-enabled access to Tushare financial data via HTTP and local streams for AI assistants.
Configuration
View docs{
"mcpServers": {
"buuzzy-tushare_mcp": {
"url": "https://stock-mcp.pricetrade.top/mcp",
"headers": {
"TUSHARE_TOKEN": "YOUR_TOKEN"
}
}
}
}You can use the Tushare MCP Server to connect AI assistants with comprehensive A-share financial data through the MCP protocol. It exposes stock, fund, and finance data via HTTP and local stdio modes, enabling seamless querying and data-driven AI interactions.
You access the MCP server using either an HTTP endpoint or a local stdio configuration. The HTTP option is designed for remote clients like Cursor or Claude Desktop with Streamable HTTP support. The stdio option is for local integration where the AI runs on the same machine.
Prerequisites: you need Python 3.10 or newer.
# 1. Clone the project
git clone <repository-url> tushare_mcp
cd tushare_mcp
# 2. Create a virtual environment
python3 -m venv venv
source venv/bin/activate # macOS/Linux
# venv\\Scripts\\activate # Windows
# 3. Install dependencies
pip install -r requirements.txtConfigure your environment to provide your token when needed. You can place the token in a configuration file or rely on the MCP tooling to set it.
Fetches the A-share basic information list including code, name, and listing date.
Retrieves the trading calendar for major exchanges.
Obtains basic information about listed companies (registered capital, legal person, overview).
Returns historical name change records for companies.
Provides key members of a company's management.
Delivers daily A-share price data (open, high, low, close, volume).
Provides weekly price data.
Provides monthly price data.
Gives daily indicators such as turnover, PE, PB, and market cap.
Daily suspension and resumption information.
Top ten stocks transferred via Shanghai-Hong Kong and Shenzhen-Hong Kong connect.
Profit and loss statement data.
Balance sheet data.
Cash flow statement data.
Forecast of upcoming earnings results.
Express performance brief for earnings.
Financial indicators such as EPS, ROE, gross margin.
Composition of main business.
Dates for financial disclosures.
Basic information for domestic ETFs.
ETF indexes tracked or associated with ETFs.
Daily ETF share size and total market.
Public fund data, including on-exchange and off-exchange funds.
Public fund management company directory.
Fund managers directory and resumes.
Size and share history for public funds.
Daily行情 for on-exchange funds and ETFs.
Fund adjustment factors (adjusted prices).
Net asset value history for public funds.
Dividend history for funds.
Top ten holdings for public funds.
Technical factor data for funds (MACD/RSI, etc.).
Minute-level行情 for ETFs/stocks.