
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that provides secure, read-only database analysis and visualization tools for MySQL, PostgreSQL, and SQLite.
Read-only MCP database server for MySQL, PostgreSQL, and SQLite is cataloged as an MCP server attributed to zerogon1203. A Model Context Protocol server that provides secure, read-only database analysis and visualization tools for MySQL, PostgreSQL, and SQLite. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Read-only MCP database server for MySQL, PostgreSQL, and SQLite are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It fully supports MySQL/MariaDB and PostgreSQL, with basic SQLite support in preparation.
It can be added as an MCP Server using stdio transport with the command python main.py.
README.md · c91f970ad2e5 · Fetched 2026-11-13 13:00:46 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
보안 강화된 다중 데이터베이스 지원 MCP 서버 - Cursor IDE 및 Claude와 연동 가능한 Model Context Protocol 서버
MySQL, PostgreSQL을 지원하는 엄격한 보안 정책을 적용한 데이터베이스 분석 및 시각화 도구입니다.
git clone <this-repo-url>
cd db-mcp-server
python -m venv venv
source venv/bin/activate # 또는 venv\Scripts\activate (Windows)
pip install -r requirements.txt
프로덕션 환경에서는 반드시 다음 설정을 적용하세요:
# 읽기 전용 모드 강제
READ_ONLY=true
STRICT_READONLY=true
# 보안 강화된 데이터베이스 계정 사용
DB_USER=readonly_user
DB_PASSWORD=secure_password
.env 파일을 생성하고 데이터베이스 정보를 설정하세요:
cp .env.example .env
DB_TYPE=mysql
DB_HOST=localhost
DB_USER=readonly_user # 읽기 전용 계정 사용
DB_PASSWORD=your_password
DB_NAME=your_database
DB_CHARSET=utf8mb4
DB_PORT=3306
DB_TYPE=postgresql
DB_HOST=localhost
DB_USER=postgres
DB_PASSWORD=your_password
DB_NAME=your_database
DB_PORT=5432
DB_SCHEMA=public
DB_TYPE=sqlite
DB_PATH=./database.sqlite
MCP Server 추가 → Transport: stdio → Command: python main.py
환경변수 개별 설정:
{
"mcpServers": {
"db-mcp-server": {
"transport": "stdio",
"command": "/path/to/venv/bin/python",
"args": ["/path/to/db-mcp-server/main.py"],
"env": {
"DB_TYPE": "postgresql",
"DB_NAME": "your_db_name",
"DB_HOST": "localhost"
}
}
}
}
이 서버는 엄격한 보안 정책을 적용합니다:
자세한 보안 설정은 SECURITY.md를 참조하세요.
중요: 프로덕션 환경에서는 반드시 읽기 전용 계정을 사용하세요:
-- MySQL 예시
CREATE USER 'mcp_readonly'@'%' IDENTIFIED BY 'secure_password';
GRANT SELECT ON your_database.* TO 'mcp_readonly'@'%';
-- PostgreSQL 예시
CREATE USER mcp_readonly WITH PASSWORD 'secure_password';
GRANT CONNECT ON DATABASE your_database TO mcp_readonly;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO mcp_readonly;
get_schema - 전체 데이터베이스 스키마 조회get_table_stats - 테이블별 통계 정보get_sample_data - 샘플 데이터 조회get_column_stats - 컬럼별 상세 통계execute_query - 안전한 읽기 전용 쿼리 실행explain_query - 쿼리 실행 계획 분석optimize_query - 쿼리 최적화 제안get_db_status - 데이터베이스 상태 정보get_table_size - 테이블별 크기 정보get_index_usage - 인덱스 사용 통계analyze_performance - 성능 병목 지점 분석suggest_indexes - 인덱스 생성 제안optimize_tables - 테이블 최적화 제안generate_schema_mermaid - Mermaid ERD 다이어그램 생성generate_tables_summary - 마크다운 테이블 요약generate_performance_report - 성능 분석 리포트 (ASCII 차트 포함)😊 사용자: "데이터베이스 스키마를 ERD로 보여줘"
🤖 AI: generate_schema_mermaid() 실행 → Mermaid 다이어그램 제공
😊 사용자: "성능 문제가 있는지 분석해줘"
🤖 AI: analyze_performance() → generate_performance_report() 실행
→ ASCII 차트와 함께 상세한 성능 리포트 제공
😊 사용자: "테이블들 현황을 요약해줘"
🤖 AI: generate_tables_summary() 실행 → 마크다운 테이블 요약 제공
db-mcp-server/
├── main.py # MCP 서버 메인 파일
├── .env.example # 환경변수 예시 파일
├── requirements.txt # Python 의존성
├── adapters/ # 데이터베이스 어댑터
│ ├── __init__.py
│ ├── base.py # 베이스 어댑터 클래스
│ ├── mysql.py # MySQL/MariaDB 어댑터
│ └── postgresql.py # PostgreSQL 어댑터
└── tools/ # MCP 도구 모듈
├── __init__.py
├── schema_tools.py # 스키마 관련 도구
├── analysis_tools.py # 분석 관련 도구
└── visualization_tools.py # 시각화 관련 도구
adapters/ 폴더에 새 어댑터 클래스 생성DatabaseAdapter 베이스 클래스 상속adapters/__init__.py의 팩토리 함수에 추가tools/ 모듈에 함수 추가@mcp.tool() 데코레이터로 등록git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)이 프로젝트는 MIT 라이센스 하에 있습니다. 자세한 내용은 LICENSE 파일을 참조하세요.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Read-only MCP database server for MySQL, PostgreSQL, and SQLite from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/db-mcp-server-zerogon1203)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.