PostgreSQL MCP Server
포스트그레스큐엘
PostgreSQL 데이터베이스에 대한 읽기 전용 액세스를 제공하는 모델 컨텍스트 프로토콜 서버입니다. 이 서버를 통해 LLM은 데이터베이스 스키마를 검사하고 읽기 전용 쿼리를 실행할 수 있습니다.
구성 요소
도구
질문
연결된 데이터베이스에 대해 읽기 전용 SQL 쿼리를 실행합니다.
입력:
sql(문자열): 실행할 SQL 쿼리모든 쿼리는 READ ONLY 트랜잭션 내에서 실행됩니다.
자원
서버는 데이터베이스의 각 테이블에 대한 스키마 정보를 제공합니다.
테이블 스키마 (
postgres://<host>/<table>/schema)각 테이블에 대한 JSON 스키마 정보
열 이름과 데이터 유형이 포함됩니다.
데이터베이스 메타데이터에서 자동으로 검색됨
Related MCP server: PostgreSQL MCP Server
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 파일을 참조하세요.
This server cannot be deployed
Maintenance
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
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.
Read your Iceberg tables hosted in Europe: find tables, run read-only SQL, view photos.
- dataOAuthco.thinair
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
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.122,323 npm91,120MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server providing LLMs read-only access to PostgreSQL databases for inspecting schemas and executing queries.122,323 npm27MIT
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables interaction with PostgreSQL databases to list tables, retrieve schemas, and execute read-only SQL queries.9 npmMIT
- 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.122,323 npmMIT