Content
# A-share Analysis Assistant
## MCP Tool List
This project provides 5 core MCP tools that can be called in conversations:
1. **Stock Financial Data Retrieval Tool** - Extracts basic information, real-time market data, and historical price data for individual stocks from Eastmoney and Xueqiu.
```py
@mcp.tool()
def get_one_stock_financial_data(symbol_em: str) -> str:
```
2. **Stock Price Trend Tracking Tool** - Generates professional candlestick charts and displays stock price change data and technical indicators.
```py
@mcp.tool()
def track_stock_trend(symbol: str, period: str = "daily", days: int = 15) -> str:
```
3. **Financial Indicator Calculation Tool** - Calculates and analyzes key financial indicators such as price-to-earnings ratio (市盈率), price-to-book ratio (市净率), and volatility (波动率), providing a comprehensive score (integrated into `get_one_stock_financial_data`).
4. **Market News Analysis Tool** - Integrates market environment, industry, and regional trading data to analyze capital flow and market sentiment.
```py
@mcp.tool()
def analyze_market_news(symbol: str) -> str:
```
5. **Comprehensive Analysis Tool** - Uses Inner-LLM for intelligent analysis of all data, providing comprehensive investment advice.
```py
@mcp.tool()
def comprehensive_analysis(symbol: str) -> str:
```
For detailed design of MCP, see `resources/report.md`.
## Installation
### Install Dependencies
```shell
pip install -r requirements.txt
```
Install `akshare`:
```shell
cd akshare
pip install -e .
cd ..
```
You also need to install `uv` and `node.js` to avoid errors. Please refer to the [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk).
## Usage
### Using in Cursor/Windsurf
Add the following configuration to the Cursor/Windsurf configuration file:
```json
{
"mcpServers": {
"A-share Analysis Assistant": {
"command": "uv",
"args": [
"run",
"--with",
"akshare",
"--with",
"matplotlib",
"--with",
"mcp[cli]",
"--with",
"mplfinance",
"--with",
"openai",
"mcp",
"run",
"YOUR_PATH_TO/a_stock_mcp/main.py"
]
}
}
}
```
### Using as a Claude MCP Plugin
```shell
uv run mcp install main.py
```
## Main Functionality Description
### Retrieve Stock Financial Data
Provides basic information, real-time market data, historical price data, financial analysis, etc., including:
- Basic stock information (Eastmoney, Xueqiu)
- Real-time market data
- Historical price data analysis
- Technical indicator calculations (moving averages, MACD, etc.)
- In-depth financial indicator analysis (price-to-earnings ratio, price-to-book ratio, volatility, Sharpe ratio, etc.)
- Comprehensive scoring and investment advice
### Track Stock Price Trends
Generates stock candlestick charts and provides basic statistical information:
- Automatically calculates technical indicators (moving averages, etc.)
- Analyzes price ranges, price changes, amplitude, etc.
### Analyze Market News
Conducts comprehensive analysis in conjunction with market news:
- Overall market situation analysis
- Industry trading situation analysis
- Regional trading situation analysis
- Individual stock price trend analysis
- Capital flow analysis
- Market sentiment and risk warnings
### Comprehensive Analysis Report
Integrates financial data, market news, and stock trends to provide intelligent investment advice:
- In-depth financial data analysis
- Market environment and industry trend analysis
- Technical analysis and forecasting
- Investment risk assessment
- Comprehensive investment advice
## Disclaimer
The analysis results provided by this tool are for reference only and do not constitute investment advice. Investment decisions should consider personal risk preferences and more comprehensive information. Investing involves risks; proceed with caution.
## Case Study: Seres Automotive (601127) Investment Analysis Report
**Analysis Date: April 14, 2025**
### I. Company Overview
#### 1.1 Company Profile
- **Company Name:** Seres Group Co., Ltd.
- **Stock Code:** 601127
- **Listing Date:** June 15, 2016
- **Main Business:** Research, development, manufacturing, sales, and service of new energy vehicles and core components.
- **Industry Classification:** Complete automobiles
- **Registered Capital:** 1.633 billion yuan
- **Total Shares:** 1.633 billion shares
- **Circulating Shares:** 1.510 billion shares
- **Number of Employees:** 18,838
- **Company Nature:** Private enterprise
#### 1.2 Market Performance
- **Latest Stock Price:** 134.96 yuan
- **Market Capitalization:** 220.439 billion yuan
- **Circulating Market Capitalization:** 203.760 billion yuan
- **Recent Price Increase:** 10.17% over 30 days
- **Annual Price Increase:** 56.51%
- **52-Week High:** 137.98 yuan
- **52-Week Low:** 112.14 yuan
### II. Technical Analysis
#### 2.1 Price Trend Analysis
- **Short-term Trend:** Recent stock price has broken through previous resistance levels, showing a strong upward trend in the short term.
- **Medium-term Trend:** A good upward channel has formed, with a positive medium-term trend.
- **Long-term Trend:** In an upward cycle, with good long-term development prospects.

