Skip to main content
Glama
Juuuuuuni

Stock MCP Server

by Juuuuuuni

๐Ÿ“ˆ 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

get_stock_analysis

Korean stock technical analysis

ticker="005930" (Samsung Electronics)

get_us_stock_analysis

US stock technical analysis

symbol="NVDA"

search_stock

Search stock name โ†’ stock code

keyword="Alchera"

screen_kr_momentum

๐ŸŽ Korean Catching the Running Horse (Stage 2 trend)

market="ALL"

screen_us_momentum

๐ŸŽ US Catching the Running Horse

symbols=None (Yahoo auto-seed)

screen_kr_breakout

๐ŸŒฑ Korean Finding the Horse About to Run (VCP/Accumulation/Late Stage 1)

market="ALL"

screen_us_breakout

๐ŸŒฑ US Finding the Horse About to Run

symbols=None

diagnose_stock

Strategy diagnosis for a specific stock

ticker="005930", market="KR"

๐ŸŽฏ 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

exclude_if_up_pct

10.0

Exclude if up +10% today. None if not applied

spike_threshold

3.0

Volume spike multiplier

enable_trend_template

True

Minervini Trend Template

enable_rs_filter

False

RS filter (on to see only strong stocks)

min_rs_outperformance

0.0

Benchmark outperformance (pp) threshold

Breakout Screener Common

Parameter

Default

Purpose

max_cumulative_return_pct

30.0

Upper limit of cumulative return (%) for last N days

cumulative_return_days

30

Cumulative calculation period

high_ceiling

0.85

Pass only if below 52-week high ร— this value

low_floor

1.20

Pass only if above 52-week low ร— this value

spike_threshold

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("์•Œ์ฒด๋ผ")] โ†’ 347860

Screening (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

Install Server
F
license - not found
A
quality
D
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides 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.
    3
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    Enables Claude to trade Korean and overseas stocks, check balances, and search stock information through the Korea Investment & Securities Open API.
    12
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides 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.
    301
    16
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    Provides 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.
    5
    Apache 2.0

View all related MCP servers

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โ€ฆ

View all MCP Connectors

Latest Blog Posts

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