
corporatepiyush/mcp-pg-rust
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Rust で書かれた Postgresql MCP サーバー
概要
postgreSQL を Claude Desktop および MCP 互換 AI ツールに提供する高性能 MCP サーバーです。 133 PostgreSQL ツール、ロックフリー接続プール、サブ 10ms レイテンシ。 デフォルトではツールが公開されていません。 --enable- フラグ (または --enable-all) で 1 つのカテゴリを 1 つずつ有効にします。 enable フラグがツールリストを宣伝し、すべてのツール/コールを拒否しないようにサーバーが起動しました。 ツールの露出を参照してください。. Rust — mcp-postgres · mcp-filesystem · mcp-memory · mcp-web-search で書かれている 4 つの高性能 MCP サーバーの 1 つ。 すべての MCP プロトコルのリビジョンを実行します。 ツールはオプトインで、複数の --enable- フラグ (または --enable-all) を渡します。 サーバがツールを明示しない。 HTTP/2 トランスポートは TLS (rustls, Ring Provider — sslmode-gated PostgreSQL 接続、OpenSSL/aws-lc なし) で使用できます.
概要(AI 翻訳)
mcp-postgres は、PostgreSQL を Claude Desktop および MCP 互換 AI ツールに提供する高性能な MCP サーバーです。 133 PostgreSQL ツール、ロックフリー接続プール、サブ 10ms レイテンシ。
ツールはオプトイン(5.2.0 +)です。 デフォルトではツールが公開されていません。 有効にする [
--enable-] フラグ (または) で 1 つの category を 1 つずつ指定します。 [--enable-all]). 有効フラグなしで起動したサーバーはemptyを広告します [tools/callの全てのツールリストを削除 お問い合わせ 用具の露出。
MCPスイート。 Rust で書かれている 4 つの高性能 MCP サーバーの 1 つ — mcp-postgres・ mcp-filesystem・ mcpメモリー・ mcp-web-search. MCP プロトコルのリビジョン [
2025-11-25を実行します。
クイックスタート
インストール
実行
ツールはオプトインで、複数の [--enable- ]] フラグ (または
[--enable-all]). サーバがツールを明示しない。
##Claudeデスクトップ
[claude_desktop_config.jsonに追加します。
完全セットアップガイド →
お問い合わせ
なぜmcp-postgres?
| 特集 | mcp-postgres | DIY / psql | |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
このページは 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 everytools/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"]
}
}
}
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 |
インストール
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"]
}
}
}