MCP BaoStock Server
by HuggingAGI
MCP BaoStock Server is a stock data server based on BaoStock, providing multiple interfaces for obtaining stock market data. It offers functionalities like querying stock information, historical data, industry classification, and financial indicators.
Last updated: N/A
What is MCP BaoStock Server?
MCP BaoStock Server is a server that provides access to stock market data using the BaoStock library. It offers various APIs to retrieve information about stocks, historical data, financial indicators, and more.
How to use MCP BaoStock Server?
To use the server, ensure you have Python 3.10+ installed along with the baostock
and pandas
libraries. Install the dependencies and then run the server using the command uv run mcp-baostock-server
. Refer to the provided test cases for example API usage.
Key features of MCP BaoStock Server
Stock basic information query
K-line historical data retrieval
Industry classification data query
Dividend data query
Quarterly financial indicator data (profitability, operational capability, growth capability)
Index data query
Valuation indicator data query
Use cases of MCP BaoStock Server
Analyzing stock performance over time
Identifying industry trends
Evaluating company financial health
Building trading strategies based on historical data
FAQ from MCP BaoStock Server
What is BaoStock?
What is BaoStock?
BaoStock is a free, open-source Python library for accessing Chinese stock market data.
What data can I get from this server?
What data can I get from this server?
You can retrieve stock basic information, K-line historical data, industry classification, dividend data, quarterly financial indicators, index data, and valuation indicator data.
What are the dependencies for running this server?
What are the dependencies for running this server?
The server requires Python 3.10 or higher, the baostock
library, and the pandas
library.
How do I install the dependencies?
How do I install the dependencies?
You can install the dependencies using pip: pip install baostock pandas
.
Where can I find more information about the API endpoints?
Where can I find more information about the API endpoints?
Refer to the provided test cases in the README for examples of how to use the various API endpoints.