1. Conduid
  2. AI
  3. Stock Data MCP
MCP server · AI

Stock Data MCP

A Model Context Protocol (MCP) server for stock data retrieval

Unclaimed MIT last commit 9 months ago aksharebaostockefinancemcpstockstock-datatushare-proyfinance
51Fair

Scored 22 hours ago · breakdown

About Stock Data MCP

Stock Data MCP is an MCP server published by stockmcp in the AI category: a Model Context Protocol (MCP) server for stock data retrieval. Conduid read 47 tools from its source: backtest_strategy, binance_ai_report, data_source_status, get_current_time, okx_loan_ratios, okx_prices and 41 more. No package is published for it, so it installs from a source checkout.

The repository has 34 stars and 10 forks, is licensed MIT, and its last commit was on 6 Mar 2026. The latest release is v0.2.4 (11 Feb 2026). The release before it was v0.2.3 (2 Feb 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include akshare, baostock, efinance, stock, stock-data and tushare-pro.

Install

From source
git clone https://github.com/stockmcp/stock-data-mcp

Tools (47)

backtest_strategy对股票进行简单策略回测,支持均线交叉、MACD、KDJ等策略,返回收益率、最大回撤、胜率等指标。
ParameterTypeDescription
end_datestring结束日期,格式: 20241231,默认今天
initial_capitalnumber初始资金(元)
ma_longinteger长期均线周期(ma_cross策略)
ma_shortinteger短期均线周期(ma_cross策略)
start_datestring开始日期,格式: 20240101,默认一年前
strategystring策略类型: 'ma_cross'(均线交叉), 'macd'(MACD金叉死叉), 'kdj'(KDJ超买超卖), 'rsi'(RSI超买超卖), 'boll'(布林带突破)
symbolstring
binance_ai_report获取币安对加密货币的AI分析报告,此工具对分析加密货币非常有用。支持自动重试。
ParameterTypeDescription
symbolstring加密货币币种,格式: BTC 或 ETH
data_source_status查看多数据源的状态和熔断器信息
get_current_time获取当前系统时间及A股交易日信息,建议在调用其他需要日期参数的工具前使用该工具
okx_loan_ratios获取OKX加密货币借入计价货币与借入交易货币的累计数额比值。支持自动重试。
ParameterTypeDescription
periodstring时间粒度,仅支持: [5m/1H/1D] 注意大小写,仅分钟为小写m
symbolstring币种,格式: BTC 或 ETH
okx_prices获取OKX加密货币的历史K线数据,包括价格、交易量和技术指标。支持自动重试。
ParameterTypeDescription
barstringK线时间粒度,仅支持: [1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/2D/3D/1W/1M/3M] 除分钟为小写m外,其余均为大写
instIdstring产品ID,格式: BTC-USDT
limitinteger返回数量(int),最大300,最小建议30
okx_taker_volume获取OKX加密货币主动买入和卖出的交易量。支持自动重试。
ParameterTypeDescription
instTypestring产品类型 SPOT:现货 CONTRACTS:衍生品
periodstring时间粒度,仅支持: [5m/1H/1D] 注意大小写,仅分钟为小写m
symbolstring币种,格式: BTC 或 ETH
portfolio_risk_analysis分析投资组合的风险指标,包括波动率、最大回撤、相关性矩阵、夏普比率等。
ParameterTypeDescription
daysinteger分析周期(天)
symbols *string股票代码列表,逗号分隔,如: 600519,000858,601318
search根据股票名称、公司名称等关键词查找股票代码, 不支持加密货币。该工具比较耗时,当你知道股票代码或用户已指定股票代码时,建议直接通过股票代码使用其他工具
ParameterTypeDescription
keyword *string搜索关键词,公司名称、股票名称、股票代码、证券简称
marketstring
stock_batch_realtime批量获取多只A股实时行情数据。支持多数据源自动故障转移。
ParameterTypeDescription
limitinteger返回数量(int)
symbols *string股票代码列表,用逗号分隔,如: 600519,000858,601318
stock_block_trade获取A股大宗交易数据,包括成交价、成交量、溢价率等。大宗交易反映机构大额交易动向。
ParameterTypeDescription
limitinteger返回数据条数
symbolstring股票代码(可选),留空则获取当日全市场数据
stock_board_cons获取行业或概念板块的成分股列表。支持多数据源自动故障转移。
ParameterTypeDescription
board_name *string板块名称,如: 酿酒行业、新能源、人工智能
board_typestring板块类型: industry(行业), concept(概念)
limitinteger返回数量(int)
stock_chip获取A股筹码分布数据,包括获利比例、平均成本、成本区间、筹码集中度等。
ParameterTypeDescription
symbolstring
stock_dividend_history获取A股个股历史分红送转数据,包括派息、送股、转增等。用于分析股息率和分红政策。
ParameterTypeDescription
limitinteger返回数量限制
symbolstring
stock_earnings_calendar获取A股财报披露时间表,查看即将披露财报的公司。用于跟踪财报季。
ParameterTypeDescription
limitinteger返回数量限制
periodstring报告期,如: 2024年报、2024三季报,默认最新
stock_earnings_us获取美股历史盈利数据和分析师预期。支持多数据源: Alpha Vantage (需API key) -> yfinance (免费)。
ParameterTypeDescription
symbol *string美股代码,如: AAPL, MSFT, GOOGL
stock_financial_compare获取A股个股详细财务指标,包括盈利能力、偿债能力、运营能力等多维度分析。
ParameterTypeDescription
symbolstring
stock_financials_us获取美股财务报表数据,包括资产负债表、利润表、现金流量表。支持多数据源: Alpha Vantage (需API key) -> yfinance (免费)。
ParameterTypeDescription
quarterlyboolean是否获取季度数据,False则获取年度数据
report_typestring报表类型: balance_sheet(资产负债表), income_statement(利润表), cash_flow(现金流量表)
symbol *string美股代码,如: AAPL, MSFT, GOOGL
stock_fund_flow获取A股个股的资金流向数据,包括主力、超大单、大单、中单、小单的流入流出情况。支持多数据源自动故障转移。
ParameterTypeDescription
symbolstring
stock_holder_num获取A股股东户数变化数据,筹码集中度的重要指标。股东人数减少通常意味着筹码趋于集中。
ParameterTypeDescription
symbol *string股票代码,如: 300058, 600036
stock_indicators获取股票财务报告关键指标,支持A股、港股、美股市场
ParameterTypeDescription
marketstring市场: 'sh'/'sz'(A股), 'hk'(港股), 'us'(美股)
symbolstring
stock_industry_pe获取A股各行业PE对比数据,用于行业估值比较和行业轮动分析。
ParameterTypeDescription
datestring日期(可选),格式: 20250210,默认最新
stock_info根据股票代码和市场获取股票基本信息, 不支持加密货币
ParameterTypeDescription
marketstring
symbolstring
stock_insider_us获取美股公司内部人交易记录。支持多数据源: Alpha Vantage (需API key) -> yfinance (免费)。
ParameterTypeDescription
limitinteger返回数量限制
symbol *string美股代码,如: AAPL, MSFT, GOOGL
stock_institutional_holdings获取A股基金重仓股数据,显示公募基金持仓最多的股票及持仓变化。用于跟踪机构动向。
ParameterTypeDescription
datestring报告期,格式: 20240930,默认最新季度
limitinteger返回数量限制
stock_lhb_ggtj_sina获取中国A股市场(上证、深证)的龙虎榜个股上榜统计数据。支持多数据源。
ParameterTypeDescription
daysstring统计最近天数,仅支持: [5/10/30/60]
limitinteger返回数量(int,30-100)
stock_locked_shares获取A股限售股解禁日历,查看即将解禁的股票及解禁规模。限售解禁是重要的市场供给压力指标。
ParameterTypeDescription
end_datestring结束日期,格式: 20250311,默认未来30天
limitinteger返回数量限制
modestring模式: 'detail'(个股明细), 'summary'(每日汇总)
start_datestring开始日期,格式: 20250211,默认今日
stock_margin_trading获取A股市场融资融券数据,包括融资余额、融券余额等。融资融券是衡量市场杠杆资金的重要指标。
ParameterTypeDescription
limitinteger返回数据条数
marketstring市场: 'sh'(沪市), 'sz'(深市)
symbolstring股票代码(可选),留空则获取市场整体数据
stock_market_pe_percentile获取A股市场整体PE/PB的历史分位数,用于判断市场整体估值水平。
stock_news根据股票代码或加密货币符号获取近期相关新闻
ParameterTypeDescription
limitinteger返回数量(int)
symbol *string股票代码/加密货币符号
stock_news_global获取最新的全球财经快讯
stock_news_us获取美股相关新闻及情绪分析数据。需要配置 ALPHA_VANTAGE_API_KEY 环境变量。
ParameterTypeDescription
limitinteger返回数量限制,最大50
symbolstring美股代码(可选),如: AAPL, MSFT。留空则获取市场整体新闻
topicsstring主题过滤(可选),如: technology, earnings, ipo, mergers_and_acquisitions
stock_north_flow获取沪深港通北向资金(外资)流向数据,包括沪股通、深股通的资金净流入情况。北向资金是A股重要的风向标。
ParameterTypeDescription
indicatorstring指标类型,可选: '北向资金', '沪股通', '深股通'
stock_overview_us获取美股公司基本面概览,包括市值、PE、EPS、股息率、52周高低点、分析师评级等。支持多数据源: Alpha Vantage (需API key) -> yfinance (免费)。
ParameterTypeDescription
symbol *string美股代码,如: AAPL, MSFT, GOOGL, TSLA
stock_period_stats获取A股多周期统计数据,包括累计涨跌幅、振幅、换手率等,支持5日、10日、20日、60日、120日等周期
ParameterTypeDescription
marketstring股票市场,仅支持: sh(上证), sz(深证)
symbolstring
stock_pledge_ratio获取A股股权质押数据,包括行业质押统计和市场整体质押比例。股权质押是衡量大股东杠杆风险的重要指标。
ParameterTypeDescription
limitinteger返回数量限制
modestring模式: 'industry'(行业统计), 'market'(市场整体趋势)
stock_prices根据股票代码和市场获取股票历史价格及技术指标, 不支持加密货币。支持多数据源自动故障转移。
ParameterTypeDescription
limitinteger返回数量(int)
marketstring
periodstring周期,如: daily(日线), weekly(周线,不支持美股)
symbolstring
stock_prices_global获取美股或港股的历史价格数据及技术指标。支持多数据源自动故障转移。
ParameterTypeDescription
limitinteger返回数量(int)
marketstring市场: us(美股), hk(港股)
periodstring周期: daily(日线), weekly(周线)
symbolstring
stock_realtime获取A股/港股实时行情数据,包括最新价、涨跌幅、成交量、换手率、市盈率等。支持多数据源自动故障转移。
ParameterTypeDescription
marketstring股票市场,仅支持: sh(上证), sz(深证), hk(港股)
symbolstring
stock_screener根据条件筛选A股股票,支持按PE、PB、市值、涨跌幅、换手率等指标筛选。
ParameterTypeDescription
ascendingboolean是否升序排列
change_maxnumber最大涨跌幅(%)
change_minnumber最小涨跌幅(%)
limitinteger返回数量
mc_maxnumber最大总市值(亿元),0表示不限
mc_minnumber最小总市值(亿元)
pb_maxnumber最大市净率,0表示不限
pb_minnumber最小市净率
pe_maxnumber最大市盈率(动态),0表示不限
pe_minnumber最小市盈率(动态)
sort_bystring排序字段: 涨跌幅/换手率/量比/市盈率/市净率/总市值
turnover_minnumber最小换手率(%)
volume_ratio_minnumber最小量比
stock_sector_fund_flow_rank获取中国A股市场(上证、深证)的行业资金流向数据
ParameterTypeDescription
catestring仅支持: {'行业资金流','概念资金流','地域资金流'}
daysstring天数,仅支持: {'今日','5日','10日'},如果需要获取今日数据,请确保是交易日
stock_sector_spot获取A股个股所属的行业和概念板块信息
ParameterTypeDescription
symbolstring
stock_tech_indicators_us获取美股技术分析指标数据,如SMA、EMA、RSI、MACD、布林带等。需要配置 ALPHA_VANTAGE_API_KEY 环境变量。
ParameterTypeDescription
indicatorstring指标类型: SMA(简单移动平均), EMA(指数移动平均), RSI(相对强弱), MACD(指数平滑移动平均), BBANDS(布林带), STOCH(随机指标), ADX(趋向指标), ATR(真实波幅)
intervalstring时间间隔: daily(日), weekly(周), monthly(月)
limitinteger返回数量限制
symbol *string美股代码,如: AAPL, MSFT, GOOGL
time_periodinteger计算周期,如RSI常用14,SMA常用20
stock_top10_holders获取A股个股十大股东或十大流通股东信息,用于分析股权结构和机构持仓变化。
ParameterTypeDescription
holder_typestring股东类型: 'main'(十大股东), 'circulate'(十大流通股东)
limitinteger返回数量限制(多期数据)
symbolstring
stock_valuation_compare获取A股个股估值与行业对比数据,包括PE/PB在行业中的分位数。
ParameterTypeDescription
symbolstring
stock_zt_pool获取中国A股市场(上证、深证)的涨停股池或强势股池数据
ParameterTypeDescription
datestring交易日日期(可选),默认为最近的交易日,格式: 20251231
limitinteger返回数量(int,30-100)
pool_typestring股池类型: '涨停'(涨停股池), '强势'(强势股池), '跌停'(跌停股池), '昨日涨停'(昨日涨停股今日表现)
trading_signals根据技术指标生成股票交易信号,综合MACD、KDJ、RSI、布林带等指标判断买卖时机。
ParameterTypeDescription
daysinteger分析周期(天)
symbolstring

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 340 words.
  • ✓License declaredThe repository declares the MIT license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock.
  • ✓No dynamic code executionScanned 28 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
Streamable HTTP and HTTP with SSEstock_data_mcp/__init__.py:29, stock_data_mcp/__init__.py:29
Starts other programs
No calls that start other programs
Outbound network calls
2 callsstock_data_mcp/core.py:28, stock_data_mcp/data_provider/alphavantage_fetcher.py:52
Writes or deletes files
No file writes or deletes
Lockfile
uv.lock

Pattern matches on the source text of 28 files: places to read, not proof of what the code does at run time.

Releases

v0.2.4v0.2.4 · 11 Feb 2026Full Changelog: https://github.com/stockmcp/stock-data-mcp/compare/v0.2.3...v0.2.4
v0.2.3v0.2.3 · 2 Feb 2026Full Changelog: https://github.com/stockmcp/stock-data-mcp/compare/v0.2.2...v0.2.3

README

The repository's README runs to about 340 words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Stock Data MCP

How do I install Stock Data MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Stock Data MCP safe to use with an AI agent?

Its trust score is 51 out of 100 (fair). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Conduid's scan of 28 source files found that it serves MCP over Streamable HTTP and HTTP with SSE and makes outbound network calls (2 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Stock Data MCP still maintained?

The last commit was 9 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Stock Data MCP provide?

Conduid read 47 tools from the source: backtest_strategy, binance_ai_report, data_source_status, get_current_time, okx_loan_ratios, okx_prices, okx_taker_volume, portfolio_risk_analysis and 39 more. 43 of them publish their parameters, listed under Tools above.

What license is Stock Data MCP released under?

The repository declares the MIT license. That applies to the latest release, v0.2.4, as well.