Mcp Db Schema Tools — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Db Schema Tools (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.
Claude Code용 데이터베이스 스키마 관리 MCP 서버
비즈니스 요구사항부터 완성된 데이터베이스까지, 자연어로 간단하게 관리하세요.
비즈니스 기획서 → JSON 스키마 → SQL DDL → SQLite 데이터베이스# uv가 없다면 먼저 설치
curl -LsSf https://astral.sh/uv/install.sh | sh
# 프로젝트 설치
cd mcp-db-schema-tools
uv sync
# 설치 확인
uv run python -c "import mcp_db_schema_tools; print('✅ MCP server ready!')".claude/settings.json에 다음을 추가:
{
"mcpServers": {
"db-schema-tools": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/mcp-db-schema-tools",
"python",
"-m",
"mcp_db_schema_tools"
]
}
}
}Claude Code에서 자연어로 요청하세요:
"내 기획서로 데이터베이스 스키마 만들어줘"
"이 스키마로 SQLite 파일 생성해줘"
"기존 DB와 백엔드 모델이 동기화되었는지 확인해줘".md, .txt 등)// 도구명: generate_schema_json_from_text
"이 기획서를 바탕으로 데이터베이스 스키마를 만들어줘"// 도구명: schema_json_to_sql
"JSON 스키마를 SQLite SQL로 변환해줘"// 도구명: create_database_from_schema
"이 스키마로 SQLite 데이터베이스 만들어줘"// 도구명: extract_schema_from_db
"기존 SQLite 파일에서 스키마를 JSON으로 추출해줘"// 도구명: validate_schema
"이 스키마에 문제없는지 검증해줘"// 도구명: merge_schemas
"core와 admin 스키마를 합쳐줘"// 도구명: compare_with_models
"현재 DB와 백엔드 모델이 동기화되어 있는지 확인해줘"graph LR
A[기획서.md] --> B[AI 스키마 생성]
B --> C[JSON 스키마]
C --> D[스키마 검증]
D --> E[SQLite DB 생성]
E --> F[백엔드 개발 시작]Claude Code 명령어 순서:
"프로젝트 기획서로 데이터베이스 스키마 만들어줘""생성된 스키마 검증해줘""검증된 스키마로 SQLite 데이터베이스 생성해줘"graph LR
A[legacy.db] --> B[스키마 추출]
B --> C[JSON 스키마]
C --> D[문서 생성]
D --> E[README.md]Claude Code 명령어 순서:
"legacy.db에서 스키마를 JSON으로 추출해줘""추출된 스키마로 README 문서 만들어줘"graph LR
A[core.json] --> C[merge_schemas]
B[admin.json] --> C
C --> D[unified.json]
D --> E[최종 DB]Claude Code 명령어 순서:
"core.json과 admin.json 스키마를 병합해줘""병합된 스키마 검증해줘""최종 스키마로 데이터베이스 생성해줘"사용자: "blog_platform.md 파일의 비즈니스 요구사항으로 데이터베이스 스키마를 만들어줘"
Claude: generate_schema_json_from_text 도구로 스키마를 생성하겠습니다.
✅ Schema generated and saved to: blog_schema.json
📊 Generated Schema Summary:
- Database: blog_platform
- Tables: 6
- Relationships: 8
📋 Tables Created:
- users: 사용자 정보 (이메일 인증)
- categories: 게시글 카테고리
- posts: 블로그 게시글
- comments: 댓글 시스템
- tags: 태그 관리
- post_tags: 게시글-태그 관계사용자: "생성된 스키마로 SQLite 데이터베이스 만들어줘"
Claude: create_database_from_schema 도구로 데이터베이스를 생성하겠습니다.
✅ SQLITE Database created successfully!
📁 Database: blog_platform.db
📊 Tables created: 6
🌱 Seed records inserted: 3
준비 완료! 이제 FastAPI 백엔드 개발을 시작할 수 있습니다.사용자: "old_system.db 파일을 분석해서 현대적인 JSON 스키마로 변환해줘"
Claude: extract_schema_from_db 도구로 스키마를 추출하겠습니다.
✅ SQLITE Schema extracted and saved to: legacy_schema.json
📊 Schema Summary:
- Database: old_system
- Tables: 15
- Relationships: 8
⚠️ 발견된 문제점:
- Missing foreign key constraints (3개)
- Inconsistent naming convention
- Missing indexes on frequently queried columns
💡 개선 제안:
- users.email에 UNIQUE 인덱스 추가
- created_at 컬럼들에 기본값 설정
- 외래키 제약조건 추가사용자: "현재 데이터베이스가 SQLAlchemy 모델과 동기화되어 있는지 확인해줘"
Claude: compare_with_models 도구로 확인하겠습니다.
🔍 Database vs Models Comparison
❌ Missing Tables in Database (2):
- user_profiles
- activity_logs
⚠️ Extra Tables in Database (1):
- temp_migration_backup
📝 Missing Columns:
- users: last_login_ip, preferences
- orders: tracking_number
💡 Suggestions:
- Create migration script for missing tables
- Remove temporary backup table
- Consider adding missing columns to models{
"database": {
"name": "my_project",
"type": "sqlite",
"version": "1.0.0",
"description": "프로젝트 설명"
},
"tables": {
"users": {
"description": "사용자 정보",
"columns": {
"id": {
"type": "INTEGER",
"primary_key": true,
"auto_increment": true
}
}
}
}
}# 여러 스키마 파일 일괄 변환
for schema in schemas/*.json; do
echo "Converting $schema..."
# Claude Code에서 자동화 가능
done{
"seed_data": {
"users": [
{
"id": 1,
"email": "[email protected]",
"name": "테스트 사용자"
}
]
}
}# 개발 의존성 포함 설치
uv sync --dev
# 코드 품질 검사
uv run black .
uv run ruff check .
# 테스트 실행
uv run pytest -v
# MCP 서버 디버그 모드
uv run python -m mcp_db_schema_tools --debugdef test_schema_generation():
"""비즈니스 요구사항에서 스키마 생성 테스트"""
requirements = "사용자 관리 시스템..."
schema = generate_schema_from_text(requirements)
assert "users" in schema["tables"]git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-feature문제 발견 시 다음 정보와 함께 GitHub Issues에 보고해주세요:
MIT License - 자세한 내용은 LICENSE 파일을 참조하세요.
이 프로젝트는 다음 기술들로 만들어졌습니다:
Made with ⚡ uv and ❤️ for Claude Code integration
💡 팁: 이 README도 MCP DB Schema Tools로 관리되는 프로젝트의 데이터베이스를 바탕으로 작성되었습니다!
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.