ashare-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ASHARE_SOURCE | No | Data backend. Only baostock in v1. | baostock |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_current_timeA | Current local server time as 'YYYY-MM-DD HH:MM:SS'. Useful for building relative date ranges (e.g. 'last 30 days') for the date parameters below. |
| get_stock_basicA | Basic securities profile. Pass |
| get_all_stockA | All securities and their trading status on a given day (default: latest
trading day). |
| get_trade_datesB | Trading-calendar flags between two dates (default: from 2015-01-01). Fields: calendar_date, is_trading_day (1是/0否). |
| get_history_k_dataA | Historical K-line bars.
frequency: d=日 w=周 m=月 5/15/30/60=分钟线.
adjustflag: 1后复权 2前复权 3不复权(默认).
Dates 'YYYY-MM-DD'. |
| get_dividend_dataC | Dividend / rights-issue records. yearType: 'report'(预案公告年, default) / 'operate'(除权除息年) / 'dividend'(分红年). Fields include dividCashPsBeforeTax/AfterTax, dividStocksPs, dividRegistDate, dividOperateDate, dividPayDate. |
| get_adjust_factorC | Price adjustment factors (复权因子, baostock 涨跌幅复权算法). Fields: code, dividOperateDate, foreAdjustFactor, backAdjustFactor, adjustFactor. |
| get_profit_dataC | Quarterly profitability (季频盈利能力). quarter 1..4. Fields: roeAvg, npMargin, gpMargin, netProfit, epsTTM, MBRevenue, totalShare, liqaShare. |
| get_operation_dataC | Quarterly operating capability (季频营运能力). quarter 1..4. Fields: NRTurnRatio, NRTurnDays, INVTurnRatio, INVTurnDays, CATurnRatio, AssetTurnRatio. |
| get_growth_dataC | Quarterly growth (季频成长能力). quarter 1..4. Fields: YOYEquity, YOYAsset, YOYNI, YOYEPSBasic, YOYPNI, YOYOperation. |
| get_balance_dataC | Quarterly solvency / balance-sheet ratios (季频偿债能力). quarter 1..4. Fields: currentRatio, quickRatio, cashRatio, YOYLiability, liabilityToAsset, assetToEquity. |
| get_cash_flow_dataC | Quarterly cash-flow ratios (季频现金流量). quarter 1..4. Fields: CAToAsset, NCAToAsset, tangibleAssetToAsset, ebitToInterest, CFOToOR, CFOToNP, CFOToGr. |
| get_dupont_dataC | Quarterly DuPont decomposition (季频杜邦指数). quarter 1..4. Fields: dupontROE, dupontAssetStoEquity, dupontAssetTurn, dupontPnitoni, dupontNitogr, dupontTaxBurden, dupontIntburden, dupontEbittogr. |
| get_performance_express_reportC | Performance express reports (业绩快报) filed in [start_date, end_date]. Fields include performanceExpStatDate, performanceExpressROEWa, performanceExpressEPSChgPct. |
| get_forecast_reportC | Earnings forecast / pre-announcements (业绩预告) in [start_date, end_date]. Fields include profitForcastExpStatDate, profitForcastType, profitForcastChgPctUp/Dwn. |
| get_stock_industryB | Industry classification (申万). Empty |
| get_sz50_stocksB | SSE 50 (上证50) constituents on |
| get_hs300_stocksC | CSI 300 (沪深300) constituents on |
| get_zz500_stocksB | CSI 500 (中证500) constituents on |
| get_deposit_rate_dataC | Benchmark deposit rates (存款利率) over a date range. |
| get_loan_rate_dataC | Benchmark loan rates (贷款利率) over a date range. |
| get_required_reserve_ratio_dataC | Required reserve ratio (存款准备金率). yearType: 0生效日期(default)/1公告日期. |
| get_money_supply_data_monthB | Monthly money supply M0/M1/M2 (货币供应量-月). Dates 'YYYY-MM'. |
| get_money_supply_data_yearB | Yearly money supply M0/M1/M2 (货币供应量-年). Dates 'YYYY'. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 24 tools
Each tool retrieves a distinct set of financial data (e.g., balance sheet ratios, cash flow, dividends, K-line, index constituents). Descriptions are detailed and clearly separate overlapping concepts like different ratio types or index members.
All tool names follow a consistent 'get_<data_type>_<optional_modifier>' pattern using snake_case, making it easy for an agent to infer purpose from the name alone.
At 24 tools, the count is slightly above the ideal range but still justified given the broad domain coverage (fundamentals, technicals, macro, market indices). Each tool addresses a specific data need without redundancy.
Covers a wide range of A-share market data: financial ratios, K-line, dividends, forecasts, banking rates, money supply, and index constituents. Minor gaps like real-time quotes or SEC filings are understandable for a historical/derived data server.