stock-mcp-query
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "stock-mcp-query":https://skillpi.com/zh/skills/deepskill-d3ad268dbaaa4e70ad46baa6fc79308b5cfa774a3b3a21c9a334cc024e1b973b。安装前核对上游来源和版本:https://github.com/Yourdaylight/stock_datasource。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
通过 MCP 查询历史股市数据(A股、港股、ETF、指数)。用于获取日K线、财务报表、市场指标、筛选或其他批量数据。DeepSeek Harness 客户端应先调用 stock_list_tools,再调用 stock_call_tool。远程 HTTP MCP 在端口 8001 上仍需要 STOCK_MCP_TOKEN。
介绍来源: third_party · Yourdaylight · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: stock-mcp-query
description: Query historical stock market data (A-shares, HK stocks, ETFs, indices) via MCP. Use when the user wants daily K-line, financial statements, market indicators, screening, or other batch data. DeepSeek Harness clients should call stock_list_tools then stock_call_tool. Remote HTTP MCP on port 8001 still requires STOCK_MCP_TOKEN.Stock MCP Query
Query historical stock market data including daily OHLCV, financial reports, index data, ETF data, and more through the MCP protocol.
Prerequisites
This skill requires:
- STOCK_MCP_TOKEN environment variable — a JWT token purchased from the management platform (nps_enhanced)
- STOCK_MCP_SERVER_URL environment variable (optional) — the MCP server URL, defaults to the URL provided at purchase time
Setup Check
Before using any data query tools, verify the environment is configured:
# Check if token exists
echo ${STOCK_MCP_TOKEN:+Token is set}${STOCK_MCP_TOKEN:-ERROR: STOCK_MCP_TOKEN not set}
If STOCK_MCP_TOKEN is not set:
- Visit the management platform (nps_enhanced web panel)
- Navigate to "MCP Data Query" subscription page
- Purchase a query quota pack (e.g., 10k records for 10 CNY)
- Copy the issued token
- Set the environment variable:
export STOCK_MCP_TOKEN="eyJ..." export STOCK_MCP_SERVER_URL="https://your-node:8001/messages"
DeepSeek Harness
When running inside DeepSeek Harness (dsh), do not call the raw plugin tools. Use:
mcp__stock__stock_list_tools—categoryis one ofmarket|basic|financial|index|etf|hk|realtime|toplist|other;queryis a keyword such asdailyor a ts_code prefix.mcp__stock__stock_call_tool—tool_namemust be anamereturned by the list tool (example:tushare_daily_get_daily_data);argumentsis a JSON object matching that tool'sinputSchema.
Keep queries narrow (one ts_code / code and a short date range). Results are truncated.
Start dsh with this repo's overlay instead of pointing at localhost:8001/messages:
export STOCK_DATASOURCE_ROOT=/absolute/path/to/stock_datasource
dsh web --patch "$STOCK_DATASOURCE_ROOT/integrations/dsh/stock.cordis.yml"
Stdio MCP spawned by dsh does not use STOCK_MCP_TOKEN.
MCP Server Configuration (Claude Code / Cursor / PicoClaw)
Add to your MCP client configuration:
{
"mcpServers": {
"stock-data": {
"type": "streamable-http",
"url": "${STOCK_MCP_SERVER_URL}",
"headers": {
"Authorization": "Bearer ${STOCK_MCP_TOKEN}"
}
}
}
}
Available Data Categories
| Category | Description | Example Tools |
|---|---|---|
| Daily K-line | OHLCV + volume + turnover | tushare_daily_* |
| Daily Basics | PE, PB, market cap, volume ratio | tushare_daily_basic_* |
| Adj Factor | Forward/backward adjustment factors | tushare_adj_factor_* |
| Financial | Balance sheet, income, cash flow | tushare_balancesheet_*, etc. |
| Index | Index daily, weights, components | tushare_index_* |
| ETF | ETF daily prices and holdings | tushare_fund_* |
| HK Stock | Hong Kong stock daily data | akshare_hk_* |
| Market | Market overview, trading calendar | tushare_trade_cal_* |
Usage Notes
- Each tool call returns data and counts against your query quota
- The response includes
_usage.record_countshowing records returned - The response includes
_usage.quota_remainingshowing remaining quota - When quota is exhausted, purchase additional packs from the management platform
- Data is sourced from ClickHouse and covers the full available history
Billing
- Billed per record (data row) returned by each tool call
- Query packs are valid for 90 days from purchase
- Multiple packs stack additively (quota accumulates)
- Usage is reconciled asynchronously between the MCP server and management platform
Troubleshooting
- 401 "API key required":
STOCK_MCP_TOKENis not set or not passed in Authorization header - 401 "Token expired": Your token has expired. Purchase a new quota pack to get a fresh token
- 401 "Invalid token": Token is malformed or the server's public key doesn't match
- No data returned: Check that the requested date is a trading day, or the stock code is valid
- Quota exhausted: The
_usage.quota_remainingwill show 0. Purchase additional packs
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供通过 MCP 协议查询历史股市数据(A股、港股、ETF、指数)的明确功能,满足特定金融数据需求
- 涵盖日K线、财务报表、市场指标等多种数据类型,功能范围清晰
亮点
- 触发条件描述清晰:当用户需要日K线、财务报表、市场指标、筛选或批量数据时使用
- 明确了 DeepSeek Harness 客户端的调用顺序 (stock_list_tools -> stock_call_tool)
待提升项
-
缺少独立的 When to Use/示例章节 原报告严重程度:轻微
文档主体描述了用法,但未设置独立的 'When to Use' 或 'Examples' 章节标题
改进建议:建议添加独立的 'When to Use' 和 'Examples' 章节以提升可读性和规范性
亮点
- 文档结构清晰,包含 Prerequisites、Setup Check、DeepSeek Harness、MCP Server Config、Data Categories、Usage Notes、Billing、Troubleshooting 等完整章节
- 提供了具体的 bash 命令和 JSON 配置示例,便于用户理解和操作
亮点
- 详细说明了环境变量要求 (STOCK_MCP_TOKEN, STOCK_MCP_SERVER_URL) 和设置检查方法
- 提供了完整的故障排查指南,涵盖常见 HTTP 错误 (401)、配额耗尽等场景
- 明确了计费模式 (按记录计费)、配额管理和购买流程
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 104 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- your-node
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。