stockreport-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@stockreport-mcp Analyze NVIDIA's recent stock performance and key financial indicators."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
📊 stockreport-mcp 📈
本项目是一个基于 Model Context Protocol (MCP) 的多市场股票数据服务器,支持 A 股、港股、美股等多个市场的数据查询。它提供股票基本信息、历史 K 线数据、财务指标、宏观经济数据等多种查询功能,理论上来说,可以回答有关股票市场的任何问题,无论是针对大盘还是特定股票。
📈 项目来源与改进
本项目基于 A-SHARE-MCP 项目进行了重大改进和扩展:
🔄 主要改进内容
🌐 新增 AkShare 数据源:扩展了数据源支持,提供更丰富的市场数据
🇭🇰 港股分析功能:完整支持港股市场数据查询和分析
🇺🇸 美股数据支持:新增美股市场数据获取能力
📊 财务数据分析矫正:修复和优化了财务指标计算逻辑
🔀 智能混合数据源:实现多数据源智能切换,提供最优数据质量
📚 完善文档体系:提供详细的配置指南和故障排除文档
🔧 多客户端兼容性:支持 Trae AI、Claude Desktop、Cherry Studio 等多种 MCP 客户端
🎯 核心优势
多市场覆盖:A股、港股、美股一站式数据服务
数据源冗余:多数据源保证数据可靠性和完整性
智能路由:根据查询类型自动选择最佳数据源
易于部署:完整的安装和配置指南
Related MCP server: Stock Data MCP Server
数据源支持
本项目支持三种数据源模式,可在启动时选择:
Hybrid (推荐): 智能混合数据源,自动根据股票代码选择最佳数据源
A股数据: 使用 Baostock 提供详细的财务数据、历史K线、分红信息等
港股数据: 使用 AkShare 提供实时行情、历史数据、基本信息等
美股数据: 使用 AkShare 提供多市场数据支持
宏观数据: 使用 Baostock 提供权威的宏观经济指标
智能切换: 根据股票代码前缀自动选择最适合的数据源
Baostock: 专注于 A 股市场数据,提供完整的财务指标和宏观经济数据
AkShare: 支持 A 股、港股、美股等多市场数据,提供更广泛的市场覆盖
推荐使用 Hybrid 模式:该模式结合了两个数据源的优势,为不同市场提供最优质的数据服务。
项目结构
stockreport-mcp/
│
├── mcp_server.py # 主MCP服务器入口文件
├── simple_mcp_server.py # 简化版MCP服务器
├── start_server.py # 交互式启动脚本
├── start_server.bat # Windows批处理启动脚本
├── system_start.py # 系统启动脚本
├── pyproject.toml # 项目依赖配置
├── uv.lock # UV包管理器锁定文件
├── README.md # 项目说明文档
├── LICENSE # MIT许可证文件
│
├── 文档文件/ # 项目文档
│ ├── HK_STOCKS_FEATURES.md # 港股功能说明
│ ├── HYBRID_DATA_SOURCE_SUMMARY.md # 混合数据源总结
│ ├── HYBRID_USAGE_GUIDE.md # 混合数据源使用指南
│ ├── STARTUP_GUIDE.md # 启动指南
│ ├── TRAE_CONFIG_FIX.md # Trae配置修复指南
│ ├── TRAE_SETUP.md # Trae设置指南
│ └── TRAE_UNIVERSAL_CONFIG.md # Trae通用配置
│
├── src/ # 源代码目录
│ ├── __init__.py
│ ├── baostock_data_source.py # Baostock数据源实现
│ ├── akshare_data_source.py # AkShare数据源实现
│ ├── hybrid_data_source.py # 混合数据源实现
│ ├── data_source_interface.py # 数据源接口定义
│ ├── utils.py # 通用工具函数
│ │
│ ├── formatting/ # 数据格式化模块
│ │ ├── __init__.py
│ │ └── markdown_formatter.py # Markdown格式化工具
│ │
│ └── tools/ # MCP工具模块
│ ├── __init__.py
│ ├── base.py # 基础工具函数
│ ├── stock_market.py # 股票市场数据工具
│ ├── financial_reports.py # 财务报表工具
│ ├── indices.py # 指数相关工具
│ ├── market_overview.py # 市场概览工具
│ ├── macroeconomic.py # 宏观经济数据工具
│ ├── date_utils.py # 日期工具
│ ├── analysis.py # 分析工具
│ ├── hk_stocks.py # 港股数据工具
│ └── us_stocks.py # 美股数据工具
│
├── resource/ # 资源文件
│ └── img/ # 图片资源
│ ├── img_1.png # CherryStudio配置示例
│ ├── img_2.png # CherryStudio配置示例
│ ├── ali.png # 支付宝收款码
│ ├── gzh_code.jpg # 公众号二维码
│ └── planet.jpg # 星球图片
│
└── 批处理脚本/ # Windows批处理脚本
├── start_mcp_server.bat # 启动MCP服务器
├── start_mcp_system.bat # 启动MCP系统
└── reset_env.bat # 重置环境功能特点
支持的市场
A股市场: 上海证券交易所、深圳证券交易所
港股市场: 香港联合交易所 (使用AkShare数据源)
美股市场: 纽约证券交易所、纳斯达克 (使用AkShare数据源)
先决条件
Python 环境: Python 3.10+
依赖管理: 使用
uv包管理器安装依赖数据来源:
Baostock: 专注A股数据,无需付费账号。在此感谢 Baostock。
AkShare: 支持多市场数据,无需付费账号。在此感谢 AkShare。
提醒:本项目于 Windows 环境下开发。
快速启动
方式一:交互式启动 (推荐)
# 运行交互式启动脚本
python start_server.py或者在Windows上双击运行:
start_server.bat方式二:命令行启动
# 使用混合数据源 (推荐,默认)
python mcp_server.py --data-source hybrid
# 使用Baostock数据源 (仅A股)
python mcp_server.py --data-source baostock
# 使用AkShare数据源 (多市场)
python mcp_server.py --data-source akshare
# 设置日志级别
python mcp_server.py --data-source hybrid --log-level DEBUG
# 使用简化版服务器
python simple_mcp_server.py数据更新时间
以下是 Baostock 官方数据更新时间,请注意查询最新数据时的时间点 Baostock 官网
每日数据更新时间:
当前交易日 17:30,完成日 K 线数据入库
当前交易日 18:00,完成复权因子数据入库
第二自然日 11:00,完成分钟 K 线数据入库
第二自然日 1:30,完成前交易日"其它财务报告数据"入库
周六 17:30,完成周线数据入库
每周数据更新时间:
每周一下午,完成上证 50 成份股、沪深 300 成份股、中证 500 成份股信息数据入库
所以说,在交易日的当天,如果是在 17:30 之前询问当天的数据,是无法获取到的。
安装环境
在项目根目录下执行:
要启动 StockReport MCP 服务器,请按照以下步骤操作:
# 1. 创建虚拟环境(仅创建,不会安装任何包)
uv venv
# 2. 激活虚拟环境
# Windows
.venv\Scripts\activate
# macOS/Linux
# source .venv/bin/activate
# 3. 安装所有依赖(必须在激活的虚拟环境中执行)
uv sync使用:在 MCP 客户端中配置服务器
在支持 MCP 的客户端(如 VS Code 插件、CherryStudio 等)中,你需要配置如何启动此服务器。 推荐使用 uv。
方法一:使用 JSON 配置的 IDE (例如 Cursor、VSCode、Trae 等)
对于需要编辑 JSON 文件来配置 MCP 服务器的客户端,你需要找到对应的能配置 MCP 的地方(各个 IDE 和桌面 MCP Client 可能都不一样),并在 mcpServers 对象中添加一个新的条目。
JSON 配置示例 (请将路径替换为你的实际绝对路径):
{
"mcpServers": {
"stockreport-mcp": {
"command": "uv", // 或者 uv.exe 的绝对路径, 例如: "C:\\path\\to\\uv.exe"
"args": [
"--directory",
"C:\\Users\\YourName\\Projects\\stockreport_mcp", // 替换为你的项目根目录绝对路径,不一定是C盘,按实际的填写
"run",
"python",
"mcp_server.py"
],
"transport": "stdio"
// "workingDirectory": "C:\\Users\\YourName\\Projects\\stockreport_mcp", // 使用 uv --directory 后,此项可能不再必需,但建议保留作为备用
}
// ... other servers ...
}
}注意事项:
command: 确保填写的uv命令或uv.exe的绝对路径是客户端可以访问和执行的。args: 确保参数列表完整且顺序正确。路径转义: 路径需要写成双反斜杠
\\。这是 Windows 系统特有的情况。如果是在 macOS 或 Linux 系统中,路径使用正斜杠/作为目录分隔符,就不需要这种转义处理。
workingDirectory: 虽然uv --directory应该能解决工作目录问题,但如果客户端仍然报错ModuleNotFoundError,可以尝试在客户端配置中明确设置此项为项目根目录的绝对路径。
方法二:使用 CherryStudio
在 CherryStudio 的 MCP 服务器配置界面中,按如下方式填写:
名称:
stockreport-mcp(或自定义)描述:
本地 StockReport MCP 服务器(或自定义)类型: 选择 标准输入/输出 (stdio)
命令:
uv(或者填系统中绝对路径下 uv.exe)包管理源: 默认
参数:
第一个参数填:
--directory第二个参数填:
C:\\Users\\YourName\\Projects\\stockreport_mcp第三个参数填:
run第四个参数填:
python第五个参数填:
mcp_server.py
确保所有参数按下回车转行隔开的,否则报错(是不是手把手教学了?)
环境变量: (通常留空)
Tricks(必看): 有时候在 Cherrystudio 填写好参数后,点击右上方的开关按钮,会发现没任何反应,此时只要随便点击左侧目录任一按钮,跳出 mcp 设置界面,然后再回到 mcp 设置界面,就会发现 mcp 已经闪绿灯配置成功了。
CherryStudio 使用示例: 理论上来说,你可以问有关股票市场的任何问题 :)


