Stock MCP Server
📈 Stock MCP Server
韓国/米国株式のテクニカル分析と戦略ベースのスクリーニングを提供するModel Context Protocol (MCP) サーバーです。 Claude DesktopやClaude CodeなどのMCP互換クライアントから、自然言語でチャート分析や銘柄スクリーニングを行うことができます。
✨ Features
🇰🇷 韓国株分析 —
pykrxベースのKOSPI/KOSDAQ全銘柄 OHLCV + テクニカル指標🇺🇸 米国株分析 —
yfinanceベースのNYSE/NASDAQ銘柄 + 時価総額/PER/52週高安値🔍 銘柄検索 — 銘柄名から銘柄コードを検索(韓国株)
📊 10種類のモメンタム戦略 + 7種類のブレイクアウト戦略 — ゴールデンクロスからVCPまで
🎯 2つのスクリーニング哲学 — 🐎 走っている馬に乗る vs 🌱 これから走る馬を探す
🔎 多段プリフィルター — 出来高急増・Trend Template・RS・52週バンドなど
Related MCP server: KIS MCP Server
🛠️ Tools
Tool | 説明 | 入力例 |
| 韓国株のテクニカル分析 |
|
| 米国株のテクニカル分析 |
|
| 銘柄名 → 銘柄コード検索 |
|
| 🐎 韓国 走っている馬に乗る (Stage 2 トレンド) |
|
| 🐎 米国 走っている馬に乗る |
|
| 🌱 韓国 これから走る馬を探す (VCP・仕込み・Stage 1末期) |
|
| 🌱 米国 これから走る馬を探す |
|
| 特定銘柄の戦略診断 |
|
🎯 Screening: 2つの哲学
🐎 Momentum — 走っている馬に乗る
すでに上昇トレンドに入った銘柄の トレンド継続 (Stage 2 continuation) を捉えます。 オニールのCANSLIM、ミネルヴィニのTrend Template理論に基づく。
パイプライン
시드 (네이버 거래량/상승률/급등 | Yahoo most_actives/day_gainers/small_cap_gainers)
↓
① min_trade_value — 유동성
② 당일 과열 제외 +10% 이상 — 추격매수 방지
③ 20일 내 거래량 급증 ≥ 3x — 자금 유입 시그널
④ Minervini Trend Template — Stage 2 6조건 (ON)
⑤ 52주 고점 근접 — OFF (Trend Template과 중복)
⑥ RS vs 지수 — OFF (opt-in, 강한 종목만 보고 싶을 때)
↓
10가지 Momentum 전략 적용適用戦略 (10)
既存4: ゴールデンクロス+出来高、押し目買い、モメンタム突破、出来高爆発
新規6: RSIダイバージェンス、MACDダイバージェンス、ストキャスティクス、BBスクイーズ、一目均衡表突破、3線順配列
🌱 Breakout — これから走る馬を探す
まだ大きく動いていない 仕込み段階 / 突破直前 の銘柄を捉えます。 マーク・ミネルヴィニのVCPパターン、ワイコフの仕込み理論に基づく。
パイプライン
시드 (Momentum과 동일 — 매집도 거래량에 반영됨)
↓
① min_trade_value
② 당일 과열 제외 +10% 이상
③ 누적 상승 한도: 최근 30일 +30% 이상 제외 ← Breakout 전용
④ 52주 밴드: 고점 × 0.85 이하 AND 저점 × 1.20 이상 ← 전용 (중간권만)
⑤ 20일 내 거래량 급증 ≥ 2x (momentum의 3x보다 완화)
↓
Breakout 7전략 적용 (Trend Template / 52w 근접 / RS 모두 off)適用戦略 (7)
再利用4: 押し目買い、出来高爆発、MACDダイバージェンス、BBスクイーズ
新規3: VCPボラティリティ収縮、静かな仕込み、Stage 1末期転換
🧪 2つのモード比較
🐎 Momentum | 🌱 Breakout | |
哲学 | トレンド継続 | 仕込み → 突破初期 |
累積上昇率 | 制限なし | 30日 +30%以上を除外 |
52週位置 | 高値付近推奨 | 高値85%以下 + 安値120%以上バンド |
Trend Template | ON (MA順配列要求) | OFF |
出来高急増 | 3.0x | 2.0x (仕込みは爆発的ではない) |
戦略数 | 10個 | 7個 (新規3含む) |
適したタイミング | 市場強気期、トレンド追従 | 調整後再エントリー、底値反転 |
実践結果比較例
同一市場(KOSPI)基準:
Momentum: パーステック(6戦略充足) — すでに走っている銘柄
Breakout: 大元電線 30日 -20.32%、52週高値72%地点で押し目+VCP — 仕込みの典型
📊 新規Breakout戦略説明
VCP (Volatility Contraction Pattern)
直近15日を5日ずつ3区間に分け、各区間の高安範囲(%)が 順次縮小 しているかを判定。 コイリングスプリング形状 → 突破間近。(マーク・ミネルヴィニ)
静かな仕込み (Silent Accumulation)
直近20日の出来高平均が前20日比で 増加 し、急増日もあるが、 同じ20日の価格変動幅は ±8%以内 → 市場に露見していない大口の仕込み。
Stage 1末期転換
底値ボックス圏(Stage 1)から緩やかな上昇(Stage 2初動)へ移行する区間。
MA60の傾きが1ヶ月前比で上昇
MA20 > MA60 (短期上方転換)
終値 > MA60 (支持確保)
BB幅 ≤ 20日平均 (まだボラティリティ未拡大)
🔎 プリフィルターパラメータ・チートシート
Momentumスクリーナー共通
パラメータ | デフォルト | 用途 |
| 10.0 | 本日+10%以上を除外。 |
| 3.0 | 出来高急増倍率 |
| True | ミネルヴィニ Trend Template |
| False | RSフィルター (強い銘柄のみ見たい時にon) |
| 0.0 | ベンチマーク超過収益(pp)閾値 |
Breakoutスクリーナー共通
パラメータ | デフォルト | 用途 |
| 30.0 | 直近N日累積上昇率上限(%) |
| 30 | 累積計算区間 |
| 0.85 | 52週高値 × この値以下のみ通過 |
| 1.20 | 52週安値 × この値以上のみ通過 |
| 2.0 | 出来高急増 (仕込みは緩和された倍率) |
📦 Installation
Prerequisites
Python 3.13+
uv (推奨)
Setup
git clone https://github.com/Juuuuuuni/stock-mcp-server.git
cd stock-mcp-server
uv sync🚀 Usage
Claude Desktop連携
~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
または %APPDATA%\Claude\claude_desktop_config.json (Windows)に以下を追加:
{
"mcpServers": {
"stock-analyzer": {
"command": "uv",
"args": [
"--directory",
"/절대/경로/stock-mcp-server",
"run",
"python",
"server.py"
]
}
}
}直接実行
uv run python server.py💬 会話例
個別銘柄分析
👤 삼성전자 최근 분석해줘
🤖 [get_stock_analysis("005930")] → 현재가 / RSI / MACD / 추세 해석
👤 NVDA 한 달 차트 분석
🤖 [get_us_stock_analysis("NVDA", days=30)]
👤 알체라 종목코드가 뭐야?
🤖 [search_stock("알체라")] → 347860スクリーニング (走っている馬)
👤 지금 코스피에서 뜨는 종목 찾아줘
🤖 [screen_kr_momentum(market="KOSPI")]
→ Stage 2 추세 + 거래량 급증 종목. 퍼스텍(6전략), 대우건설(3전략) …
👤 미국 주식에서 강세 종목만 (RS 10pp 이상)
🤖 [screen_us_momentum(enable_rs_filter=True, min_rs_outperformance=10.0)]スクリーニング (これから走る馬)
👤 코스닥에서 매집 단계 종목 스크리닝
🤖 [screen_kr_breakout(market="KOSDAQ")]
→ 누적 상승 30% 미만 + 52주 중간권 + VCP/매집 패턴
👤 아직 안 오른 바닥 종목만 (최근 30일 +10% 이내)
🤖 [screen_kr_breakout(max_cumulative_return_pct=10.0)]個別銘柄戦略診断
👤 알체라 지금 어떤 단계야?
🤖 [diagnose_stock(ticker="347860", market="KR")]
→ 10전략 중 어느 조건 통과했는지 상세 진단📋 出力例
Momentumスクリーニング結果 (要約)
{
"스크리닝일": "20260413",
"대상시장": "KOSPI",
"시드후보수": 80,
"필터링_단계별_통과": {
"당일과열제외": 64,
"거래량급증": 31,
"Trend_Template": 8,
"52주고점근접": 0,
"RS": 0
},
"필터링결과수": 26,
"결과": [
{
"종목코드": "010820",
"종목명": "퍼스텍",
"전략": "모멘텀 돌파",
"점수": "5/5",
"현재가": 2340,
"등락률": "+4.23%",
"RSI": 68.4,
"거래량비": "2.1x",
"20일내_최대거래량배율": "8.7x",
"복수전략": true
}
]
}Breakoutスクリーニング結果 (要約)
{
"스크리닝일": "20260413",
"모드": "Breakout (곧 달릴 말)",
"대상시장": "KOSPI",
"시드후보수": 80,
"필터링_단계별_통과": {
"당일과열제외": 64,
"누적상승한도": 55,
"52주밴드": 22,
"거래량급증": 12
},
"필터링결과수": 28,
"결과": [
{
"종목코드": "006340",
"종목명": "대원전선",
"전략": "눌림목 매수",
"점수": "5/5",
"현재가": 1245,
"30일누적": "-20.32%",
"52주고점대비": "72.2%",
"52주저점대비": "128.4%",
"복수전략": true
}
]
}🧩 Tech Stack
FastMCP — MCPサーバーフレームワーク
pykrx — 韓国取引所データ
yfinance — Yahoo Financeデータ
ta — テクニカル分析指標
BeautifulSoup + lxml — ネイバー金融 / Yahooスクリーナー HTMLパース
pandas — データ処理
📚 References
William J. O'Neil — How to Make Money in Stocks (CANSLIM)
Mark Minervini — Trade Like a Stock Market Wizard (Trend Template, VCP)
Richard Wyckoff — 価格-出来高 仕込み/分散理論
Stan Weinstein — Secrets for Profiting in Bull and Bear Markets (Stage Analysis)
📄 License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceProvides Korean stock market data (KOSPI, KOSDAQ, KONEX) including prices, fundamentals, investor trading, short selling, and indices via MCP protocol, enabling natural language queries from AI agents like ChatGPT and Claude.3MIT- FlicenseAqualityCmaintenanceEnables Claude to trade Korean and overseas stocks, check balances, and search stock information through the Korea Investment & Securities Open API.12
- AlicenseNot gradedqualityAmaintenanceProvides real-time stock market data for Claude Desktop and MCP-compatible clients, enabling natural language queries for quotes, historical prices, company profiles, financial statements, analyst ratings, comparisons, news, options, holdings, dividends, estimates, symbol search, and market status.30116MIT
- AlicenseNot gradedqualityFmaintenanceProvides comprehensive stock market data and technical analysis tools via the MCP protocol, enabling real-time quotes, historical data, and professional indicators like RSI and MACD for Claude Desktop and other clients.5Apache 2.0
Related MCP Connectors
Global stock research, ML forecasts, valuation signals, screeners & portfolio tracking in Claude
Live market data, signals, positions, and macro analysis for crypto, KR stocks, and US stocks.
Search company disclosures and financial statements from the Korean market. Retrieve stock profile…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Juuuuuuni/stock-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server