Integrates with Codecov for test coverage reporting and tracking, as shown by the project badge in the README
Supports containerized deployment with Docker, including built-in Docker Compose configuration for orchestrating the server and its dependencies
Uses .ENV files for configuration management, allowing customization of database connections and API settings
Integrates with Git for version control and development workflows including feature branching
Leverages GitHub for CI/CD pipelines, issue tracking, wiki documentation, and community discussions
Uses Make for development automation including testing, formatting, and deployment commands
Integrates with pre-commit for automated quality checks before code submission
Exposes Prometheus metrics via a /metrics endpoint for monitoring server performance
Built on Python 3.11+, leveraging its ecosystem for data analysis and market statistics processing
Uses Redis for caching and performance optimization of market data retrieval
Incorporates Shields.io badges for displaying project status information
Stores time-series market data in TimescaleDB for efficient querying and analysis of historical market statistics
π MCP Market Statistics Server
νκ΅ μ£Όμμμ₯μ μ’ ν©μ μΈ ν΅κ³ λ°μ΄ν°μ μμ₯ λΆμ μ 보λ₯Ό μ 곡νλ MCP(Model Context Protocol) μλ²μ λλ€.
β¨ μ£Όμ κΈ°λ₯
π’ μμ₯ λ°μ΄ν°
μ€μκ° μ§μ νν©: KOSPI, KOSDAQ, KOSPI200 λ±
μμ₯ μ 체 ν΅κ³: μκ°μ΄μ‘, κ±°λλκΈ, μμΉ/νλ½ μ’ λͺ© μ
52μ£Ό μ κ³ κ°/μ μ κ° ν΅κ³ λ° λΆμ
π μΉν°λ³ λΆμ
μ μ’ λ‘ν μ΄μ λΆμ λ° μΆμ
μΉν°λ³ λ°Έλ₯μμ΄μ λΉκ΅
리λ/λκ±°λ μ’ λͺ© μλ³
π° ν¬μμ λν₯
κ°μΈ/κΈ°κ΄/μΈκ΅μΈ λ§€λ§€ λν₯
νλ‘κ·Έλ¨ λ§€λ§€ νν© λΆμ
μ€λ§νΈλ¨Έλ μΆμ’ μ§ν
π μμ₯ μ¬λ¦¬ μ§ν
Fear & Greed Index (νκ΅ν)
Put/Call Ratio λΆμ
λ³λμ± μ§μ (VKOSPI)
λ΄μ€ κ°μ± λΆμ
π κ³ κΈ λΆμ
μμ₯ μ΄μ μ§ν νμ§ - AI κΈ°λ° μ΄μ ν¨ν΄ κ°μ§
μμ₯ κ΅λ©΄ νλ¨ - λΆμ₯/κ³°μ₯/ν‘보μ₯ ꡬλΆ
μ λμ± λΆμ - μμ₯ κΉμ΄ λ° μ λμ± μΈ‘μ
μκ΄κ΄κ³ λ§€νΈλ¦μ€ - μμ° κ° μκ΄κ΄κ³ λΆμ
ν¨ν΄ μΈμ - μ°¨νΈ ν¨ν΄ λ° κΈ°μ μ μ§ν λΆμ
λ€μ€ μκ°λ λΆμ - μ¬λ¬ νμνλ μ ν΅ν© λΆμ
κ°μ λΆμ - λ΄μ€ λ° μμ λ―Έλμ΄ κ°μ λΆμ
κ°κ²© μμΈ‘ - λ¨Έμ λ¬λ κΈ°λ° κ°κ²© μμΈ‘
리μ€ν¬ νκ° - ν¬νΈν΄λ¦¬μ€ 리μ€ν¬ λΆμ
π λΉ λ₯Έ μμ
μ¬μ μꡬμ¬ν
Python 3.11 μ΄μ
TimescaleDB
Redis
Docker (μ νμ¬ν)
μ€μΉ
μ μ₯μ ν΄λ‘
git clone https://github.com/your-org/mcp-market-statistics.git cd mcp-market-statisticsκ°μνκ²½ μμ± λ° νμ±ν
python -m venv venv source venv/bin/activate # Linux/Mac # λλ venv\Scripts\activate # Windowsμμ‘΄μ± μ€μΉ
make install # λλ pip install -r requirements.txtνκ²½ λ³μ μ€μ
cp .env.example .env # .env νμΌμ νΈμ§νμ¬ λ°μ΄ν°λ² μ΄μ€ λ° API μ€μ
Dockerλ₯Ό μ΄μ©ν μ€ν
κ°λ° λͺ¨λ μ€ν
π οΈ κ°λ° κ°μ΄λ
νλ‘μ νΈ κ΅¬μ‘°
ν μ€νΈ μμ±
μ΄ νλ‘μ νΈλ TDD(Test-Driven Development) λ°©λ²λ‘ μ λ°λ¦ λλ€.
μ½λ νμ§
π§ μ€μ
νκ²½ λ³μ
λ³μλͺ | μ€λͺ | κΈ°λ³Έκ° |
| TimescaleDB νΈμ€νΈ | localhost |
| TimescaleDB ν¬νΈ | 5432 |
| λ°μ΄ν°λ² μ΄μ€ μ΄λ¦ | market_stats |
| Redis νΈμ€νΈ | localhost |
| Redis ν¬νΈ | 6379 |
| λ‘κ·Έ λ 벨 | INFO |
| KRX API ν€ | - |
λ°μ΄ν°λ² μ΄μ€ μ€ν€λ§
λ°μ΄ν°λ² μ΄μ€ μ€ν€λ§λ₯Ό μ΄κΈ°ννλ €λ©΄:
π‘ API μ¬μ©λ²
MCP λꡬ λͺ©λ‘
κΈ°λ³Έ μμ₯ λ°μ΄ν°
get_market_overview
- μμ₯ μ 체 νν©get_sector_statistics
- μΉν°λ³ ν΅κ³get_investor_flows
- ν¬μμλ³ λ§€λ§€ λν₯get_market_breadth
- μμ₯ ν μ§ν
κ³ κΈ λΆμ λꡬ
analyze_advanced_patterns
- κ³ κΈ ν¨ν΄ μΈμ λ° λΆμanalyze_multi_timeframe
- λ€μ€ μκ°λ λΆμanalyze_correlations
- μκ΄κ΄κ³ μμ§predict_prices
- AI κΈ°λ° κ°κ²© μμΈ‘analyze_sentiment
- κ°μ λΆμdetect_anomalies
- μμ₯ μ΄μ μ§ν νμ§assess_risks
- 리μ€ν¬ νκ°get_market_sentiment
- μμ₯ μ¬λ¦¬ μ§νget_market_regime
- μμ₯ κ΅λ©΄ νλ¨
μ¬μ© μμ
π λͺ¨λν°λ§
ν¬μ€μ²΄ν¬
λ©νΈλ¦
μλ²λ Prometheus λ©νΈλ¦μ /metrics
μλν¬μΈνΈμμ μ 곡ν©λλ€.
λ‘κ·Έ
ꡬ쑰νλ JSON λ‘κ·Έλ₯Ό μ¬μ©νμ¬ ELK μ€νκ³Ό νΈνλ©λλ€.
π€ κΈ°μ¬νκΈ°
μ΄μλ₯Ό μμ±νμ¬ κΈ°λ₯ μμ²μ΄λ λ²κ·Έλ₯Ό 리ν¬νΈν΄μ£ΌμΈμ
ν¬ν¬νμ¬ μλ‘μ΄ λΈλμΉλ₯Ό μμ±ν΄μ£ΌμΈμ
λ³κ²½μ¬νμ 컀λ°ν΄μ£ΌμΈμ
ν μ€νΈλ₯Ό μ€ννκ³ ν΅κ³Όνλμ§ νμΈν΄μ£ΌμΈμ
ν 리νμ€νΈλ₯Ό μμ±ν΄μ£ΌμΈμ
κ°λ° μν¬νλ‘μ°
π λΌμ΄μ μ€
μ΄ νλ‘μ νΈλ MIT λΌμ΄μ μ€ νμ λ°°ν¬λ©λλ€. μμΈν λ΄μ©μ LICENSE νμΌμ μ°Έμ‘°νμΈμ.
πββοΈ μ§μ
λ¬Έμ: νλ‘μ νΈ μν€
μ΄μ: GitHub Issues
ν λ‘ : GitHub Discussions
ποΈ κ°λ° νν©
Phase 1-4: κΈ°λ³Έ μΈνλΌ λ° λ°μ΄ν° μμ§ (μλ£ β )
MCP μλ² μν€ν μ²
λ°μ΄ν° μμ§ νμ΄νλΌμΈ
κΈ°λ³Έ λΆμ λꡬ
λ°μ΄ν°λ² μ΄μ€ λ° μΊμ±
Phase 5: κ³ κΈ λΆμ μμ€ν (μλ£ β )
AdvancedPatternRecognition: μ°¨νΈ ν¨ν΄, μΊλ€μ€ν±, νλͺ¨λ ν¨ν΄ μΈμ
MultiTimeframeAnalyzer: λ€μ€ μκ°λ ν΅ν© λΆμ
CorrelationEngine: κ³ κΈ μκ΄κ΄κ³ λΆμ (18κ° λΆμ λ°©λ²)
PricePredictor: λ¨Έμ λ¬λ κΈ°λ° κ°κ²© μμΈ‘
SentimentAnalyzer: λ΄μ€ λ° μμ λ―Έλμ΄ κ°μ λΆμ
MarketAnomalyDetector: AI κΈ°λ° μ΄μ ν¨ν΄ νμ§
RiskAssessmentEngine: ν¬νΈν΄λ¦¬μ€ 리μ€ν¬ λΆμ
Phase 6-10: κ³μ° λͺ¨λ λ° μ΅μ ν (μ§ν μμ )
Calculator λͺ¨λ ꡬν
Analyzer λͺ¨λ ꡬν
Model λͺ¨λ ꡬν
μ±λ₯ μ΅μ ν
λ°°ν¬ λ° μ΄μ
π νλ‘μ νΈ ν΅κ³
μ΄ μ½λ λΌμΈ: 15,000+ λΌμΈ
ν μ€νΈ 컀λ²λ¦¬μ§: 95%+
ꡬνλ λΆμ λ°©λ²: 100+ κ°
μ§μ ν¨ν΄: 50+ μ’ λ₯
TDD λ°©λ²λ‘ μ μ©μΌλ‘ λμ μ½λ νμ§ λ³΄μ₯
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides comprehensive statistics and advanced analysis tools for the Korean stock market, offering real-time index data, sector analysis, investor trend tracking, and AI-based market pattern recognition.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that collects and analyzes Korean stock market news in real-time, providing investment insights through AI-based analysis of sentiment, market impact, and rumor detection.Last updated -MIT License
- -securityAlicense-qualityA Model Context Protocol server providing comprehensive Korean stock market analysis, including financial data, valuation metrics, ESG information, and investment insights.Last updated -MIT License
- -securityFlicense-qualityEnables real-time stock market analysis through AKShare API integration. Supports retrieving live stock prices, historical data, technical indicators (MA, MACD, RSI), market sentiment analysis, stock search, and financial news.Last updated -4
- -securityFlicense-qualityEnables LLMs to retrieve, analyze, and visualize stock prices and financial report data for quantitative trading research and investment analysis. Provides real-time and historical stock data, financial statement analysis, key metric calculations, and trading signal visualization.Last updated -13