Opencorpinsight Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Opencorpinsight Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
OpenCorpInsight는 금융감독원 전자공시시스템(DART) API를 활용하여 기업의 재무정보를 분석하는 MCP(Model Context Protocol) 서버입니다.
# 저장소 클론
git clone https://github.com/your-username/OpenCorpInsight.git
cd OpenCorpInsight
# 자동 설치 스크립트 실행
chmod +x scripts/install.sh
./scripts/install.sh# 1. Python 가상환경 생성
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# 2. 의존성 설치
pip install -r requirements.txt
# 3. 환경변수 설정
cp env.example .env
# .env 파일에 DART_API_KEY 설정
# 4. 캐시 디렉토리 생성
mkdir -p cache logsmacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"opencorpinsight": {
"command": "python3",
"args": ["-m", "src.dart_mcp_server"],
"cwd": "/path/to/OpenCorpInsight",
"env": {
"PYTHONPATH": "/path/to/OpenCorpInsight/src"
}
}
}
}# Docker 이미지 빌드
docker build -t opencorpinsight .
# 컨테이너 실행
docker run -d --name opencorpinsight \
-e DART_API_KEY=your_api_key \
-v $(pwd)/cache:/app/cache \
opencorpinsight# 직접 실행
python3 -m src.dart_mcp_server
# 또는 스크립트 사용
./scripts/start_server.shmcp_config.json을 Claude Desktop 설정에 추가:
{
"mcpServers": {
"dart-mcp-server": {
"command": "python",
"args": ["/path/to/OpenCorpInsight/src/dart_mcp_server.py"],
"env": {
"PYTHONPATH": "/path/to/OpenCorpInsight/.venv/lib/python3.13/site-packages"
}
}
}
}#### 1. API 키 설정
{
"tool": "set_dart_api_key",
"arguments": {
"api_key": "your_dart_api_key_here"
}
}#### 2. 기업 정보 조회
{
"tool": "get_company_info",
"arguments": {
"corp_name": "삼성전자"
}
}#### 3. 재무제표 조회
{
"tool": "get_financial_statements",
"arguments": {
"corp_name": "삼성전자",
"year": "2023",
"reprt_code": "11014",
"fs_div": "CFS",
"statement_type": "현금흐름표"
}
}#### 4. 재무비율 계산
{
"tool": "get_financial_ratios",
"arguments": {
"corp_name": "삼성전자",
"year": "2023"
}
}#### 5. 기업간 비교 분석
{
"tool": "compare_financials",
"arguments": {
"corp_names": ["삼성전자", "SK하이닉스", "LG전자"],
"year": "2023",
"metrics": ["ROE", "ROA", "부채비율", "영업이익률"]
}
}#### 6. 재무 건전성 종합 분석
{
"tool": "analyze_company_health",
"arguments": {
"corp_name": "삼성전자",
"analysis_period": 3,
"weight_config": {
"profitability": 0.3,
"stability": 0.3,
"growth": 0.2,
"activity": 0.2
}
}
}#### 7. 기업 뉴스 수집 및 분석 (Perplexity 연동)
{
"tool": "get_company_news",
"arguments": {
"corp_name": "삼성전자",
"search_period": "week",
"news_categories": ["earnings", "business", "technology"],
"include_sentiment": true
}
}#### 8. 뉴스 감성 분석
{
"tool": "analyze_news_sentiment",
"arguments": {
"corp_name": "삼성전자",
"search_period": "week",
"analysis_depth": "detailed"
}
}#### 9. 재무 이벤트 탐지
{
"tool": "detect_financial_events",
"arguments": {
"corp_name": "삼성전자",
"monitoring_period": 30,
"event_types": ["earnings", "dividend", "capital_increase", "major_contract"]
}
}#### 10. 투자 신호 생성
{
"tool": "generate_investment_signal",
"arguments": {
"corp_name": "삼성전자",
"analysis_period": 3,
"weight_config": {
"financial_health": 0.4,
"news_sentiment": 0.3,
"event_impact": 0.2,
"market_trend": 0.1
},
"risk_tolerance": "moderate"
}
}#### 11. 종합 분석 리포트 생성
{
"tool": "generate_summary_report",
"arguments": {
"corp_name": "삼성전자",
"report_type": "comprehensive",
"include_charts": false,
"analysis_depth": "detailed"
}
}#### 12. PDF 내보내기
{
"tool": "export_to_pdf",
"arguments": {
"corp_name": "삼성전자",
"report_content": "# 삼성전자 분석 리포트\n\n...",
"include_metadata": true,
"page_format": "A4"
}
}#### 13. 포트폴리오 최적화
{
"tool": "optimize_portfolio",
"arguments": {
"companies": ["삼성전자", "LG전자", "SK하이닉스"],
"investment_amount": 100000000,
"risk_tolerance": "moderate",
"optimization_method": "sharpe"
}
}#### 14. 시계열 분석
{
"tool": "analyze_time_series",
"arguments": {
"corp_name": "삼성전자",
"analysis_period": 5,
"metrics": ["매출액", "영업이익", "순이익"],
"forecast_periods": 8
}
}#### 15. 업계 벤치마크 비교
{
"tool": "compare_with_industry",
"arguments": {
"corp_name": "삼성전자",
"industry": "반도체",
"comparison_metrics": ["ROE", "ROA", "부채비율"],
"analysis_type": "detailed"
}
}#### 16. 경쟁 포지션 분석
{
"tool": "analyze_competitive_position",
"arguments": {
"corp_name": "삼성전자",
"competitors": ["SK하이닉스", "LG전자"],
"analysis_metrics": ["ROE", "ROA", "매출액증가율"],
"include_swot": true
}
}#### 17. 업계 분석 리포트
{
"tool": "generate_industry_report",
"arguments": {
"industry": "반도체",
"report_type": "comprehensive",
"include_rankings": true
}
}# 테스트 스크립트 실행
./scripts/run_tests.sh
# 또는 수동으로 pytest 실행
python -m pytest tests/ -v# 커버리지 포함 테스트
pip install pytest-cov
python -m pytest tests/ --cov=src --cov-report=html# 이미지 빌드
docker build -t opencorpinsight-mcp .
# 컨테이너 실행
docker run -e DART_API_KEY=your_api_key opencorpinsight-mcp# 환경변수 설정 후
docker-compose up -d
# Redis 캐시 포함 배포
docker-compose --profile redis up -d┌─────────────────┐
│ AI Agent │ ← Claude, GPT 등
├─────────────────┤
│ MCP Client │ ← MCP 프로토콜
├─────────────────┤
│ MCP Tools │ ← 5개 카테고리 도구
├─────────────────┤
│ Cache Layer │ ← SQLite 캐싱
├─────────────────┤
│ DART API │ ← 금융감독원 API
└─────────────────┘OpenCorpInsight는 SQLite 기반 지능형 캐싱 시스템으로 최적화되어 있습니다:
#### Phase 1 캐시 정책
#### Phase 2 캐시 정책
#### Phase 3 캐시 정책
#### Phase 4 캐시 정책
src/dart_mcp_server.py에 도구 정의 추가handle_call_tool()에 핸들러 추가tests/ 디렉터리에 테스트 추가이 프로젝트는 MIT 라이선스 하에 배포됩니다. 자세한 내용은 LICENSE 파일을 참조하세요.
OpenCorpInsight로 기업 분석을 더 쉽고 정확하게! 🚀
#### DART API 키 (필수)
export DART_API_KEY="your_40_character_api_key_here"또는 .env 파일 생성:
DART_API_KEY=your_40_character_api_key_here~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.