PostgreSQL Multi-Schema MCP Server
PostgreSQL 다중 스키마 MCP 서버
향상된 다중 스키마 지원을 통해 PostgreSQL 데이터베이스에 대한 읽기 전용 액세스를 제공하는 모델 컨텍스트 프로토콜 서버입니다. 이 서버를 통해 LLM은 여러 네임스페이스에서 데이터베이스 스키마를 검사하고 스키마 격리를 유지하면서 읽기 전용 쿼리를 실행할 수 있습니다.
주요 특징
다중 스키마 지원 : 명령줄 구성을 통해 노출할 스키마를 명시적으로 지정합니다.
스키마 격리 : 서버 시작 시 나열된 권한이 있는 스키마에만 엄격한 액세스 제어
크로스 스키마 검색 : 스키마 경계를 유지하면서 여러 스키마에 걸쳐 테이블에 대한 통합된 뷰 제공
메타데이터 보안 : 지정된 스키마에 있는 사용자 정의 테이블만 노출하도록 시스템 카탈로그를 필터링합니다.
Related MCP server: PostgreSQL MCP Server
구성 요소
도구
질문
연결된 데이터베이스에 대해 읽기 전용 SQL 쿼리를 실행합니다.
입력:
sql(문자열): 실행할 SQL 쿼리모든 쿼리는 READ ONLY 트랜잭션 내에서 실행됩니다.
검색 경로 제한을 통해 유지되는 스키마 컨텍스트
자원
서버는 인증된 스키마에 걸쳐 각 테이블에 대한 스키마 정보를 제공합니다.
테이블 스키마 (
postgres://<host>/<db_schema>/<table>/schema)각 테이블에 대한 JSON 스키마 정보
열 이름, 데이터 유형 및 유형 수정자가 포함됩니다.
데이터베이스 메타데이터에서 자동으로 검색됨
명시적 스키마 허용 목록을 통한 다중 스키마 지원
용법
서버에는 데이터베이스 URL이 필요하고 노출할 스키마의 쉼표로 구분된 목록을 허용합니다.
지엑스피1
database-url : PostgreSQL 연결 문자열(예:
postgresql://localhost/mydb)schemas : 노출할 스키마의 쉼표로 구분된 목록(지정하지 않으면 기본값은 'public')
예시
# Connect with default public schema
npx -y mcp-server-postgres-multi-schema postgresql://localhost/mydb
# Connect with multiple schemas
npx -y mcp-server-postgres-multi-schema postgresql://localhost/mydb public,analytics,stagingClaude Desktop과 함께 사용
claude_desktop_config.json 에서 "mcpServers" 섹션을 구성하세요.
엔피엑스
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"mcp-server-postgres-multi-schema",
"postgresql://localhost/mydb",
"public,audit"
]
}
}
}특허
이 다중 스키마 MCP 서버는 MIT 라이선스에 따라 라이선스가 부여됩니다. 라이선스 파일의 조건에 따라 소프트웨어를 사용, 수정 및 배포할 수 있습니다.
This server cannot be deployed
Maintenance
Related MCP Connectors
- dataOAuthco.thinair
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
The Grafbase MCP server sits in front of a GraphQL API and exposes an MCP protocol-compliant interface that allows AI agents and LLMs to explore and query GraphQL APIs using natural language. It provides tools to search schemas, introspect types and fields, and execute GraphQL queries while minimizing context bloat by returning only relevant schema subsets, with built-in support for authentication, authorization, and configurable access control.
Query your Postgres from ChatGPT or Claude without exposing the database or handing over credentials. Run npx boltschema connect next to your database and it dials out over HTTPS — no inbound firewall rule, no open port, works with localhost and VPC-private databases. Read-only is enforced by a SQL guard, a Postgres READ ONLY transaction, and a scoped role generated for you.
Related MCP Servers
- -licenseNot gradedqualityAmaintenanceA Model Context Protocol server that provides read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.109,622 npm90,629MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server providing LLMs read-only access to PostgreSQL databases for inspecting schemas and executing queries.109,622 npm27MIT
- AlicenseNot gradedqualityDmaintenanceAn enhanced Model Context Protocol server that enables LLMs to inspect database schemas with rich metadata and execute read-only SQL queries with safety checks.90 npm25MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides read-only access to PostgreSQL databases, enabling LLMs to inspect database schemas and execute read-only queries.109,622 npmMIT