#### 2.2 Moving Average System Analysis
- **5-day Moving Average:** 127.10 yuan, stock price above the 5-day moving average, strong short-term trend.
- **10-day Moving Average:** 125.09 yuan, forming a support level.
- **20-day Moving Average:** 125.56 yuan, stock price above the 20-day moving average, medium-term trend is strong.
- **60-day Moving Average:** 127.65 yuan, basically flat, trend is unclear.
- **Moving Average Arrangement:** Short-term moving averages are in a bullish arrangement, but the moving averages are crossing, requiring further confirmation of the trend.
#### 2.3 Technical Indicators
- **MACD:** DIF=0.1417, DEA=-0.7169, MACD bar=1.7172, a golden cross has formed, initial buy signal appears.
- **Deviation Rate:** The deviation rate relative to the 20-day moving average is 7.49%, indicating a potential short-term pullback.
- **Volume Ratio:** 1.31, trading volume has moderately increased, market attention is rising.
- **Turnover Rate:** 2.82%, capital activity is moderate.
- **Volatility:** The volatility over the last 20 trading days is 3.17%, indicating high volatility and risk.
- **Annualized Volatility:** 0.54%, long-term volatility is well controlled.
### III. Fundamental Analysis
#### 3.1 Industry Analysis
- **New Energy Vehicle Industry:** In a phase of rapid development, continuously supported by national policies.
- **Market Competition Landscape:** Highly competitive, with major competitors including Tesla, BYD, NIO, and Xpeng.
- **Technological Innovation:** Intelligence, electrification, and connectivity are the main trends in the industry.
- **Policy Environment:** Under the dual carbon goals, the new energy vehicle industry benefits from policy dividends.
#### 3.2 Company's Core Advantages
- **Product Advantages:** Deep cooperation with Huawei, high level of intelligence.
- **Technical Accumulation:** Certain technical reserves in the three-electric system field.
- **Brand Building:** Brand awareness is gradually increasing.
- **Channel Development:** Sales network layout is reasonable, service system is complete.
#### 3.3 Risk Factors
- **Market Competition Risk:** Competition in the new energy vehicle market is becoming increasingly fierce.
- **Technology Iteration Risk:** Rapid pace of technological updates and significant R&D investment.
- **Raw Material Price Fluctuations:** Price fluctuations in battery raw materials may affect profitability.
- **Policy Dependency Risk:** Industry development still partially relies on policy support.
### IV. Investment Value Analysis
#### 4.1 Investment Highlights
- **High Industry Prosperity:** The new energy vehicle market maintains rapid growth.
- **Strategic Cooperation:** Deep cooperation with Huawei enhances product competitiveness.
- **Market Performance:** Significant annual stock price increase, high market recognition.
- **Technological R&D:** Continuous increase in R&D investment to maintain technological competitiveness.
#### 4.2 Investment Risks
- **Valuation Risk:** Current valuation levels are relatively high; caution is advised regarding valuation corrections.
- **Performance Uncertainty:** Uncertainty exists regarding whether new model sales will meet expectations.
- **Intensified Market Competition:** Price wars may lead to declining profit margins.
- **Macroeconomic Risks:** Economic downturn pressures may affect high-end consumer demand.
### V. Investment Recommendations
#### 5.1 Investment Strategy
- **Investment Rating:** Cautious accumulation.
- **Suitable Audience:** Investors with moderate risk tolerance who are interested in the new energy vehicle industry.
- **Holding Period:** Medium to long term (6-12 months).
#### 5.2 Specific Operational Suggestions
- **Entry Timing:** Consider positioning near 125 yuan during short-term pullbacks.
- **Holding Strategy:** Build positions in batches to avoid large one-time investments.
- **Stop-loss Position:** Set around 120 yuan, strictly implement stop-loss strategies.
- **Target Price:** Medium-term target of 145-150 yuan, adjust based on fundamental changes.
#### 5.3 Key Points to Monitor
- **Sales Data:** Closely monitor changes in monthly sales data.
- **New Model Launches:** Pay attention to the launch timing and market response of new models.
- **Industry Policies:** Monitor adjustments in new energy subsidy policies.
- **Profitability:** Watch trends in gross margin and net margin changes.
### VI. Conclusion
As a new energy vehicle company closely cooperating with Huawei, Seres has certain investment value against the backdrop of rapid development in the new energy vehicle sector. The company's stock price has recently shown strong performance, and technical indicators are favorable. However, considering the high valuation levels and intensified industry competition, investors are advised to maintain a cautiously optimistic attitude and adopt a batch accumulation strategy for medium to long-term holding.
**Risk Warning:** The analysis and recommendations in this report are for reference only and do not constitute any investment advice. Investing involves risks; proceed with caution.
---
*Analyst: Claude*
*Report Date: April 14, 2025*
Connection Info
You Might Also Like
Vibe-Trading
Vibe-Trading: Your Personal Trading Agent
ai-berkshire
Berkshire in the AI Era: A Value Investment Research Framework Based on...
valuecell
Valuecell is a Python project for efficient data management.
hexstrike-ai
HexStrike AI is an AI-powered MCP cybersecurity automation platform with 150+ tools.
tradingview-mcp
AI-assisted TradingView chart analysis — connect Claude Code to your...
tradingview-mcp
TradingView MCP Server offers real-time market analysis for crypto and stocks.