PostgreSQL MCP Server

Integrations

  • Supports deployment via Docker containers, with special configuration options for Docker on macOS environments.

  • Provides specific host configuration guidance when running with Docker on macOS systems.

  • Provides read-only access to PostgreSQL databases, allowing for schema inspection and execution of read-only SQL queries against connected databases.

포스트그레스큐엘

PostgreSQL 데이터베이스에 대한 읽기 전용 액세스를 제공하는 모델 컨텍스트 프로토콜 서버입니다. 이 서버를 통해 LLM은 데이터베이스 스키마를 검사하고 읽기 전용 쿼리를 실행할 수 있습니다.

구성 요소

도구

  • 질문
    • 연결된 데이터베이스에 대해 읽기 전용 SQL 쿼리를 실행합니다.
    • 입력: sql (문자열): 실행할 SQL 쿼리
    • 모든 쿼리는 READ ONLY 트랜잭션 내에서 실행됩니다.

자원

서버는 데이터베이스의 각 테이블에 대한 스키마 정보를 제공합니다.

  • 테이블 스키마 ( postgres://<host>/<table>/schema )
    • 각 테이블에 대한 JSON 스키마 정보
    • 열 이름과 데이터 유형이 포함됩니다.
    • 데이터베이스 메타데이터에서 자동으로 검색됨

Claude Desktop과 함께 사용

Claude Desktop 앱과 함께 이 서버를 사용하려면 claude_desktop_config.json 의 "mcpServers" 섹션에 다음 구성을 추가하세요.

도커

  • macOS에서 Docker를 실행할 때 서버가 호스트 네트워크(예: localhost)에서 실행 중이면 host.docker.internal을 사용하세요.
  • 사용자 이름/암호는 postgresql://user:password@host:port/db-name 으로 postgresql url에 추가할 수 있습니다.

지엑스피1

엔피엑스

{ "mcpServers": { "postgres": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/mydb" ] } } }

/mydb 데이터베이스 이름으로 바꾸세요.

건물

도커:

docker build -t mcp/postgres -f src/postgres/Dockerfile .

특허

이 MCP 서버는 MIT 라이선스에 따라 라이선스가 부여됩니다. 즉, MIT 라이선스의 약관에 따라 소프트웨어를 자유롭게 사용, 수정 및 배포할 수 있습니다. 자세한 내용은 프로젝트 저장소의 LICENSE 파일을 참조하세요.

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

PostgreSQL 데이터베이스에 대한 읽기 전용 액세스를 제공하여 LLM이 데이터베이스 스키마를 검사하고 보안 트랜잭션 컨텍스트 내에서 읽기 전용 SQL 쿼리를 실행할 수 있도록 합니다.

  1. Components
    1. Tools
    2. Resources
  2. Usage with Claude Desktop
    1. Docker
    2. NPX
  3. Building
    1. License

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A 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.
        Last updated -
        1
        19,917
        42,199
        JavaScript
        MIT License
        • Apple
        • Linux
      • -
        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 -
        19,917
        17
        JavaScript
        MIT License
        • Apple
      • -
        security
        F
        license
        -
        quality
        Provides read-only access to PostgreSQL databases, enabling users to inspect database schemas and execute read-only queries through a Model Context Protocol server.
        Last updated -
        3
        JavaScript
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that provides read-only access to PostgreSQL databases with enhanced multi-schema support, allowing LLMs to inspect database schemas across multiple namespaces and execute read-only queries while maintaining schema isolation.
        Last updated -
        13
        2
        JavaScript
        MIT License

      View all related MCP servers

      ID: tjn4blo0i8