stock-mcp-query

stock-mcp-query is a skill for Claude Code, Codex from Yourdaylight/stock_datasource. It costs 76 tokens per session (1,105 once invoked), scanned A, original, MIT.

A tool for querying historical stock-market data, including prices, company financial reports, ETFs, and market indexes. It connects to a stock database through a standard tool interface and requires a paid access token.

In plain words
What is it for?
Use it to retrieve daily price data, financial statements, market indicators, stock screens, ETF data, and index data for Chinese and Hong Kong markets.
Why use it?
It removes the need to collect and format large amounts of past market data manually. Without the required token and server setup, it cannot query the database.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to retrieve daily price data, financial statements, market indicators, stock screens, ETF data, and index data for Chinese and Hong Kong markets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yourdaylight/stock_datasource/stock-mcp-query
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Yourdaylight/stock_datasource --skill stock-mcp-query
Clone the repo
git clone --depth 1 https://github.com/Yourdaylight/stock_datasource

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stock-mcp-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/yourdaylight/stock_datasource/stock-mcp-query/github.svg)](https://agentmods.dev/skills/yourdaylight/stock_datasource/stock-mcp-query)
Your own site
<a href="https://agentmods.dev/skills/yourdaylight/stock_datasource/stock-mcp-query"><img src="https://agentmods.dev/badge/skills/yourdaylight/stock_datasource/stock-mcp-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for stock-mcp-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/yourdaylight/stock_datasource/stock-mcp-query"><img src="https://agentmods.dev/badge/skills/yourdaylight/stock_datasource/stock-mcp-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 42
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01105
Opus 5 $0.00038 $0.00553
Sonnet 5 $0.00015 $0.00221
Haiku 4.5 $0.00008 $0.00111

Measured 4d ago against content hash 915c00dd6820, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

stock-mcp-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/stock-mcp-query/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  1. STOCK_MCP_TOKEN environment variable — a JWT token purchased from the management platform (nps_enhanced)
  2. 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:

  1. Visit the management platform (nps_enhanced web panel)
  2. Navigate to "MCP Data Query" subscription page
  3. Purchase a query quota pack (e.g., 10k records for 10 CNY)
  4. Copy the issued token
  5. 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:

  1. mcp__stock__stock_list_toolscategory is one of market|basic|financial|index|etf|hk|realtime|toplist|other; query is a keyword such as daily or a ts_code prefix.
  2. mcp__stock__stock_call_tooltool_name must be a name returned by the list tool (example: tushare_daily_get_daily_data); arguments is a JSON object matching that tool's inputSchema.

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:

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +18 lines · +3 tokens per session 915c00dd6820
  2. 9d ago First seen · 91 lines · 73 tokens per session scan A 301fccf9801a

Subscribe to this mod's changes

stock-mcp-query is a skill published in the GitHub repository Yourdaylight/stock_datasource (185 stars, last pushed yesterday), licensed MIT. It adds 76 tokens to every session and 1,105 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories