Stock MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Stock MCP Serveranalyze NVDA's RSI and MACD for the past month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ Stock MCP Server
This is a Model Context Protocol (MCP) server that provides technical analysis and strategy-based screening for Korean and US stocks. You can perform chart analysis and stock screening using natural language in MCP-compatible clients such as Claude Desktop and Claude Code.
โจ Features
๐ฐ๐ท Korean Stock Analysis โ OHLCV + technical indicators for all KOSPI/KOSDAQ stocks based on
pykrx๐บ๐ธ US Stock Analysis โ NYSE/NASDAQ stocks based on
yfinance+ market cap/PER/52-week high/low๐ Stock Search โ Find stock codes by stock name (Korean stocks)
๐ 10 Momentum Strategies + 7 Breakout Strategies โ From Golden Cross to VCP
๐ฏ Two Screening Philosophies โ ๐ Catching the Running Horse vs ๐ฑ Finding the Horse About to Run
๐ Multi-stage Pre-filters โ Volume spikes, Trend Template, RS, 52-week bands, etc.
Related MCP server: KIS MCP Server
๐ ๏ธ Tools
Tool | Description | Input Example |
| Korean stock technical analysis |
|
| US stock technical analysis |
|
| Search stock name โ stock code |
|
| ๐ Korean Catching the Running Horse (Stage 2 trend) |
|
| ๐ US Catching the Running Horse |
|
| ๐ฑ Korean Finding the Horse About to Run (VCP/Accumulation/Late Stage 1) |
|
| ๐ฑ US Finding the Horse About to Run |
|
| Strategy diagnosis for a specific stock |
|
๐ฏ Screening: Two Philosophies
๐ Momentum โ Catching the Running Horse
Captures Stage 2 continuation for stocks that have already entered an uptrend. Based on O'Neil's CANSLIM and Minervini's Trend Template theories.
Pipeline
์๋ (๋ค์ด๋ฒ ๊ฑฐ๋๋/์์น๋ฅ /๊ธ๋ฑ | 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 ์ ๋ต ์ ์ฉApplied Strategies (10)
Existing 4: Golden Cross + Volume, Pullback Buy, Momentum Breakout, Volume Explosion
New 6: RSI Divergence, MACD Divergence, Stochastic, BB Squeeze, Ichimoku Breakout, 3-line Alignment
๐ฑ Breakout โ Finding the Horse About to Run
Captures stocks that haven't moved significantly yet, in the accumulation phase / pre-breakout. Based on Mark Minervini's VCP pattern and Wyckoff accumulation theory.
Pipeline
์๋ (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)Applied Strategies (7)
Reused 4: Pullback Buy, Volume Explosion, MACD Divergence, BB Squeeze
New 3: VCP Volatility Contraction, Silent Accumulation, Late Stage 1 Transition
๐งช Comparison of the Two Modes
๐ Momentum | ๐ฑ Breakout | |
Philosophy | Trend Continuation | Accumulation โ Early Breakout |
Cumulative Return | No limit | Exclude 30-day +30% or more |
52-week Position | Near high recommended | Below 85% of high + Above 120% of low band |
Trend Template | ON (Requires MA alignment) | OFF |
Volume Spike | 3.0x | 2.0x (Accumulation is less explosive) |
Strategy Count | 10 | 7 (including 3 new) |
Suitable Timing | Strong market, trend following | Post-correction re-entry, bottom reversal |
Practical Result Comparison Example
Based on the same market (KOSPI):
Momentum: Perspect (meets 6 strategies) โ A stock already running
Breakout: Daewon Cable 30-day -20.32%, pullback + VCP at 72% of 52-week high โ Typical accumulation
๐ New Breakout Strategy Explanation
VCP (Volatility Contraction Pattern)
Divides the last 15 days into three 5-day segments to determine if the high-low range (%) sequentially contracts. Coiling spring shape โ Breakout imminent. (Mark Minervini)
Silent Accumulation
Average volume of the last 20 days is higher than the previous 20 days with some spike days, but the price fluctuation range for the same 20 days is within ยฑ8% โ Hidden institutional accumulation.
Late Stage 1 Transition
Transition phase from a bottom box range (Stage 1) to a gentle rise (early Stage 2).
MA60 slope higher than 1 month ago
MA20 > MA60 (Short-term upward transition)
Close > MA60 (Support secured)
BB width โค 20-day average (Volatility not yet expanded)
๐ Pre-filter Parameter Cheat Sheet
Momentum Screener Common
Parameter | Default | Purpose |
| 10.0 | Exclude if up +10% today. |
| 3.0 | Volume spike multiplier |
| True | Minervini Trend Template |
| False | RS filter (on to see only strong stocks) |
| 0.0 | Benchmark outperformance (pp) threshold |
Breakout Screener Common
Parameter | Default | Purpose |
| 30.0 | Upper limit of cumulative return (%) for last N days |
| 30 | Cumulative calculation period |
| 0.85 | Pass only if below 52-week high ร this value |
| 1.20 | Pass only if above 52-week low ร this value |
| 2.0 | Volume spike (relaxed multiplier for accumulation) |
๐ฆ Installation
Prerequisites
Python 3.13+
uv (Recommended)
Setup
git clone https://github.com/Juuuuuuni/stock-mcp-server.git
cd stock-mcp-server
uv sync๐ Usage
Claude Desktop Integration
Add the following to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"stock-analyzer": {
"command": "uv",
"args": [
"--directory",
"/์ ๋/๊ฒฝ๋ก/stock-mcp-server",
"run",
"python",
"server.py"
]
}
}
}Direct Execution
uv run python server.py๐ฌ Conversation Examples
Individual Stock Analysis
๐ค ์ผ์ฑ์ ์ ์ต๊ทผ ๋ถ์ํด์ค
๐ค [get_stock_analysis("005930")] โ ํ์ฌ๊ฐ / RSI / MACD / ์ถ์ธ ํด์
๐ค NVDA ํ ๋ฌ ์ฐจํธ ๋ถ์
๐ค [get_us_stock_analysis("NVDA", days=30)]
๐ค ์์ฒด๋ผ ์ข
๋ชฉ์ฝ๋๊ฐ ๋ญ์ผ?
๐ค [search_stock("์์ฒด๋ผ")] โ 347860Screening (Running Horse)
๐ค ์ง๊ธ ์ฝ์คํผ์์ ๋จ๋ ์ข
๋ชฉ ์ฐพ์์ค
๐ค [screen_kr_momentum(market="KOSPI")]
โ Stage 2 ์ถ์ธ + ๊ฑฐ๋๋ ๊ธ์ฆ ์ข
๋ชฉ. ํผ์คํ
(6์ ๋ต), ๋์ฐ๊ฑด์ค(3์ ๋ต) โฆ
๐ค ๋ฏธ๊ตญ ์ฃผ์์์ ๊ฐ์ธ ์ข
๋ชฉ๋ง (RS 10pp ์ด์)
๐ค [screen_us_momentum(enable_rs_filter=True, min_rs_outperformance=10.0)]Screening (Horse About to Run)
๐ค ์ฝ์ค๋ฅ์์ ๋งค์ง ๋จ๊ณ ์ข
๋ชฉ ์คํฌ๋ฆฌ๋
๐ค [screen_kr_breakout(market="KOSDAQ")]
โ ๋์ ์์น 30% ๋ฏธ๋ง + 52์ฃผ ์ค๊ฐ๊ถ + VCP/๋งค์ง ํจํด
๐ค ์์ง ์ ์ค๋ฅธ ๋ฐ๋ฅ ์ข
๋ชฉ๋ง (์ต๊ทผ 30์ผ +10% ์ด๋ด)
๐ค [screen_kr_breakout(max_cumulative_return_pct=10.0)]Individual Stock Strategy Diagnosis
๐ค ์์ฒด๋ผ ์ง๊ธ ์ด๋ค ๋จ๊ณ์ผ?
๐ค [diagnose_stock(ticker="347860", market="KR")]
โ 10์ ๋ต ์ค ์ด๋ ์กฐ๊ฑด ํต๊ณผํ๋์ง ์์ธ ์ง๋จ๐ Output Examples
Momentum Screening Results (Summary)
{
"์คํฌ๋ฆฌ๋์ผ": "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 Screening Results (Summary)
{
"์คํฌ๋ฆฌ๋์ผ": "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 server framework
pykrx โ Korea Exchange data
yfinance โ Yahoo Finance data
ta โ Technical analysis indicators
BeautifulSoup + lxml โ Naver Finance / Yahoo Screener HTML parsing
pandas โ Data processing
๐ 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 โ Price-Volume Accumulation/Distribution Theory
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