Stock Data Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Stock Data Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
MCP server wrapper for open-stock-data.
This project is a thin shell: it imports open_stock_data.tools.TOOL_REGISTRY and registers every upstream tool as an MCP tool automatically. That means new upstream tools and metadata are exposed here after you install a newer open-stock-data release.
pip install stock-data-mcp# stdio mode (default)
stock-data-mcp
# HTTP mode
stock-data-mcp --http --host 0.0.0.0 --port 8808
# Add to Claude Code
claude mcp add stock-data \
-e TUSHARE_TOKEN=your_token \
-e ALPHA_VANTAGE_API_KEY=your_key \
-e OKX_BASE_URL=https://okx.4url.cn \
-e BINANCE_BASE_URL=https://bian.4url.cn \
-- uvx stock-data-mcpCurrent upstream open-stock-data provides 43 tools across A-share, HK, US stock, crypto, and market/news use cases.
index_prices - A股指数 K 线数据stock_prices - 个股 K 线数据stock_realtime - 个股实时行情stock_batch_realtime - 批量实时行情search - 股票搜索stock_info - 个股基本信息stock_indicators - 财务指标摘要get_current_time - 当前时间与交易日历stock_lhb_ggtj_sina - 龙虎榜stock_sector_fund_flow_rank - 板块资金流排名stock_margin_trading - 融资融券stock_zt_pool - 涨停池stock_north_flow - 北向资金stock_block_trade - 大宗交易stock_holder_num - 股东人数stock_chip - 筹码分布stock_fund_flow - 个股资金流向stock_sector_spot - 板块行情stock_board_cons - 板块成分股stock_market_pe_percentile - 市场 PE 分位stock_industry_pe - 行业 PEstock_dividend_history - 分红历史stock_institutional_holdings - 基金持仓stock_earnings_calendar - 业绩披露日历stock_financial_compare - 财务对比stock_locked_shares - 限售解禁stock_pledge_ratio - 质押比例stock_top10_holders - 十大股东backtest_strategy - 回测策略stock_prices_us - 美股/港股 K 线stock_overview_us - 美股概览stock_financials_us - 美股财报stock_earnings_us - 美股业绩stock_insider_us - 内部交易stock_news_us - 美股新闻stock_tech_indicators_us - 美股技术指标okx_prices - OKX 行情okx_loan_ratios - OKX 借贷比okx_taker_volume - OKX 主动买卖量binance_ai_report - Binance AI 报告stock_news - 个股新闻stock_news_global - 全球财经新闻data_source_status - 数据源状态Upstream tools normalize common stock-code inputs before routing. This is especially relevant for stock_prices, stock_realtime, stock_info, and stock_indicators.
600519, 000001, sh600519, sz000001, 600519.SH, 000001.SZ510300, 159001, sh510300, sz159001, 510300.SH, 159001.SZ01810, 1810, HK01810, 01810.HK, 1810.hkAAPL, MSFT, BRK.BNotes:
01810.HK -> 01810sh600519 -> 600519brk.b -> BRK.BSHSE.600519、SZSE.159001 这类交易所前缀格式The exact failover path is implemented by open-stock-data, not by this wrapper. Current upstream behavior includes:
Efinance -> Akshare -> TushareAkshare -> YFinanceAkshare -> YFinanceYFinance -> AlphaVantageTushare -> Efinance -> Akshare -> Pytdx -> Baostock| Variable | Purpose |
|---|---|
TUSHARE_TOKEN | Tushare API token |
ALPHA_VANTAGE_API_KEY | Alpha Vantage API key |
OKX_BASE_URL | Custom OKX API proxy endpoint |
BINANCE_BASE_URL | Custom Binance API proxy endpoint |
NEWSNOW_CHANNELS | Comma-separated news source channels |
ENABLE_EASTMONEY_PATCH | Set to true to inject randomized User-Agent and nid18 token for Eastmoney requests when Eastmoney endpoints are being rate-limited |
LOG_LEVEL | Logging level, default INFO |
If Eastmoney endpoints fail frequently with RemoteDisconnected, abrupt resets, or similar rate-limit style errors, enable:
export ENABLE_EASTMONEY_PATCH=trueWhen enabled, upstream will:
User-Agentnid18 tokennid18 cookie into existing cookies~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.