What it does
查询 A 股、美股、港股与场内基金行情,并通过 Node.js、浏览器、CLI 或 MCP 快速接入。
- Connects Instruction files the AI reads
- Account or key No key found in README or SKILL.md
- Category その他
作者向け:README にバッジを付ける
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/skills/zhangxiangliang-stock-api)似た Skill
同じ種類の作業。Skill 一覧と同じ並び
| これ stock-api | llmfit | claude-video | VideoCaptioner | claude-cookbooks | |
|---|---|---|---|---|---|
| 作者 | zhangxiangliang | AlexsJones | bradautomates | WEIFENG2333 | anthropics |
| Skill 数 | 1 | 1 | 1 | 1 | 4 |
| GitHub スター | 2,006 | 39,096 | 21,249 | 16,577 | 54,867 |
| 最終コード更新 | 2026年11月19日 | 2026年11月18日 | 2026年9月25日 | 2026年9月12日 | 2026年11月17日 |
| ライセンス | MIT | MIT | MIT | GPL-3.0 | MIT |
zhangxiangliang による 1 個の Skill(指示セット)。AI が読んでそのとおりに作業します · MCP server ではありません
Skill と MCP の違い
MCP = 手
AI を外部のサービスやデータにつなぎます(例:Notion を読む、請求書を作る)。プログラムやサーバーが動いている必要があります。
Skill = 手順書
作業のやり方を AI に教えるテキストファイル。どのサービスにもつながりません。
重なる部分もあります。ツールを呼ぶスクリプト付きの Skill や、知識だけを渡す MCP もあります。やりたい作業から選んでください。
使えるアプリ
Claude CodeCodex
提供元の README と repo のフォルダから判断
インストール
Is it safe?
- Who made it
GitHub account zhangxiangliang (person), 8 years old
- Use and upkeep
★ 2,006 stars · code last changed 2026年11月19日
- Any scripts?
71 scripts that can run on a computer: eslint.config.mjs, jest.config.js, jest.integration.config.js, scripts/browser-smoke.mjs and 67 more
- Uses the internet?
Could not check every script (some are too large); read them first
- Changes machine-wide settings?
No hooks or writes to machine settings found
Checked automatically from the repo files at commit bdab240 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
まず:どの AI を使っていますか
使っているアプリを選ぶと、そのアプリでのインストール方法だけが表示されます
Option 1Upload to claude.ai (web and app)
Uploading to claude.ai would fail: the description is over 200 characters (258). Use "Let the AI install it" instead
Option 1Claude Code にインストールしてもらう
この文をコピーして Claude Code のチャットに貼り付けます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Claude Code を開き直し、/stock-api と入力するか関連する作業を頼むと Claude が自動で使います
Checked against official docs 2026年11月12日 · Source: code.claude.com
For Terminal users
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
skill フォルダを ~/.claude/skills にコピー
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/zhangxiangliang/stock-api.git /tmp/popnx-skill-zhangxiangliang-stock-api-bdab240 && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-zhangxiangliang-stock-api-bdab240/.' ~/.claude/skills/stock-apiClaude Code を開き直し、/stock-api と入力するか関連する作業を頼むと Claude が自動で使います
ChatGPT デスクトップアプリ
ChatGPT デスクトップアプリには Codex が組み込まれていて、Codex は ~/.agents/skills フォルダから Skill を読み込みます
Option 1ChatGPT にインストールしてもらう
ChatGPT デスクトップアプリで Codex を開き、この文をチャットに貼り付けます
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Option 2自分でフォルダを置く
stock-api フォルダを ~/.agents/skills/stock-api に置きます
~ はホームフォルダ($HOME)です
For Terminal users
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
skill フォルダを ~/.agents/skills にコピー
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/zhangxiangliang/stock-api.git /tmp/popnx-skill-zhangxiangliang-stock-api-bdab240 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-zhangxiangliang-stock-api-bdab240/.' ~/.agents/skills/stock-api
インストールしたあと
- ChatGPT デスクトップアプリ:サイドバーの Skills を開いて Skill があるか確認します
- 使い方:ChatGPT では @ を入力して Skill を選びます · Codex CLI や IDE 拡張機能では /skills を実行するか、$ に続けて Skill 名を入力します
- Codex は新しくインストールした Skill を自動で見つけます。表示されない場合は Codex を再起動してください
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
Web 版とモバイル版の ChatGPT
自分でインストールした Skill は使えません。ディレクトリのプラグインに含まれる Skill だけが使えます
この Skill を ChatGPT で使うには、上の方法で ChatGPT デスクトップアプリを使ってください
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
Option 1Codex にインストールしてもらう
この文をコピーして Codex のチャットに貼り付けます · ChatGPT デスクトップアプリ内の Codex、Codex CLI、IDE 拡張機能で使えます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex は新しくインストールした Skill を自動で見つけます。表示されない場合は Codex を再起動してください · 使い方:ChatGPT では @ を入力して Skill を選びます · Codex CLI や IDE 拡張機能では /skills を実行するか、$ に続けて Skill 名を入力します
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
For Terminal users
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
skill フォルダを ~/.agents/skills にコピー
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/zhangxiangliang/stock-api.git /tmp/popnx-skill-zhangxiangliang-stock-api-bdab240 && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-zhangxiangliang-stock-api-bdab240/.' ~/.agents/skills/stock-apiCodex を開き直して関連する作業を頼むと、Codex が skill を一覧に出します
Option 1Cursor にインストールしてもらう
この文をコピーして Cursor のチャットに貼り付けます
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Cursor の Agent チャットで / を入力し stock-api を選ぶ
Checked against official docs 2026年11月12日 · Source: cursor.com
For Terminal users
Skill は AI が従う指示です。入れる前にファイルを読み、信頼できる提供元のものだけを入れてください。
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:下のコマンドは PowerShell では動きません。上の「AI にインストールしてもらう」を使ってください
skill フォルダを ~/.cursor/skills にコピー
repo を一時フォルダにダウンロードし、SKILL.md のあるフォルダだけをコピーします
git clone --depth 1 https://github.com/zhangxiangliang/stock-api.git /tmp/popnx-skill-zhangxiangliang-stock-api-bdab240 && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-zhangxiangliang-stock-api-bdab240/.' ~/.cursor/skills/stock-apiCursor の Agent チャットで / を入力し stock-api を選ぶ
Option 1Let the AI install it
Skill を読めるほかのアプリ向けです。この文には Claude Code、Codex、Cursor のパスが入っていて、AI が使っているアプリに合わせて選びます · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com
For Terminal users
Gemini CLI や GitHub Copilot など Agent Skills 対応の他のアプリはフォルダが違います。そのアプリのガイドを見て、SKILL.md のあるフォルダをコピーしてください。
2026年11月11日 に Claude Code、Codex、Cursor の公式ガイドで skill フォルダを確認
✓ コマンド確認済み 2026年11月18日
元の SKILL.md を見る
以下は提供元の repo の文章で、PopNx MCP の指示ではありません
2,025 文字 · GitHub で全文を開く
---
name: stock-api
description: Fetch real-time stock quotes, K-line (candlestick) history, and search symbols for China A-shares, Hong Kong, and US markets. Use when the user asks for a stock price, a quote, market data, candlestick/K-line data, or to look up a stock code by company name.
---
# stock-api
Get normalized stock market data by running the `stock-api` CLI. It covers
China A-shares, Hong Kong, and US markets, with automatic provider fallback
across Tencent, Sina, and Eastmoney.
## When to use
- The user wants a current price or quote for one or more stocks.
- The user wants K-line / candlestick history for charting or analysis.
- The user knows a company name but not its code (search first, then quote).
## How to run
Use `npx stock-api <command>`. Every command prints JSON to stdout.
Stock codes use a market prefix: `SH` / `SZ` (China), `HK` (Hong Kong),
`US` (US). Examples: `SH510500`, `SZ000651`, `HK02020`, `USDJI`.
### Get one quote
```bash
npx stock-api get-stock SH510500
```
### Get several quotes at once
```bash
npx stock-api get-stocks SH510500 SZ000651
```
### Get K-line (candlestick) history
```bash
npx stock-api get-klines SH600519 --period week --count 20
```
- `--period` — `day` (default), `week`, or `month`.
- `--count` — number of rows (defaults to the provider default).
- `--adjust` — `none` (default), `qfq` (forward), or `hfq` (backward).
### Search a code by keyword
```bash
npx stock-api search-stocks 格力电器
```
## Options (all commands)
- `--source` — `auto` (default), `tencent`, `sina`, or `eastmoney`.
Leave it on `auto` unless the user asks for a specific provider; `auto`
falls back across providers if one fails.
## Notes
- Output is JSON — parse it, don't reformat by hand, before showing the user.
- If a code returns no data, try `search-stocks` to confirm the correct code.
- For programmatic/persistent use, this same engine is also available as an
MCP server: `npx stock-api mcp`. Prefer the CLI commands above for one-off
lookups.
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
GitHub の情報
- GitHub スター
- 2,006
- 提供元
- zhangxiangliang
- ライセンス
- MIT
- 最終コード更新
- 2026年11月19日
- repo 内の SKILL.md(翻訳版とテンプレートを含む)
- 1
- トピック
- browser, mcp, nodejs, stocks