Universal Database MCP Server
범용 데이터베이스 MCP 서버
제작: MEOK AI Labs | meok.ai
AI 에이전트를 모든 SQL 데이터베이스에 연결하세요. 데이터 쿼리, 스키마 탐색, 행 삽입 및 CSV로 결과 내보내기가 가능합니다. 단일 통합 인터페이스로 SQLite(내장), PostgreSQL 및 MySQL을 지원합니다.
도구
도구 | 설명 |
| 안전성 검증을 거쳐 SQL 쿼리 실행 |
| 데이터베이스의 모든 테이블 나열 |
| 열 이름, 유형, null 허용 여부, 행 수 가져오기 |
| 간단한 키-값 딕셔너리를 사용하여 행 삽입 |
| SELECT 문을 실행하고 결과를 CSV로 저장 |
설치
# Core (SQLite support included)
pip install mcp
# PostgreSQL support
pip install psycopg2-binary
# MySQL support
pip install mysql-connector-python사용법
서버 실행
python server.pyClaude Desktop 설정
{
"mcpServers": {
"database": {
"command": "python",
"args": ["/path/to/database-universal-mcp/server.py"]
}
}
}연결 문자열 형식
데이터베이스 | 형식 |
SQLite (파일) |
|
PostgreSQL |
|
MySQL |
|
호출 예시
SQLite 데이터베이스의 테이블 나열:
Tool: list_tables
Input: {"connection_string": "/Users/me/data/app.db"}
Output: {"tables": ["users", "orders", "products"], "count": 3, "db_type": "sqlite"}테이블 설명:
Tool: describe_table
Input: {"connection_string": "/Users/me/data/app.db", "table_name": "users"}
Output: {"columns": [{"name": "id", "type": "INTEGER", "primary_key": true}, {"name": "email", "type": "TEXT", "nullable": false}], "row_count": 1523}데이터 쿼리:
Tool: query_sql
Input: {"connection_string": "postgresql://admin:secret@localhost/myapp", "sql": "SELECT name, email FROM users WHERE created_at > '2026-01-01' LIMIT 10"}
Output: {"columns": ["name", "email"], "rows": [{"name": "Alice", "email": "alice@example.com"}, ...], "row_count": 10}행 삽입:
Tool: insert_row
Input: {"connection_string": "/tmp/test.db", "table_name": "notes", "data": {"title": "Meeting notes", "body": "Discussed Q2 roadmap", "created_at": "2026-04-13"}}
Output: {"message": "Inserted 1 row into notes"}CSV로 내보내기:
Tool: export_to_csv
Input: {"connection_string": "/Users/me/data/app.db", "sql": "SELECT * FROM orders WHERE total > 100"}
Output: {"output": "/tmp/export_20260413_143022.csv", "rows_exported": 47}안전성
위험한 쿼리 차단: DROP TABLE, TRUNCATE, WHERE 절이 없는 DELETE, GRANT/REVOKE는 거부됩니다.
쓰기 보호: INSERT/UPDATE/DELETE 작업 시 명시적인
allow_write=True가 필요합니다.행 제한: 무료 티어는 쿼리당 최대 1000개의 행을 반환합니다.
자격 증명 미저장: 연결 문자열은 호출 시에만 사용되며 절대 저장되지 않습니다.
요금
티어 | 제한 | 가격 |
무료 | 일일 30회 호출, 최대 1000행 | $0 |
Pro | 무제한 + 연결 풀링 + 일괄 작업 | $12/월 |
Enterprise | 맞춤형 + 감사 로깅 + VPC 지원 | 문의 요망 |
라이선스
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CSOAI-ORG/database-universal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server