StockLens

StockLens

Provides AI with real-time stock data from Naver Securities and Yahoo Finance via 47 tools, enabling accurate analysis without API keys for Korean and US markets.

Category
Visit Server

README

<div align="center">

<img src="assets/logo.svg" width="120" height="120" alt="StockLens logo">

StockLens

AI가 진짜 데이터로 분석합니다

PyPI Python 3.11+ License: MIT

🇰🇷 한국어 | 🇺🇸 English

</div>


왜 필요한가

AI에게 차트 이미지를 보여주면 숫자를 추측해서 틀린 분석을 합니다 (할루시네이션).

StockLens는 Claude에 네이버 증권의 실제 시세 데이터를 직접 연결해서, AI가 추측이 아닌 진짜 숫자를 읽고 분석하도록 만듭니다.

❌ "삼성전자 8만원대인 것 같아요" (추측, 틀림)
✅ "삼성전자 206,000원, 20일 이평선 대비 +5.3%" (실제 데이터)

주요 기능

  • 📊 47개 도구 — 현재가, 차트, 수급, 재무, 실적, 배당, 스크리닝, Excel 출력
  • 🔑 API 키 불필요 — 네이버 증권 + Yahoo Finance 공개 데이터
  • 🚀 빠른 응답 — TTL 캐시 + Semaphore 최적화
  • 📁 Excel 스냅샷 — 한 번 스캔 → 반복 쿼리 즉시
  • 🤖 Gemini/GPT 연동 — Excel 내보내기로 다른 AI에서도 활용

빠른 시작 (3줄, Python 사전 설치 불필요)

uv가 Python 런타임까지 자동으로 설치합니다. 터미널에 한 줄 복붙.

Windows (PowerShell)

powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/Johnhyeon/stocklens-mcp/main/install.ps1 | iex"

macOS / Linux (터미널)

curl -LsSf https://raw.githubusercontent.com/Johnhyeon/stocklens-mcp/main/install.sh | sh

스크립트가 ① uv 설치 → ② uv tool install stocklens-mcp → ③ Claude Desktop config 자동 등록 → ④ 검증까지 처리합니다. 끝나면 Claude Desktop을 완전히 종료(트레이 → Quit) 후 재시작하세요.

💡 응답 속도

  • 첫 실행: PyPI에서 패키지 + 의존성 다운로드 (10~30초)
  • 이후 호출: 1~2초, 같은 종목 재조회는 즉시 (내부 캐시)

업데이트

uv tool upgrade stocklens-mcp

또는 위 install 명령을 다시 실행하면 됩니다.


🔄 기존 pip 사용자

기존 pip 설치를 정리하고 uv로 전환하면 환경이 격리되어 충돌이 사라집니다.

py -m pip uninstall stocklens-mcp        # 기존 pip 제거 (Windows)
python3 -m pip uninstall stocklens-mcp   # 기존 pip 제거 (mac/Linux)

그 후 위 install 명령 한 줄 실행. setup_claude가 Claude config의 기존 entry를 새 절대경로로 자동 갱신합니다.

📌 수동 설치 / 트러블슈팅 상세: 설치 가이드

동작 확인

Claude에서:

삼성전자 현재가 알려줘

종목명, 현재가, 전일대비, 거래량이 나오면 설치 완료입니다.

<!-- TODO: 스크린샷 — Claude 응답 예시 --> <img width="850" height="415" alt="image" src="https://github.com/user-attachments/assets/ac50dd95-85b8-4471-a79c-6aa196f62af4" />

<img width="797" height="948" alt="image" src="https://github.com/user-attachments/assets/1daa0535-4ab5-480c-b70f-dcfdb5c5c864" />

설치 문제 진단

stocklens-doctor

uv·패키지·명령·config 4단계 자동 점검. 문제 원인과 고치는 명령어까지 표시. 친구분이 막혔을 때 이 한 줄만 보내주세요.

사용 예시

"SK하이닉스 120일 일봉 보고 20일 이동평균선 기준으로 추세 판단해줘"
"카카오 외국인/기관 최근 20일 수급 분석해줘"
"시가총액 상위 100개 중 PER 15 이하인 종목 찾아줘"
"오늘 강세 테마 3개 알려주고 각 테마 주도주 분석해줘"

✅ 릴리즈 전 전 도구 실측 QA + 부하 테스트 통과한 빌드만 배포합니다. (상세)

더 알아보기

지원 환경

환경 지원
Claude Desktop (앱) ✅ 메인
Claude Code (CLI)
Claude.ai (웹) ❌ 로컬 MCP 미지원
ChatGPT / Gemini Excel 내보내기로 우회 가능

지원 시장

  • 한국 (KOSPI/KOSDAQ) — 네이버 증권, 6자리 종목코드 (005930 = 삼성전자, 000660 = SK하이닉스)
  • 미국 (NYSE/NASDAQ) — Yahoo Finance, 알파벳 티커 (AAPL, TSLA, BRK.B)

티커 형식으로 자동 판별. 자연어로 섞어 써도 됩니다 (예: "005930이랑 AAPL 비교"). 전체 도구 목록은 TOOLS.md.

기여

이슈, PR 모두 환영합니다. 버그 제보나 기능 요청은 Issues에 남겨주세요.

라이선스

MIT License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured