mcpField
S
stockmatrix-mcp

stockmatrix-mcp

Local
github.com/MongLong0214Finance0Updated 1d ago

About stockmatrix-mcp

stockmatrix-mcp is StockMatrix's MCP server for exploring Korean stock market themes, aimed at investment researchers using MCP clients. Its TLI lifecycle scores underpin theme rankings, stock lookups, comparisons, and predictions.

Key features

  1. 01Get theme rankings and market summaries
  2. 02Search themes and stock relationships
  3. 03Compare multiple themes
  4. 04View lifecycle stages and score history
  5. 05Get predictions based on historical analogs
  6. 06Use workflow prompts and read-only resources

Use cases

  1. 01Get an overview of Korean market themes
  2. 02Find hot themes associated with a stock
  3. 03Compare themes such as semiconductors and batteries
  4. 04Review theme trends and rising predictions

MCP support

It exposes 11 tools, four workflow prompts, and live read-only resources to MCP clients for querying and analyzing Korean stock market themes.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"monglong0214-stockmatrix": {
"command": "npx",
"args": [
"-y",
"stockmatrix-mcp"
],
"env": {
"STOCKMATRIX_API_URL": "<STOCKMATRIX_API_URL>"
}
}
}
}
Run commandnpx -y stockmatrix-mcp
Environment variables to set
STOCKMATRIX_API_URLOverride API base URL (default: https://stockmatrix.co.kr)

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmstockmatrix-mcp0.5.0

Tools

11

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
sortenumNoSort order within each stage: score (default), change7d, newsCount7dscore | change7d | newsCount7d
limitintegerNoMax themes per stage (1-50, default 10)
stageenumNoFilter by lifecycle stage: emerging (초기 — early interest), growth (성장 — expanding), peak (정점 — maximum attention), decline (하락 — fading), reigniting (재점화 — comeback)emerging | growth | peak | decline | reigniting

Details

From the project README

stockmatrix-mcp

Official MCP server for StockMatrix (https://stockmatrix.co.kr).

Ask about Korean stock market themes in natural conversation with AI. Track 200+ KOSPI/KOSDAQ investment themes, get daily movers, look up which themes a stock belongs to, compare themes side-by-side, and see predictions — all through Claude, Cursor, or any MCP-compatible AI agent.

Powered by TLI (Theme Lifecycle Index) — a Bayesian-optimized scoring algorithm combining search interest, news momentum, market volatility, and stock activity into a 0-100 score with lifecycle stage classification.

11 tools + 4 one-click workflow prompts + live resources. Try the market_briefing slash command for an instant Korean market overview.

Quick Start

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "stockmatrix": {
      "command": "npx",
      "args": ["-y", "stockmatrix-mcp"]
    }
  }
}
Cursor / Windsurf

Add to .cursor/mcp.json or .windsurf/mcp.json:

{
  "mcpServers": {
    "stockmatrix": {
      "command": "npx",
      "args": ["-y", "stockmatrix-mcp"]
    }
  }
}
VS Code / Claude Code

Add to .vscode/mcp.json:

{
  "servers": {
    "stockmatrix": {
      "command": "npx",
      "args": ["-y", "stockmatrix-mcp"]
    }
  }
}

Try Asking

After setup, just ask in natural language:

PromptWhat happens
"요즘 뜨는 테마 TOP 5"Top 5 themes ranked by TLI score
"오늘 한국 테마 시장 요약해줘"AI-optimized market overview
"어제 대비 가장 많이 오른 테마는?"Daily score movers and stage transitions
"AI 관련 테마 찾아줘"Search AI-related themes
"반도체 vs 2차전지 비교해줘"Side-by-side theme comparison
"앞으로 오를 테마 알려줘"Rising predictions with analog evidence
"삼성전자가 속한 테마"Stock-to-theme lookup (auto-detects 6-digit codes)
"방산 테마 상세 정보"Score breakdown, stocks, news, comparisons
"반도체 테마 최근 한달 추세"30-day score history
"TLI 점수는 어떻게 계산돼?"Algorithm methodology (tip: use section=scoring to save tokens)
"What are the hottest stock themes in Korea?"Works in English too

Available Tools

get_theme_ranking

Get theme rankings by lifecycle stage with limit and sort options.

