CM

corporatepiyush/mcp-pg-rust

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

22 stars 4 forks 품질 68 트렌드 14Apache-2.0

Rust로 작성된 Postgresql MCP 서버

개요

postgreSQL을 Claude 데스크톱 및 MCP 호환 AI 도구로 가져 오는 고성능 MCP 서버입니다. 133 PostgreSQL 도구, 잠금없는 연결 풀, sub-10ms 대기 시간. 도구는 기본적으로 노출되지 않습니다. --enable- flags (또는 --enable-all)로 한 범주를 활성화합니다. flags가 도구 목록을 광고하고 모든 도구 / 통화를 거부하지 않고 서버가 시작되었습니다. 도구 노출을 참조하십시오. Rust로 작성된 4개의 고성능 MCP 서버 중 하나 — mcp-postgres · mcp-filesystem · mcp-memory · mcp-web-search. 모든 구현 MCP 프로토콜 개정 . 도구는 opt-in - 하나 이상의 패스 --enable- 플래그 (또는 --enable-all). 서버 없이는 도구가 없습니다. HTTP / 2 운송은 TLS (rustls, ring Provider)에서 제공 할 수 있습니다. SSLmode-gated PostgreSQL 연결, OpenSSL / aws-lc에 사용되는 동일한 공급자.

개요(AI 번역)

** mcp-postgres**는 PostgreSQL을 Claude 데스크톱 및 MCP 호환 AI 도구로 가져오는 고성능 MCP 서버입니다. 133 PostgreSQL 도구, 잠금없는 연결 풀, sub-10ms 대기 시간.

Tools는 opt-in (5.2.0+)입니다. 도구는 기본적으로 노출되지 않습니다. 당신은 --enable- ] 플래그 (또는 --enable-all). flags가 empty를 광고하지 않고 서버 시작 도구 목록 및 거부 모든 tools/call. 이름 * 공구 노출.

MCP 스위트. Rust에서 작성된 4개의 고성능 MCP 서버 중 하나 — mcp-postgres · mcp-filesystem · mcp 메모리 · mcp-web-search입니다. 모든 구현 MCP 프로토콜 개정 2025-11-25.

빠른 시작

설치

실행

도구는 opt-in - 하나 이상의 패스 --enable- 플래그 (또는 --enable-all]). 서버 없이는 도구가 없습니다.

Claude 데스크탑

claude_desktop_config.json에 추가:

** 설치 가이드 →**


왜 mcp-postgres?

특징 mcp-postgres DIY/평

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

mcp-postgres

mcp-postgres is a high-performance MCP server that brings PostgreSQL into Claude Desktop and any MCP-compatible AI tool. 133 PostgreSQL tools, lock-free connection pooling, sub-10ms latency.

Tools are opt-in (5.2.0+). No tools are exposed by default. You enable them one category at a time with --enable- flags (or --enable-all). A server started with no enable flags advertises an empty tool list and rejects every tools/call. See Tool Exposure.

MCP suite. One of four high-performance MCP servers written in Rust — mcp-postgres · mcp-filesystem · mcp-memory · mcp-web-search. All implement MCP protocol revision 2025-11-25.

Quick Start

Install

# From crates.io
cargo install mcp-postgres

# Or from Homebrew (macOS)
brew tap corporatepiyush/mcp-postgres
brew install mcp-postgres

Run

Tools are opt-in — pass one or more --enable- flags (or --enable-all). Without them the server exposes no tools.

# Stdio mode (for Claude Desktop) — expose read-only query + schema tools
mcp-postgres --database-url "postgres://user:pass@localhost:5432/mydb" --stdio \
  --enable-query --enable-schema

# TCP server (port 3000) — expose everything
mcp-postgres --database-url "postgres://user:pass@localhost:5432/mydb" --enable-all

# HTTP/2 server (port 3001) — query + monitoring only
mcp-postgres --database-url "postgres://user:pass@localhost:5432/mydb" --http-port 3001 \
  --enable-query --enable-monitoring

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "postgres": {
      "command": "mcp-postgres",
      "args": ["--database-url", "postgres://user:pass@localhost:5432/mydb", "--stdio", "--enable-all"]
    }
  }
}

Complete setup guide →


Why mcp-postgres?

Feature mcp-postgres DIY / psql
133 purpose-built tools Schema inspection, DDL, monitoring, replication, batch ops, security audit, text search, extensions, maintenance, and more You build every query from scratch
Lock-free connection pool Zero-mutex crossbeam::ArrayQueue — pure CAS loops, no kernel overhead Deadpool or manual Mutex
Dual-protocol TCP (3000) + HTTP/2 (3001) + stdio — one binary, three transports Multiple servers to wire up
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "postgres": { "command": "mcp-postgres", "args": ["--database-url", "postgres://user:pass@localhost:5432/mydb", "--stdio", "--enable-all"] } } }