
crystaldba/postgres-mcp
Database management이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Postgres MCP Pro는 여러분과 AI 에이전트를 위한 설정 가능한 읽기/쓰기 접근과 성능 분석을 제공합니다.
개요
인덱스 튜닝, 계획 설명, 건강 상태 확인, 안전한 SQL 실행 기능을 갖춘 Postgres MCP 서버입니다. 개요 • 데모 • 빠른 시작 • 기술 노트 • MCP API • 관련 프로젝트 • FAQ 이 서버는 초기 코딩부터 테스트 및 배포, 그리고 프로덕션 튜닝과 유지보수까지 귀하와 AI 에이전트를 지원하기 위해 구축된 오픈 소스 모델 컨텍스트 프로토콜(MCP) 서버입니다. Postgres MCP Pro는 단순히 데이터베이스 연결을 랩하는 것 이상의 역할을 합니다. - - 인덱스 건강, 연결 활용도, 버퍼 캐시, 진공 상태, 시퀀스 제한, 복제 지연 등을 분석합니다. - 산업용 수준의 알고리즘을 사용해 수천 개의 가능한 인덱스를 탐색하여 귀하의 워크로드에 최적의 솔루션을 찾습니다. - - EXPLAIN 계획을 검토하고 가상 인덱스의 영향을 시뮬레이션하여 성능을 검증하고 최적화합니다. - - 데이터베이스 스키마에 대한 상세한 이해를 바탕으로 컨텍스트 인지 SQL 생성.
개요(AI 번역)
인덱스 튜닝, 계획 설명, 건강 상태 확인, 안전한 SQL 실행 기능을 갖춘 Postgres MCP 서버입니다.
개요 • 데모 • 퀵 스타트 • 기술 노트 • MCP API • 관련 프로젝트 • 자주 묻는 질문
개요
Postgres MCP Pro는 초기 코딩, 테스트 및 배포, 프로덕션 튜닝 및 유지보수에 이르기까지 전체 개발 과정 전반에 걸쳐 귀하와 AI 에이전트를 지원하기 위해 구축된 오픈 소스 모델 컨텍스트 프로토콜(MCP) 서버입니다.
Postgres MCP Pro는 단순히 데이터베이스 연결을 랩하는 것 이상의 역할을 합니다.
특징은 다음과 같습니다:
- ** 🔍 데이터베이스 건강 - 인덱스 건강, 연결 활용률, 버퍼 캐시, 진공 상태, 서열 제한, 복제 지연 등 분석
- ** ⚡ 인덱스 튜닝** - 산업용 강도 알고리즘을 사용해 작업 부하에 가장 적합한 솔루션을 찾기 위해 수천 가지 가능한 인덱스를 탐색합니다.
- ** 📈 쿼리 플랜** - EXPLAIN 계획을 검토하고 가상의 인덱스 효과를 시뮬레이션하여 성능을 검증하고 최적화합니다.
- ** 🧠 스키마 인텔리전스** - 데이터베이스 스키마에 대한 상세한 이해를 바탕으로 컨텍스트 인지 SQL 생성.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Overview
Postgres MCP Pro is an open source Model Context Protocol (MCP) server built to support you and your AI agents throughout the entire development process—from initial coding, through testing and deployment, and to production tuning and maintenance.
Postgres MCP Pro does much more than wrap a database connection.
Features include:
- 🔍 Database Health - analyze index health, connection utilization, buffer cache, vacuum health, sequence limits, replication lag, and more.
- ⚡ Index Tuning - explore thousands of possible indexes to find the best solution for your workload, using industrial-strength algorithms.
- 📈 Query Plans - validate and optimize performance by reviewing EXPLAIN plans and simulating the impact of hypothetical indexes.
- 🧠 Schema Intelligence - context-aware SQL generation based on detailed understanding of the database schema.
- 🛡️ Safe SQL Execution - configurable access control, including support for read-only mode and safe SQL parsing, making it usable for both development and production.
Postgres MCP Pro supports both the Standard Input/Output (stdio) and Server-Sent Events (SSE) transports, for flexibility in different environments.
For additional background on why we built Postgres MCP Pro, see our launch blog post.
Demo
From Unusable to Lightning Fast
- Challenge: We generated a movie app using an AI assistant, but the SQLAlchemy ORM code ran painfully slow.
- Solution: Using Postgres MCP Pro with Cursor, we fixed the performance issues in minutes.
What we did:
설치
docker run -i --rm -e DATABASE_URI crystaldba/postgres-mcp --access-mode=unrestricted설정
{
"mcpServers": {
"postgres": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DATABASE_URI",
"crystaldba/postgres-mcp",
"--access-mode=unrestricted"
],
"env": {
"DATABASE_URI": "postgresql://username:password@localhost:5432/dbname"
}
}
}
}