Skip to main content
Glama

PostgreSQL Multi-Schema MCP Server

PostgreSQL 다중 스키마 MCP 서버

향상된 다중 스키마 지원을 통해 PostgreSQL 데이터베이스에 대한 읽기 전용 액세스를 제공하는 모델 컨텍스트 프로토콜 서버입니다. 이 서버를 통해 LLM은 여러 네임스페이스에서 데이터베이스 스키마를 검사하고 스키마 격리를 유지하면서 읽기 전용 쿼리를 실행할 수 있습니다.

주요 특징

  • 다중 스키마 지원 : 명령줄 구성을 통해 노출할 스키마를 명시적으로 지정합니다.
  • 스키마 격리 : 서버 시작 시 나열된 권한이 있는 스키마에만 엄격한 액세스 제어
  • 크로스 스키마 검색 : 스키마 경계를 유지하면서 여러 스키마에 걸쳐 테이블에 대한 통합된 뷰 제공
  • 메타데이터 보안 : 지정된 스키마에 있는 사용자 정의 테이블만 노출하도록 시스템 카탈로그를 필터링합니다.

구성 요소

도구

  • 질문
    • 연결된 데이터베이스에 대해 읽기 전용 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,staging

Claude Desktop과 함께 사용

claude_desktop_config.json 에서 "mcpServers" 섹션을 구성하세요.

엔피엑스

{ "mcpServers": { "postgres": { "command": "npx", "args": [ "-y", "mcp-server-postgres-multi-schema", "postgresql://localhost/mydb", "public,audit" ] } } }

특허

이 다중 스키마 MCP 서버는 MIT 라이선스에 따라 라이선스가 부여됩니다. 라이선스 파일의 조건에 따라 소프트웨어를 사용, 수정 및 배포할 수 있습니다.

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

향상된 다중 스키마 지원 기능을 갖춘 PostgreSQL 데이터베이스에 대한 읽기 전용 액세스를 제공하는 모델 컨텍스트 프로토콜 서버로, LLM이 여러 네임스페이스에서 데이터베이스 스키마를 검사하고 스키마 격리를 유지하면서 읽기 전용 쿼리를 실행할 수 있습니다.

  1. 주요 특징
    1. 구성 요소
      1. 도구
      2. 자원
    2. 용법
      1. 예시
    3. Claude Desktop과 함께 사용
      1. 엔피엑스
    4. 특허

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server providing LLMs read-only access to PostgreSQL databases for inspecting schemas and executing queries.
        Last updated -
        16,948
        17
        JavaScript
        MIT License
        • Apple
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server providing both read and write access to PostgreSQL databases, enabling LLMs to query data, modify records, and manage database schemas.
        Last updated -
        4
        JavaScript
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that enables interaction with PostgreSQL databases to list tables, retrieve schemas, and execute read-only SQL queries.
        Last updated -
        16,948
        JavaScript
        • Linux
        • Apple
      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that provides LLMs with full read-write access to PostgreSQL databases, allowing both querying and modifying database content with transaction management and safety controls.
        Last updated -
        84
        7
        TypeScript
        • Apple

      View all related MCP servers

      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/HarjjotSinghh/mcp-server-postgres-multi-schema'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server