Content
# Introduction
This is an MCP (Model Content Protocol) service that provides A-share data for large models.
Currently, the stock data provides the following information for large models:
- Basic Information: including stock name, sector, etc.
- Market Data: current market conditions, as well as relevant historical statistics for reference
- Financial Data: major financial data of the company in recent years
- Technical Indicators: several commonly used technical indicators
These data are divided into three tools:
- brief: provides basic information and market data for a given stock
- medium: offers all basic data and some financial data
- full: provides all medium data and technical indicators
The large model can choose to call these based on the user's questions.
## Disclaimer
This project strives to ensure accuracy and usability to the best of its ability, but it assumes no responsibility for any consequences arising from its use. By using this MCP, you agree to this disclaimer.
# Usage
Due to the large amount of stock data, we provide a public service address. Please refer to the [tests/test.sh](tests/test.sh) file, which contains some test cases and related usage instructions.
You will need an MCP client to connect to this service. Below are some common configuration methods for the MCP client.
## Important Update 2025-11-22
Updated the MCP protocol to `streamable-http`, the test service address has changed to
`http://82.156.17.205/cnstock/mcp`
## CherryStudio
[CherryStudio](https://github.com/CherryHQ/cherry-studio) is a client that supports MCP, offering a user-friendly interface and a wealth of features.
### Configuration
The configuration path is
> Left sidebar -> Settings -> MCP Settings -> Add Server
In the pop-up dialog, fill in the relevant information as shown in the figure below.
Then enable it.

### Usage

## DeepChat
[DeepChat](https://github.com/ThinkInAIXYZ/deepchat) is a client that supports MCP, offering a user-friendly interface and a wealth of features.
### Configuration
The configuration path is
> Left sidebar -> Settings -> MCP Server -> Add Server
In the pop-up dialog, fill in the relevant information as shown in the figure below.
Then enable it.

### Usage

# Use Cases
## Market Analysis
### System Prompt
```
You are a professional investment advisor. Please infer the stock code based on the user's input, and then call the relevant tools to perform trend analysis.
Please indicate the current data date during the analysis.
You should apply your knowledge of finance to provide a professional interpretation of the data.
```
### User Input
```
Shanghai Pudong Development Bank
```
### Model Response
```markdown
Okay, I will analyze the stock trend of Pudong Development Bank. The stock code for Pudong Development Bank is **SH600000** (listed on the Shanghai Stock Exchange). I will call the relevant tools to obtain the latest data and perform the analysis.
```
# Shanghai Pudong Development Bank (SH600000) Stock Trend Analysis
**Data Date: May 6, 2025**
The following is a detailed analysis of Shanghai Pudong Development Bank (SH600000), based on the latest data provided, interpreted from multiple perspectives including fundamentals, trading data, technical indicators, and more.
## 1. Fundamental Analysis
- **Industry Concept**: Pudong Development Bank belongs to the trust concept, state-owned capital holdings, cross-border payment (CIPS), and high dividend selection sectors. These labels indicate its diversified business layout in the financial field, particularly in the high dividend area, which may be attractive to investors seeking stable returns.
- **Price-to-Earnings Ratio (PE)**: 4.90, which is at a low level, indicating that the stock valuation is relatively low and may be undervalued by the market, but it may also reflect the market's pessimism about its future growth expectations.
- **Price-to-Book Ratio (PB)**: 0.33, significantly below 1, indicating that the stock price is below the net asset value per share, which may present a value investment opportunity, but it may also reflect issues with asset quality or profitability.
- **Return on Equity (ROE)**: 2.65%, relatively low, showing that the company's capital utilization efficiency is not high and its profitability needs improvement.
### Financial Data Trends
From the financial data of the past five years:
- **Main Revenue**: There was a downward trend from 2020 to 2022, a slight rebound in 2023, but a small decline again in 2024 to 170.748 billion yuan, indicating weak business growth.
- **Net Profit**: It continuously decreased from 2020 to 2022, rebounded to 36.702 billion yuan in 2023, and further increased to 45.257 billion yuan in 2024, indicating a gradual recovery in profitability.
- **Earnings Per Share (EPS)** and **Net Asset Value (NAV)**: EPS fell from 1.88 yuan in 2020 to 1.07 yuan in 2023, then rebounded to 1.36 yuan in 2024; NAV continued to grow, reaching 22.36 yuan in 2024, showing strong asset accumulation capability of the company.
- **Return on Equity (ROE)**: It decreased from 10.46% in 2020 to 5.10% in 2023, with a slight rebound to 6.08% in 2024, reflecting that profitability efficiency has not yet returned to previous levels.
**Fundamental Summary**: Pudong Development Bank currently has a low valuation, presenting certain value investment potential, but faces challenges in profitability and business growth. The rebound in net profit is a positive signal, but the fluctuations in main revenue and low ROE indicate that its long-term growth still needs to be monitored.
## 2. Transaction Data Analysis
### Price Trend
- **Short-term (5 days)**: Average price 10.858 CNY, highest 11.190 CNY, lowest 10.570 CNY, cumulative change +5.48%, indicating strong upward momentum in the stock price in the short term.
- **Medium-term (20 days)**: Average price 10.510 CNY, cumulative change +6.58%, with a wide price fluctuation range (highest 11.190 CNY, lowest 9.460 CNY), suggesting an upward trend in the medium term, but with higher volatility.
- **Long-term (240 days)**: Average price 9.468 CNY, cumulative change +43.21%, indicating a very strong long-term trend, with the stock price rising from a low of 7.760 CNY to the current level, reflecting a gradual increase in market confidence in this stock.
### Trading Volume and Turnover Rate
- **Trading Volume**: The trading volume for the day was 972,600 lots, significantly higher than the 5-day average volume (672,100 lots) and the 20-day average volume (696,000 lots), indicating an increase in market participation and noticeable capital inflow recently.
- **Turnover Rate**: The turnover rate for the day was 0.33%, with a total turnover rate of 1.14% over the past 5 days and 4.74% over the past 20 days, showing high trading activity in the short term. However, in the long term, the turnover rate is relatively low (240-day average turnover rate of 0.17%), suggesting that investors tend to hold their positions.
### Amplitude
- **Short-term (5 days)**: Amplitude 5.87%, indicating moderate short-term fluctuations.
- **Long-term (240 days)**: Amplitude 44.20%, suggesting significant price volatility over the long term, requiring investors to pay attention to risks.
**Trading Data Summary**: Recently, the price of Pudong Development Bank has shown an upward trend, particularly with strong short-term and medium-term momentum. The increased trading volume indicates heightened capital interest. However, the large long-term amplitude warns investors to be cautious of potential price correction risks.
## 3. Technical Specifications Analysis
### KDJ Indicator
- Latest Data (2025-05-06): K=86.38, D=81.30, J=96.54, at a high level, indicating that the stock price is in an overbought state in the short term and may face correction pressure.
- Trend: The KDJ indicator has shown an overall upward trend over the past 30 days, with the J value exceeding 100 multiple times, reflecting a relatively optimistic market sentiment, but caution is needed regarding the overbought risk.
### MACD Indicator
- Latest data: DIF=0.16, DEA=0.10, DIFF>DEA, and DIFF continues to expand, indicating that bullish momentum is strengthening, with the short-term trend still being bullish.
- Trend: The MACD indicator has shifted from negative to positive over the past 30 days, indicating that the stock price has transitioned from weak to strong, and is currently still in a bullish arrangement.
### RSI Indicator
- Latest Data: RSI(6)=77.85, RSI(12)=67.60, RSI(24)=61.28, where RSI(6) is in the overbought zone (>70), indicating a potential need for adjustment in the short term.
- Trend: The RSI indicator is overall above 50, showing that the market is in a strong position, but the short-term overbought signal needs attention.
### Bollinger Bands (BBands)
- Latest data: Upper band 11.26 CNY, Middle band 10.86 CNY, Lower band 10.47 CNY, current stock price 11.17 CNY is close to the upper band, indicating that the price is at a high level and may face resistance in the short term.
- Trend: The Bollinger Bands have been widening recently, indicating increased volatility. After breaking through the middle band, the stock price has continued to approach the upper band, showing that bullish strength is dominant.
**Technical Indicator Summary**: Multiple indicators suggest that Shanghai Pudong Development Bank (浦发银行) is in an overbought state in the short term. Both KDJ and RSI indicate a risk of a pullback, but MACD and Bollinger Bands still show a bullish trend. The upward momentum may continue in the short term, and investors are advised to pay attention to buying opportunities after a pullback.
## 4. Comprehensive Analysis and Investment Recommendations
### Advantages
1. **Low Valuation**: Both the price-to-earnings (市盈率) and price-to-book (市净率) ratios are at relatively low levels, presenting a certain appeal for value investing.
2. **Long-term Upward Trend**: The 240-day price change has reached 43.21%, indicating strong long-term market confidence.
3. **Strong Short-term Momentum**: The 5-day and 20-day price changes are 5.48% and 6.58% respectively, with increased trading volume and noticeable capital inflow.
4. **Financial Improvement**: Net profit and earnings per share (每股收益) are expected to rebound in 2024, indicating a gradual recovery in profitability.
### Risks
1. **Low Profitability Efficiency**: The return on equity (净资产收益率) is low, business growth is weak, and main revenue (主营收入) fluctuates significantly.
2. **Short-term Overbought**: Technical indicators show that the stock price is in an overbought state, which may face correction pressure in the short term.
3. **High Volatility**: There is a large long-term amplitude, and investors need to pay attention to market volatility risks.
### Investment Advice
- **Short-term Investors**: The current stock price is at a high level, and technical indicators show overbought conditions. It is recommended to wait and observe, considering entry when the price pulls back to the middle band of the Bollinger Bands (10.86 CNY) or lower levels.
- **Medium to Long-term Investors**: Given the undervaluation and long-term upward trend, consider building positions in batches during pullbacks, focusing on the support level of 10.50-10.80 CNY, while also setting stop-loss levels to control risk.
- **Risk Control**: It is advisable to monitor whether the subsequent trading volume continues to expand. If the trading volume shrinks and the stock price falls below 10.47 CNY (Bollinger Bands lower band), be cautious of further downside risks.
**Summary**: Pudong Development Bank currently has certain investment value, but short-term overbought risks should be noted. Investors should formulate reasonable operational strategies based on their own risk tolerance and investment horizon.
## Data Interpretation
### System Inscription
None
### User Input
```
Has Shanghai Pudong Development Bank been volatile recently?
```
### Model Response
```markdown
To analyze the recent volatility of Shanghai Pudong Development Bank (浦发银行), I will infer its stock code and call relevant tools to obtain data. The stock code for Shanghai Pudong Development Bank is **SH600000** (listed on the Shanghai Stock Exchange). I will use the `brief` function to obtain basic trading data for an initial assessment of its volatility. If a more detailed analysis is required, I will further call other tools.
```
# Recent Volatility Analysis of Pudong Development Bank (SH600000)
**Data Date: May 6, 2025**
## 1. Price Fluctuation Analysis
- **Daily Fluctuation**: The daily price fluctuation of Shanghai Pudong Development Bank (浦发银行) is **5.57%**, with prices fluctuating between **10.80 Yuan and 11.19 Yuan**, and the closing price is **11.17 Yuan**, up **1.92%** from the previous day.
- **Short-term Fluctuation (5 Days)**: The price fluctuation over the past 5 days is **5.87%**, with a price range of **10.57 Yuan to 11.19 Yuan**, an average price of **10.858 Yuan**, and a cumulative increase of **5.48%**. The fluctuations in the short term are relatively mild, but there is some upward momentum.
- **Medium-term Fluctuation (20 Days)**: The price fluctuation over the past 20 days is significant, at **18.29%**, with a price range of **9.46 Yuan to 11.19 Yuan**, an average price of **10.51 Yuan**, and a cumulative increase of **6.58%**. The medium-term fluctuations indicate a strong price recovery trend.
- **Long-term Fluctuation (240 Days)**: The price fluctuation over the past 240 days is very pronounced, at **44.20%**, with a price range of **7.76 Yuan to 11.19 Yuan**, an average price of **9.468 Yuan**, and a cumulative increase of **43.21%**. In the long term, the stock price of Shanghai Pudong Development Bank shows a strong upward trend.
## 2. Volume and Turnover Rate Analysis
- **Daily Volume**: The daily volume is **972,600 lots**, significantly higher than the 5-day average volume (**672,100 lots**) and the 20-day average volume (**696,000 lots**), indicating an increase in market participation on that day.
- **Turnover Rate**: The daily turnover rate is **0.33%**, higher than the 5-day average turnover rate (**0.23%**) and the 20-day average turnover rate (**0.24%**). Although the overall turnover rate is not high, there has been an increase in market activity in the short term.
## 3. Valuation Metrics Analysis
- **Price-to-Earnings Ratio (PE)**: Currently at **4.90**, which is at a low level, indicating that the stock is relatively undervalued and may have room for appreciation.
- **Price-to-Book Ratio (PB)**: Currently at **0.33**, significantly below 1, showing that the market values the company's net assets low, potentially making it a target for value investment.
- **Return on Equity (ROE)**: Currently at **2.65%**, indicating that the company's profitability is average, and attention should be paid to its future profit improvement.
## 4. Comprehensive Interpretation and Investment Suggestions
From the perspective of price fluctuations, the stock price of Pudong Development Bank has shown a certain upward trend recently (especially over the past 5 days and 20 days), but the volatility has been relatively controllable in the short term (5-day amplitude of 5.87%), without exhibiting severe fluctuations. In the medium to long term (240-day amplitude of 44.20%), the stock price has experienced significant increases, indicating a strong trending market.
The increase in trading volume and turnover rate suggests that market attention towards Pudong Development Bank has risen, particularly the significant expansion of trading volume on that day, which may indicate that there is still upward momentum in the short term. However, the overall turnover rate is relatively low, and market liquidity is average, necessitating caution regarding potential risks of declining trading volume.
From a valuation perspective, Pudong Development Bank's price-to-earnings (市盈率) and price-to-book (市净率) ratios are both at relatively low levels, indicating a certain attractiveness for value investing. However, the low return on equity (净资产收益率) suggests that its profitability needs improvement, and investors should pay attention to its subsequent financial report data and changes in the industry environment.
**Summary**: The recent volatility of Pudong Development Bank is not significant in the short term, but the medium to long-term trend shows strong upward momentum. Considering its undervaluation characteristics, it can be appropriately monitored in the short term, but caution is advised regarding changes in trading volume and potential risks to profitability. Investors are recommended to closely observe the further catalytic effects of industry policies (such as high dividend policies, cross-border payment concepts, etc.) on stock prices.
If you need more detailed financial data or technical analysis indicators, you can further invoke the “medium” or “full” tools for in-depth analysis.
# Common QA Questions
## Is there a fee for using the stock MCP service?
This service is currently available for a limited-time free trial. Please stay tuned for updates on the project homepage https://github.com/elsejj/mcp-cn-a-stock.
## How to Deploy Privately
For private deployment, you need to replace the data source used in this project with your own data. Please refer to the [related discussion](https://github.com/elsejj/mcp-cn-a-stock/issues/1).
## Missing Data for Certain Indicators
Currently, it mainly covers the A-shares of the Shanghai and Shenzhen main boards, with no plans for others at this time.
## Call Frequency, Rate Limiting, etc.
There are no restrictions for normal use, as the time required for the model invocation tool analysis is much greater than the MCP return time. However, batch polling of data may be subject to rate limiting.
## Accuracy, Availability, etc.
We will strive to ensure accuracy and availability as much as possible, but we do not take any responsibility for any results caused by this. Additionally, due to factors such as large model hallucinations, knowledge scope, and understanding, users should carefully discern whether the responses are reliable.
## Contact Information
Please raise issues at https://github.com/elsejj/mcp-cn-a-stock/issues or send an email to cs@kanhq.com. Thank you.
Connection Info
You Might Also Like
MarkItDown
Python tool for converting files and office documents to Markdown.
MarkItDown MCP
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.
Sequential Thinking
A structured MCP server for dynamic problem-solving and reflective thinking.
Fetch
Retrieve and process content from web pages by converting HTML into markdown format.
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.