ParameterTypeRequiredDescription
stagestringNoemerging / growth / peak / decline / reigniting
limitnumberNoResults per stage (1-50, default: 10)
sortstringNoscore / change7d / newsCount7d (default: score)
get_market_summary

Get an AI-optimized market overview with top themes (includes themeId for chaining).

get_theme_changes

Get daily or weekly score movers, stage transitions, and newly emerging themes.

ParameterTypeRequiredDescription
periodstringNo1d (default) / 7d
compare_themes

Compare 2-5 themes side-by-side with scores, stocks, sparklines, and similarity.

ParameterTypeRequiredDescription
theme_idsstring[]YesArray of 2-5 theme UUIDs
get_predictions

Get themes predicted to rise, peak, or cool based on historical analog matching.

ParameterTypeRequiredDescription
phasestringNorising / hot / cooling (default: all)
search_themes

Search themes by keyword, stock name, or stock code.

ParameterTypeRequiredDescription
querystringYese.g. "AI", "반도체", "삼성전자", "005930"
search_stocks

Search stocks by company name or 6-digit code, with related theme preview. Automatically performs stock-to-theme lookup for 6-digit codes.

ParameterTypeRequiredDescription
querystringYese.g. "삼성전자", "SK하이닉스", "005930"
get_stock_themes

Reverse lookup — every theme a stock belongs to, ranked by theme score, each with lifecycle stage and the stock's relevance. Answers "is my stock in a hot theme?"

ParameterTypeRequiredDescription
symbolstringYes6-digit Korean stock code, e.g. "005930" (Samsung), "000660" (SK Hynix)
get_theme_detail

Get detailed analysis: score breakdown (4 components), stage, prediction, stocks, news, comparisons.

ParameterTypeRequiredDescription
theme_idstring (UUID)YesTheme UUID from ranking or search
get_theme_history

Get 30-day score history for trend analysis.

ParameterTypeRequiredDescription
theme_idstring (UUID)YesTheme UUID
get_methodology

Get TLI algorithm documentation — scoring, stages, stabilization, comparison, prediction, data sources, and more.

ParameterTypeRequiredDescription
sectionstringNoscoring / stages / comparison / prediction / all (default: all)

Tip: Use section=scoring to get just the scoring algorithm and save context tokens.

Workflow Prompts

One-click slash commands (in Claude Desktop, Cursor, and other MCP clients) that run complete multi-tool analyses for you — the fastest way to get real value:

PromptArgumentWhat it does
market_briefing—Today's Korean market theme briefing: mood, top themes, movers, takeaways
theme_deep_divethemeFull lifecycle analysis of one theme: score, 30-day trend, stocks, news, outlook
find_investment_themesinterestDiscover themes matching an interest, ranked by momentum and stage
stock_theme_checkstockCheck whether a stock (name or code) sits inside any hot or rising themes

Resources

Attachable read-only context (no tool call needed):

URIDescription
stockmatrix://methodologyHow TLI scores and lifecycle stages are computed — weights and thresholds
stockmatrix://rankingsLive snapshot of today's theme rankings by score, grouped by stage

Scoring Algorithm

TLI scores (0-100) are a weighted sum of 4 components, optimized via Bayesian Optimization:

ComponentWeightSource
Search Interest30.4%Naver DataLab
News Momentum36.6%Naver News
Volatility10.4%Interest time-series
Stock Activity22.6%Naver Finance

Scores are stabilized through Cautious Decay (3-signal majority vote), Bollinger Band Clamp (limits daily change), and Age-adaptive EMA (newer themes react faster).

Lifecycle Stages

Dormant -> Emerging -> Growth -> Peak -> Decline -> Dormant
                                          |
                                     Reigniting

Stage transitions require 2 consecutive days of the same candidate (hysteresis) and follow Markov transition constraints.

Data Coverage

  • 200+ themes across KOSPI & KOSDAQ
  • Daily updates — scores, news, stock mappings
  • Stock ↔ theme lookup — by company name, 6-digit code, or reverse (stock → all its themes)
  • AI market summary for first-call overview
  • Predictions with historical analog matching
  • Workflow prompts — one-click multi-tool analyses
  • Sources: Naver DataLab, Naver Finance, Naver News

Configuration

VariableDefaultDescription
STOCKMATRIX_API_URLhttps://stockmatrix.co.krOverride API base URL

License

MIT

Links

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.