重要提示:
确保命令字段中的
uv或其绝对路径有效且可执行。确保参数字段按顺序正确填写了五个参数。
工具列表
该 MCP 服务器提供以下工具:
贡献指南
欢迎提交 Issue 或 Pull Request 来帮助改进项目。贡献前请先查看现有 Issue 和文档。
☕️ 请作者喝杯咖啡
如果这个项目对你有帮助,欢迎请我喝杯咖啡 ❤️
许可证
本项目采用 MIT 许可证 - 详情请查看 LICENSE 文件
Available Tools
47 toolsget_adjust_factor_dataA
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.
Inputs: code (required), start_date (required), end_date (required). Returns: result
get_all_stockA
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).
Inputs: date. Returns: result
get_balance_dataB
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.
Inputs: code (required), year (required), quarter (required). Returns: result
get_cash_flow_dataB
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.
Inputs: code (required), year (required), quarter (required). Returns: result
get_deposit_rate_dataB
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.
Inputs: start_date, end_date. Returns: result
get_dividend_dataA
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.
Inputs: code (required), year (required), year_type. Returns: result
get_dupont_dataA
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.
Inputs: code (required), year (required), quarter (required). Returns: result
get_forecast_reportA
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.
Inputs: code (required), start_date (required), end_date (required). Returns: result
get_growth_dataB
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.
Inputs: code (required), year (required), quarter (required). Returns: result
get_historical_k_dataA
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.
Inputs: code (required), start_date (required), end_date (required), frequency, +2 more. Returns: result
get_hk_balance_dataB
获取港股季度资产负债表/偿债能力数据 (如流动比率、负债率等)
Args:
code: 港股代码 (如 'hk.00700')
year: 4位年份 (如 '2023')
quarter: 季度 (1, 2, 3, 或 4)
Returns:
Markdown格式的资产负债表数据表格或错误信息
Inputs: code (required), year (required), quarter (required). Returns: result
get_hk_cash_flow_dataB
获取港股季度现金流数据 (如经营现金流/营业收入比率等)
Args:
code: 港股代码 (如 'hk.00700')
year: 4位年份 (如 '2023')
quarter: 季度 (1, 2, 3, 或 4)
Returns:
Markdown格式的现金流数据表格或错误信息
Inputs: code (required), year (required), quarter (required). Returns: result
get_hk_dividend_dataA
获取港股分红信息
Args:
code: 港股代码 (如 'hk.00700')
year: 年份 (如 '2023')
Returns:
Markdown格式的分红数据表格或错误信息
Inputs: code (required), year (required). Returns: result
get_hk_dupont_dataB
获取港股季度杜邦分析数据 (ROE分解)
Args:
code: 港股代码 (如 'hk.00700')
year: 4位年份 (如 '2023')
quarter: 季度 (1, 2, 3, 或 4)
Returns:
Markdown格式的杜邦分析数据表格或错误信息
Inputs: code (required), year (required), quarter (required). Returns: result
get_hk_growth_dataB
获取港股季度成长能力数据 (如同比增长率等)
Args:
code: 港股代码 (如 'hk.00700')
year: 4位年份 (如 '2023')
quarter: 季度 (1, 2, 3, 或 4)
Returns:
Markdown格式的成长能力数据表格或错误信息
Inputs: code (required), year (required), quarter (required). Returns: result
get_hk_historical_k_dataB
获取港股历史K线数据
Args:
code: 港股代码 (如 'hk.00700' 表示腾讯)
start_date: 开始日期 'YYYY-MM-DD'
end_date: 结束日期 'YYYY-MM-DD'
frequency: 数据频率,默认'd'(日线)
fields: 可选的字段列表
Returns:
Markdown格式的K线数据表格
Inputs: code (required), start_date (required), end_date (required), frequency, +1 more. Returns: result
get_hk_operation_dataB
获取港股季度运营能力数据 (如周转率等)
Args:
code: 港股代码 (如 'hk.00700')
year: 4位年份 (如 '2023')
quarter: 季度 (1, 2, 3, 或 4)
Returns:
Markdown格式的运营能力数据表格或错误信息
Inputs: code (required), year (required), quarter (required). Returns: result
get_hk_profit_dataB
获取港股季度盈利能力数据 (如ROE、净利润率等)
Args:
code: 港股代码 (如 'hk.00700')
year: 4位年份 (如 '2023')
quarter: 季度 (1, 2, 3, 或 4)
Returns:
Markdown格式的盈利能力数据表格或错误信息
Inputs: code (required), year (required), quarter (required). Returns: result
get_hk_stock_analysisB
提供基于数据的港股分析报告,而非投资建议
Args:
code: 港股代码,如'hk.00700'
analysis_type: 分析类型,可选'fundamental'(基本面)、'technical'(技术面)或'comprehensive'(综合)
Returns:
数据驱动的分析报告,包含关键财务指标、历史表现和同行业比较
Inputs: code (required), analysis_type. Returns: result
get_hk_stock_basic_infoB
获取港股基本信息
Args:
code: 港股代码 (如 'hk.00700' 表示腾讯)
fields: 可选的字段列表
Returns:
Markdown格式的基本信息表格
Inputs: code (required), fields. Returns: result
get_hk_stock_realtime_dataB
获取港股实时行情数据
Args:
code: 港股代码 (如 'hk.00700' 表示腾讯)
Returns:
Markdown格式的实时行情数据
Inputs: code (required). Returns: result
get_hs300_stocksA
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.
Inputs: date. Returns: result
get_latest_trading_dateA
获取最近的交易日期。如果当天是交易日,则返回当天日期;否则返回最近的交易日。
Returns:
最近的交易日期,格式为'YYYY-MM-DD'。
Inputs: no named parameters. Returns: result
get_loan_rate_dataA
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.
Inputs: start_date, end_date. Returns: result
get_market_analysis_timeframeA
获取适合市场分析的时间范围,基于当前真实日期而不是训练数据。
这个工具应该在进行市场分析或大盘分析时首先调用,以确保使用最新的实际数据。
Args:
period: 时间范围类型,可选值:
"recent": 最近1-2个月(默认)
"quarter": 最近一个季度
"half_year": 最近半年
"year": 最近一年
Returns:
包含分析时间范围的详细描述字符串,格式为"YYYY年M月-YYYY年M月"。
Inputs: period. Returns: result
get_money_supply_data_monthB
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.
Inputs: start_date, end_date. Returns: result
get_money_supply_data_yearC
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.
Inputs: start_date, end_date. Returns: result
get_operation_dataA
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.
Inputs: code (required), year (required), quarter (required). Returns: result
get_performance_express_reportA
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.
Inputs: code (required), start_date (required), end_date (required). Returns: result
get_popular_hk_stocksB
获取热门港股列表
Args:
limit: 返回的股票数量限制,默认20
Returns:
Markdown格式的热门港股列表
Inputs: limit. Returns: result
get_popular_us_stocksC
获取热门美股列表
Returns:
Markdown格式的热门美股列表
Inputs: no named parameters. Returns: result
get_profit_dataB
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.
Inputs: code (required), year (required), quarter (required). Returns: result
get_required_reserve_ratio_dataB
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.
Inputs: start_date, end_date, year_type. Returns: result
get_shibor_dataA
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.
Inputs: start_date, end_date. Returns: result
get_stock_analysisB
提供基于数据的股票分析报告,而非投资建议。
Args:
code: 股票代码,如'sh.600000'
analysis_type: 分析类型,可选'fundamental'(基本面)、'technical'(技术面)或'comprehensive'(综合)
Returns:
数据驱动的分析报告,包含关键财务指标、历史表现和同行业比较
Inputs: code (required), analysis_type. Returns: result
get_stock_basic_infoA
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.
Inputs: code (required), fields. Returns: result
get_stock_industryA
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.
Inputs: code, date. Returns: result
get_sz50_stocksA
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.
Inputs: date. Returns: result
get_trade_datesA
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).
Inputs: start_date, end_date. Returns: result
get_us_historical_k_dataB
获取美股历史K线数据
Args:
code: 美股代码 (如 'us.AAPL' 表示苹果公司)
start_date: 开始日期 'YYYY-MM-DD'
end_date: 结束日期 'YYYY-MM-DD'
frequency: 数据频率,默认'd'(日线)
fields: 可选的字段列表
Returns:
Markdown格式的K线数据表格
Inputs: code (required), start_date (required), end_date (required), frequency, +1 more. Returns: result
get_us_market_indicesC
获取美股主要指数信息
Returns:
Markdown格式的美股指数列表
Inputs: no named parameters. Returns: result
get_us_sector_performanceC
获取美股行业表现
Returns:
Markdown格式的行业表现数据
Inputs: no named parameters. Returns: result
get_us_stock_basic_infoB
获取美股基本信息
Args:
code: 美股代码 (如 'us.AAPL' 表示苹果公司)
fields: 可选的字段列表
Returns:
Markdown格式的基本信息表格
Inputs: code (required), fields. Returns: result
get_us_stock_realtime_dataB
获取美股实时行情数据
Args:
code: 美股代码 (如 'us.AAPL' 表示苹果公司)
Returns:
Markdown格式的实时行情数据
Inputs: code (required). Returns: result
get_zz500_stocksA
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.
Inputs: date. Returns: result
search_hk_stocksC
搜索港股股票
Args:
keyword: 搜索关键词 (股票名称或代码)
Returns:
Markdown格式的搜索结果
Inputs: keyword (required). Returns: result
search_us_stocksC
搜索美股股票
Args:
keyword: 搜索关键词(股票名称或代码)
Returns:
Markdown格式的搜索结果
Inputs: keyword (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 47 tools
Most tools have distinct purposes targeting specific data types (e.g., balance data vs. cash flow data) or market segments (A-shares vs. HK vs. US). However, some overlap exists between similar tools for different markets (e.g., get_balance_data and get_hk_balance_data are conceptually similar but for different exchanges), which could cause minor confusion if an agent doesn't carefully note the market prefix.
All tools follow a consistent snake_case naming pattern with a 'get_' prefix for data retrieval, followed by descriptive nouns (e.g., get_balance_data, get_historical_k_data). The naming is highly predictable, with market-specific tools clearly prefixed (e.g., get_hk_*, get_us_*), making the set easy to navigate.
With 47 tools, the count is excessive for a single server, creating cognitive overload. While the domain (stock reporting across multiple markets) is broad, many tools are near-duplicates across markets (e.g., separate tools for A-share, HK, and US balance data) rather than consolidated, making the surface feel bloated and difficult to manage efficiently.
The tool set provides comprehensive coverage for stock data retrieval across A-shares, HK, and US markets, including financial statements, market data, indices, and economic indicators. Minor gaps exist, such as lack of update/delete operations (expected for read-only data) and limited analytical tools beyond basic reports, but the surface supports most common stock analysis workflows effectively.
Maintenance
Related MCP Connectors
MCP server for real-time China A-share stock quotes, indices and market data.
Financial data MCP server for global quotes, news, financials, funds, bonds, IPOs and macro data.
2812China A-share & equity research MCP server (回声投研) for market quotes, filings, financials, fund flows, concepts & sentiment.
China A-share market data for research, backtesting and AI agents via MCP.
Related MCP Servers
- AlicenseBqualityDmaintenanceA financial data server that provides real-time and historical data for A-shares, Hong Kong, and US markets using the AkShare library. It enables users to query market quotes, fundamental information, and technical indicators through the Model Context Protocol.144MIT
- AlicenseBqualityDmaintenanceProvides comprehensive data for A-shares, Hong Kong, and US stocks alongside cryptocurrency markets, supporting technical indicators, news, and financial statements. It features automatic failover across multiple data sources to ensure reliable access to real-time and historical market information.4734MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides real-time stock data, technical indicators, and financial metrics using the date.590.net data source. It enables AI-powered intelligent analysis and batch reporting through integration with the Deepseek API.-
- FlicenseNot gradedqualityDmaintenanceMCP server that wraps SFC financial data API into 32 tools for comprehensive A-share market data, including real-time quotes, rankings, limit-up statistics, news, themes, financials, charts, research reports, and watchlists.-