A Share MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_historical_k_data
Fetches historical K-line (OHLCV) data for a Chinese A-share stock. Args: code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001'). start_date: Start date in 'YYYY-MM-DD' format. end_date: End date in 'YYYY-MM-DD' format. frequency: Data frequency. Valid options (from Baostock): 'd': daily 'w': weekly 'm': monthly '5': 5 minutes '15': 15 minutes '30': 30 minutes '60': 60 minutes Defaults to 'd'. adjust_flag: Adjustment flag for price/volume. Valid options (from Baostock): '1': Forward adjusted (后复权) '2': Backward adjusted (前复权) '3': Non-adjusted (不复权) Defaults to '3'. fields: Optional list of specific data fields to retrieve (must be valid Baostock fields). If None or empty, default fields will be used (e.g., date, code, open, high, low, close, volume, amount, pctChg). Returns: A Markdown formatted string containing the K-line data table, or an error message. The table might be truncated if the result set is too large.
get_stock_basic_info
Fetches basic information for a given Chinese A-share stock. Args: code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001'). fields: Optional list to select specific columns from the available basic info (e.g., ['code', 'code_name', 'industry', 'listingDate']). If None or empty, returns all available basic info columns from Baostock. Returns: A Markdown formatted string containing the basic stock information table, or an error message.
get_dividend_data
Fetches dividend information for a given stock code and year. Args: code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001'). year: The year to query (e.g., '2023'). year_type: Type of year. Valid options (from Baostock): 'report': Announcement year (预案公告年份) 'operate': Ex-dividend year (除权除息年份) Defaults to 'report'. Returns: A Markdown formatted string containing the dividend data table, or an error message.
get_adjust_factor_data
Fetches adjustment factor data for a given stock code and date range. Uses Baostock's "涨跌幅复权算法" factors. Useful for calculating adjusted prices. Args: code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001'). start_date: Start date in 'YYYY-MM-DD' format. end_date: End date in 'YYYY-MM-DD' format. Returns: A Markdown formatted string containing the adjustment factor data table, or an error message.
get_profit_data
Fetches quarterly profitability data (e.g., ROE, net profit margin) for a stock. Args: code: The stock code (e.g., 'sh.600000'). year: The 4-digit year (e.g., '2023'). quarter: The quarter (1, 2, 3, or 4). Returns: Markdown table with profitability data or an error message.
get_operation_data
Fetches quarterly operation capability data (e.g., turnover ratios) for a stock. Args: code: The stock code (e.g., 'sh.600000'). year: The 4-digit year (e.g., '2023'). quarter: The quarter (1, 2, 3, or 4). Returns: Markdown table with operation capability data or an error message.
get_growth_data
Fetches quarterly growth capability data (e.g., YOY growth rates) for a stock. Args: code: The stock code (e.g., 'sh.600000'). year: The 4-digit year (e.g., '2023'). quarter: The quarter (1, 2, 3, or 4). Returns: Markdown table with growth capability data or an error message.
get_balance_data
Fetches quarterly balance sheet / solvency data (e.g., current ratio, debt ratio) for a stock. Args: code: The stock code (e.g., 'sh.600000'). year: The 4-digit year (e.g., '2023'). quarter: The quarter (1, 2, 3, or 4). Returns: Markdown table with balance sheet data or an error message.
get_cash_flow_data
Fetches quarterly cash flow data (e.g., CFO/Operating Revenue ratio) for a stock. Args: code: The stock code (e.g., 'sh.600000'). year: The 4-digit year (e.g., '2023'). quarter: The quarter (1, 2, 3, or 4). Returns: Markdown table with cash flow data or an error message.
get_dupont_data
Fetches quarterly DuPont analysis data (ROE decomposition) for a stock. Args: code: The stock code (e.g., 'sh.600000'). year: The 4-digit year (e.g., '2023'). quarter: The quarter (1, 2, 3, or 4). Returns: Markdown table with DuPont analysis data or an error message.
get_performance_express_report
Fetches performance express reports (业绩快报) for a stock within a date range. Note: Companies are not required to publish these except in specific cases. Args: code: The stock code (e.g., 'sh.600000'). start_date: Start date (for report publication/update) in 'YYYY-MM-DD' format. end_date: End date (for report publication/update) in 'YYYY-MM-DD' format. Returns: Markdown table with performance express report data or an error message.
get_forecast_report
Fetches performance forecast reports (业绩预告) for a stock within a date range. Note: Companies are not required to publish these except in specific cases. Args: code: The stock code (e.g., 'sh.600000'). start_date: Start date (for report publication/update) in 'YYYY-MM-DD' format. end_date: End date (for report publication/update) in 'YYYY-MM-DD' format. Returns: Markdown table with performance forecast report data or an error message.
get_stock_industry
Fetches industry classification for a specific stock or all stocks on a given date. Args: code: Optional. The stock code (e.g., 'sh.600000'). If None, fetches for all stocks. date: Optional. The date in 'YYYY-MM-DD' format. If None, uses the latest available date. Returns: Markdown table with industry classification data or an error message.
get_sz50_stocks
Fetches the constituent stocks of the SZSE 50 Index for a given date. Args: date: Optional. The date in 'YYYY-MM-DD' format. If None, uses the latest available date. Returns: Markdown table with SZSE 50 constituent stocks or an error message.
get_hs300_stocks
Fetches the constituent stocks of the CSI 300 Index for a given date. Args: date: Optional. The date in 'YYYY-MM-DD' format. If None, uses the latest available date. Returns: Markdown table with CSI 300 constituent stocks or an error message.
get_zz500_stocks
Fetches the constituent stocks of the CSI 500 Index for a given date. Args: date: Optional. The date in 'YYYY-MM-DD' format. If None, uses the latest available date. Returns: Markdown table with CSI 500 constituent stocks or an error message.
get_trade_dates
Fetches trading dates information within a specified range. Args: start_date: Optional. Start date in 'YYYY-MM-DD' format. Defaults to 2015-01-01 if None. end_date: Optional. End date in 'YYYY-MM-DD' format. Defaults to the current date if None. Returns: Markdown table indicating whether each date in the range was a trading day (1) or not (0).
get_all_stock
Fetches a list of all stocks (A-shares and indices) and their trading status for a given date. Args: date: Optional. The date in 'YYYY-MM-DD' format. If None, uses the current date. Returns: Markdown table listing stock codes, names, and their trading status (1=trading, 0=suspended).
get_deposit_rate_data
Fetches benchmark deposit rates (活期, 定期) within a date range. Args: start_date: Optional. Start date in 'YYYY-MM-DD' format. end_date: Optional. End date in 'YYYY-MM-DD' format. Returns: Markdown table with deposit rate data or an error message.
get_loan_rate_data
Fetches benchmark loan rates (贷款利率) within a date range. Args: start_date: Optional. Start date in 'YYYY-MM-DD' format. end_date: Optional. End date in 'YYYY-MM-DD' format. Returns: Markdown table with loan rate data or an error message.
get_required_reserve_ratio_data
Fetches required reserve ratio data (存款准备金率) within a date range. Args: start_date: Optional. Start date in 'YYYY-MM-DD' format. end_date: Optional. End date in 'YYYY-MM-DD' format. year_type: Optional. Year type for date filtering. '0' for announcement date (公告日期, default), '1' for effective date (生效日期). Returns: Markdown table with required reserve ratio data or an error message.
get_money_supply_data_month
Fetches monthly money supply data (M0, M1, M2) within a date range. Args: start_date: Optional. Start date in 'YYYY-MM' format. end_date: Optional. End date in 'YYYY-MM' format. Returns: Markdown table with monthly money supply data or an error message.
get_money_supply_data_year
Fetches yearly money supply data (M0, M1, M2 - year end balance) within a date range. Args: start_date: Optional. Start year in 'YYYY' format. end_date: Optional. End year in 'YYYY' format. Returns: Markdown table with yearly money supply data or an error message.
get_shibor_data
Fetches SHIBOR (Shanghai Interbank Offered Rate) data within a date range. Args: start_date: Optional. Start date in 'YYYY-MM-DD' format. end_date: Optional. End date in 'YYYY-MM-DD' format. Returns: Markdown table with SHIBOR data or an error message.
get_current_date
获取当前日期,可用于查询最新数据。 Returns: 当前日期,格式为'YYYY-MM-DD'。
get_latest_trading_date
获取最近的交易日期。如果当天是交易日,则返回当天日期;否则返回最近的交易日。 Returns: 最近的交易日期,格式为'YYYY-MM-DD'。
get_market_analysis_timeframe
获取适合市场分析的时间范围,基于当前真实日期而不是训练数据。 这个工具应该在进行市场分析或大盘分析时首先调用,以确保使用最新的实际数据。 Args: period: 时间范围类型,可选值: "recent": 最近1-2个月(默认) "quarter": 最近一个季度 "half_year": 最近半年 "year": 最近一年 Returns: 包含分析时间范围的详细描述字符串,格式为"YYYY年M月-YYYY年M月"。
get_stock_analysis
提供基于数据的股票分析报告,而非投资建议。 Args: code: 股票代码,如'sh.600000' analysis_type: 分析类型,可选'fundamental'(基本面)、'technical'(技术面)或'comprehensive'(综合) Returns: 数据驱动的分析报告,包含关键财务指标、历史表现和同行业比较
ID: gnd6bi7pjh