Content
# Introduction
This is an MCP (Model Content Protocol) service that provides A-share data for large models.
Currently, stock data provides the following data for large models:
- Basic information: including stock name, sector, etc.
- Market data: current market conditions and related historical statistics for reference
- Financial data: main financial data of the company in recent years
- Technical indicators: several commonly used technical indicators
This data is divided into three tools:
- brief: Provides basic information and market data for a given stock
- medium: Provides all basic data and some financial data
- full: Provides all medium data and technical indicators
The large model selects and calls them according to the user's needs.
## Disclaimer
This project will do its best to ensure accuracy and availability, but it is not responsible for any consequences arising therefrom. By using this MCP, you accept this disclaimer.
# Usage
Since the stock data is relatively large, we provide a public service address. See the [tests/test.sh](tests/test.sh) file, which contains some test cases and related usage methods.
Then you need an MCP client to connect to this service. Here are some common MCP client configuration methods.
## Important Update 2025-11-22
Update the MCP protocol to `streamable-http`, and the test service address has been changed to
`http://82.156.17.205/cnstock/mcp`
## CherryStudio
[CherryStudio](https://github.com/CherryHQ/cherry-studio) is an MCP-enabled client that provides a user-friendly interface and rich features.
### Configuration
The configuration path is
> Left sidebar -> Settings -> MCP Settings -> Add Server
In the pop-up dialog box, fill in the relevant information as shown in the figure below.
Then enable it.

### Usage

## DeepChat
[DeepChat](https://github.com/ThinkInAIXYZ/deepchat) is an MCP-enabled client that provides a user-friendly interface and rich features.
### Configuration
The configuration path is
> Left sidebar -> Settings -> MCP Server -> Add Server
In the pop-up dialog box, 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 analyze the trend.
Please indicate the current data date in the analysis.
You should apply your financial knowledge and focus on professional interpretation of the data.
```
### User Input
```
浦发银行
```
### Model Reply
```markdown
Okay, I will analyze the stock trend of Shanghai Pudong Development Bank. The stock code of Shanghai Pudong Development Bank is **SH600000** (listed on the Shanghai Stock Exchange). I will call the relevant tools to obtain the latest data and analyze it.
# Stock Trend Analysis of Shanghai Pudong Development Bank (SH600000)
**Data Date: May 6, 2025**
The following is a detailed analysis of Shanghai Pudong Development Bank (SH600000), based on the latest data provided, combined with financial knowledge, and interpreted from multiple perspectives such as fundamentals, transaction data, and technical indicators.
---
## 1. Fundamental Analysis
- **Industry Concept**: Shanghai Pudong Development Bank belongs to the concept sectors of trust concept, Central Huijin holdings, cross-border payment (CIPS) and high dividend selection. These labels indicate that it has a diversified business layout in the financial field, especially in the high dividend field, 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, which may be underestimated by the market, but it may also reflect the market's pessimistic expectations for its future growth.
- **Price-to-Book Ratio (PB)**: 0.33, which is far lower than 1, indicating that the stock price is lower than the net asset value per share, which may be a value investment opportunity, but it may also reflect asset quality or profitability issues.
- **Return on Equity (ROE)**: 2.65%, which is relatively low, showing that the company's capital utilization efficiency is not high and its profitability needs to be improved.
### Financial Data Trend
From the financial data of the past five years:
- **Main Business Income**: It showed a downward trend from 2020 to 2022, rebounded slightly in 2023, but fell slightly again to 170.748 billion yuan in 2024, showing weak business growth.
- **Net Profit**: It continued to decline from 2020 to 2022, rebounded to 36.702 billion yuan in 2023, and further increased to 45.257 billion yuan in 2024, indicating that profitability is gradually recovering.
- **Earnings Per Share (EPS)** and **Net Asset Value Per Share (NAV)**: EPS decreased from 1.88 yuan in 2020 to 1.07 yuan in 2023, and rebounded to 1.36 yuan in 2024; NAV continued to grow, reaching 22.36 yuan in 2024, showing that the company has a strong asset accumulation ability.
- **Return on Equity (ROE)**: It decreased from 10.46% in 2020 to 5.10% in 2023, and rebounded slightly to 6.08% in 2024, reflecting that the profitability efficiency has not returned to the previous level.
**Fundamental Summary**: Shanghai Pudong Development Bank is currently undervalued and has certain value investment potential, but its profitability and business growth face challenges. The rebound in net profit is a positive signal, but the fluctuation in main business income and the low ROE indicate that its long-term growth still needs to be observed.
---
## 2. Transaction Data Analysis
### Price Trend
- **Short-term (5 days)**: The average price is 10.858 yuan, the highest is 11.190 yuan, the lowest is 10.570 yuan, and the cumulative increase or decrease is +5.48%, showing that the stock price has a strong upward momentum in the short term.
- **Mid-term (20 days)**: The average price is 10.510 yuan, the cumulative increase or decrease is +6.58%, and the price fluctuation range is large (the highest is 11.190 yuan, the lowest is 9.460 yuan), indicating that the mid-term trend is upward, but the volatility is high.
- **Long-term (240 days)**: The average price is 9.468 yuan, and the cumulative increase or decrease is +43.21%, showing that the long-term trend is very strong. The stock price has risen from a low of 7.760 yuan to the current level, reflecting that the market's confidence in the stock is gradually increasing.
### Volume and Turnover Rate
- **Volume**: The daily volume is 972,600 lots, which is significantly higher than the 5-day average volume (672,100 lots) and the 20-day average volume (696,000 lots), indicating that market participation has increased recently and funds have flowed in significantly.
- **Turnover Rate**: The daily turnover rate is 0.33%, the total turnover rate in 5 days is 1.14%, and the total turnover rate in 20 days is 4.74%, showing that the short-term trading activity is high, but the turnover rate is low in the long term (the 240-day average turnover rate is 0.17%), and investors mostly hold the stock.
### Amplitude
- **Short-term (5 days)**: The amplitude is 5.87%, showing that the short-term fluctuation is relatively mild.
- **Long-term (240 days)**: The amplitude is 44.20%, indicating that the price fluctuates greatly in the long term, and investors need to pay attention to the risks.
**Transaction Data Summary**: The price of Shanghai Pudong Development Bank has been on an upward trend recently, especially the short-term and mid-term momentum is strong, and the increase in volume shows that the market's attention has increased. However, the long-term amplitude is large, and investors need to be wary of the risk of price回调.
---
## 3. Technical Indicator Analysis
### KDJ Indicator
- Latest data (2025-05-06): K=86.38, D=81.30, J=96.54, which is at a high level, showing that the stock price is in an overbought state in the short term and may face回调 pressure.
- Trend: The KDJ indicator has been on an upward trend in the past 30 days, and the J value has exceeded 100 many times, reflecting that the market sentiment is relatively optimistic, but the risk of overbuying needs to be guarded against.
### MACD Indicator
- Latest data: DIF=0.16, DEA=0.10, DIFF>DEA, and DIFF continues to expand, showing that the long momentum is enhanced and the short-term trend is still bullish.
- Trend: The MACD indicator has turned from negative to positive in the past 30 days, indicating that the stock price has turned from weak to strong, and is currently still in a long position.
### RSI Indicator
- Latest data: RSI(6)=77.85, RSI(12)=67.60, RSI(24)=61.28, where RSI(6) is in the overbought area (>70), and there may be a need for adjustment in the short term.
- Trend: The RSI indicator is generally above 50, showing that the market is in a strong position, but the short-term overbought signal needs to be paid attention to.
### Bollinger Bands (BBands)
- Latest data: The upper rail is 11.26 yuan, the middle rail is 10.86 yuan, the lower rail is 10.47 yuan, and the current stock price is 11.17 yuan, which is close to the upper rail, showing 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 that the volatility has increased. After the stock price broke through the middle rail, it continued to approach the upper rail, showing that the long power is dominant.
**Technical Indicator Summary**: Multiple indicators show that Shanghai Pudong Development Bank is in an overbought state in the short term. KDJ and RSI both indicate the risk of回调, but MACD and Bollinger Bands still show a long trend. The upward momentum may continue in the short term. It is recommended that investors pay attention to the buying opportunities after回调.
---
## 4. Comprehensive Analysis and Investment Advice
### Advantages
1. **Low Valuation**: The price-to-earnings ratio and price-to-book ratio are both at a low level, which has a certain value investment appeal.
2. **Long-term Upward Trend**: The 240-day increase or decrease is as high as 43.21%, showing that the long-term market confidence is strong.
3. **Strong Short-term Momentum**: The 5-day and 20-day increases or decreases are 5.48% and 6.58% respectively, the volume has increased, and funds have flowed in significantly.
4. **Financial Improvement**: Net profit and earnings per share have rebounded in 2024, showing that profitability is gradually recovering.
### Risks
1. **Low Profitability Efficiency**: The return on equity is low, the business growth is weak, and the main business income fluctuates greatly.
2. **Short-term Overbought**: Technical indicators show that the stock price is in an overbought state, and there may be回调 pressure in the short term.
3. **High Volatility**: The long-term amplitude is large, and investors need to pay attention to the market volatility risk.
### Investment Advice
- **Short-term Investors**: The current stock price is at a high level, and technical indicators show that it is overbought. It is recommended to wait and see, and consider intervening after回调 to near the middle rail of the Bollinger Bands (10.86 yuan) or lower.
- **Mid- to Long-term Investors**: Considering the low valuation and long-term upward trend, you can build positions in batches during回调, pay attention to the support level of 10.50-10.80 yuan, and set a stop-loss level to control risks.
- **Risk Control**: It is recommended to pay attention to whether the volume continues to increase in the future. If the volume shrinks and the stock price falls below 10.47 yuan (the lower rail of the Bollinger Bands), you need to be wary of further downward risks.
**Summary**: Shanghai Pudong Development Bank currently has a certain investment value, but the short-term overbought risk needs to be guarded against. Investors should formulate reasonable operating strategies based on their own risk tolerance and investment cycle.
```
## Data Interpretation
### System Prompt
None
### User Input
```
浦发银行最近波动大吗?
```
### Model Reply
```markdown
In order to analyze the recent volatility of Shanghai Pudong Development Bank, I will infer its stock code and call the relevant tools to obtain data. The stock code of Shanghai Pudong Development Bank is **SH600000** (listed on the Shanghai Stock Exchange). I will use the `brief` function to obtain basic transaction data in order to initially determine its volatility. If more detailed analysis is needed, I will further call other tools.
# Recent Volatility Analysis of Shanghai Pudong Development Bank (SH600000)
**Data Date: May 6, 2025**
## 1. Price Volatility Analysis
- **Daily Volatility**: The daily price volatility of Shanghai Pudong Development Bank is **5.57%**, the price fluctuates 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 Volatility (5 days)**: The price volatility in the past 5 days is **5.87%**, the price range is **10.57 yuan to 11.19 yuan**, the average price is **10.858 yuan**, and the cumulative increase is **5.48%**. The short-term volatility is relatively mild, but there is a certain upward momentum.
- **Mid-term Volatility (20 days)**: The price volatility in the past 20 days is large, at **18.29%**, the price range is **9.46 yuan to 11.19 yuan**, the average price is **10.51 yuan**, and the cumulative increase is **6.58%**. The mid-term volatility shows a strong price rebound trend.
- **Long-term Volatility (240 days)**: The price volatility in the past 240 days is very significant, at **44.20%**, the price range is **7.76 yuan to 11.19 yuan**, the average price is **9.468 yuan**, and the cumulative increase is as high as **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**, which is significantly higher than the 5-day average volume (**672,100 lots**) and the 20-day average volume (**696,000 lots**), showing that market participation has increased on that day.
- **Turnover Rate**: The daily turnover rate is **0.33%**, which is 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, the market activity has increased in the short term.
## 3. Valuation Indicator Analysis
- **Price-to-Earnings Ratio (PE)**: Currently **4.90**, which is at a low level, indicating that the stock valuation is relatively low and there may be room for undervaluation.
- **Price-to-Book Ratio (PB)**: Currently **0.33**, which is far lower than 1, showing that the market's valuation of the company's net assets is low, and it may be a potential target for value investment.
- **Return on Equity (ROE)**: Currently **2.65%**, indicating that the company's profitability is average, and attention needs to be paid to its future profit improvement.
## 4. Comprehensive Interpretation and Investment Advice
From the perspective of price volatility, the stock price of Shanghai Pudong Development Bank has shown a certain upward trend recently (especially in the past 5 days and 20 days), but the volatility is relatively controllable in the short term (5-day amplitude 5.87%), and it has not shown violent volatility. In the mid- to long-term (240-day amplitude 44.20%), the stock price has experienced a large increase, showing a strong trend.
The increase in volume and turnover rate indicates that the market's attention to Shanghai Pudong Development Bank has increased, especially the significant increase in daily volume, which may indicate that there is still upward momentum in the short term. However, the overall turnover rate is low, the market liquidity is average, and attention needs to be paid to the possible risk of volume shrinkage.
From the perspective of valuation, the price-to-earnings ratio and price-to-book ratio of Shanghai Pudong Development Bank are both at a low level, showing a certain value investment appeal, but the low return on equity indicates that its profitability needs to be improved. Investors need to pay attention to its subsequent financial report data and changes in the industry environment.
**Summary**: The volatility of Shanghai Pudong Development Bank is not large in the short term, but the mid- to long-term trend shows a strong upward momentum. Combined with the low valuation characteristics, you can pay appropriate attention to it in the short term, but you need to be wary of changes in volume and the potential risks of profitability. It is recommended that investors pay close attention to the further catalytic effect of industry policies (such as high dividend policies, cross-border payment concepts, etc.) on the stock price.
If you need more detailed financial data or technical analysis indicators, you can further call the "medium" or "full" tools for in-depth analysis.
```
# QA Frequently Asked Questions
## Is it necessary to pay for using the stock MCP service?
This service is currently available for a limited time free trial. Please pay attention to the updates on the project homepage https://github.com/elsejj/mcp-cn-a-stock in the future.
## How to deploy privately?
Private deployment requires replacing the data source used by this project with your own data. See [related discussions](https://github.com/elsejj/mcp-cn-a-stock/issues/1).
## Missing some standard data
Currently, it mainly covers A shares on the Shanghai and Shenzhen main boards, and there are no plans for others for the time being.
## Call frequency, rate limiting, etc.
There are no restrictions on normal use, because the time required for the model to call the tool analysis is much longer than the MCP return time. Batch polling of data may be rate limited.
## Accuracy, availability, etc.
We will do our best to ensure accuracy and availability, but we are not responsible for any consequences caused by this. At the same time, due to the factors of large model hallucinations, knowledge, and understanding, users should carefully identify whether its reply results are reliable.
## Contact information
Please raise questions 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
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
markitdown
Python tool for converting files and office documents to Markdown.
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.
taskmaster-agent-claude-code
A collection of AI agents for Test-Driven Development and rapid prototyping.
UnrealMCP
UnrealMCP is an unofficial Unreal Engine plugin for AI-driven control via...
bm.md
A better Markdown typesetting assistant | One-click adaptation for WeChat...