
corporatepiyush/mcp-pg-rust
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Postgresql MCP сервер, написанный на Rust
Обзор
это высокопроизводительный MCP-сервер, который приносит PostgreSQL в Claude Desktop и любой MCP-совместимый инструмент ИИ. 133 инструмента PostgreSQL, пул соединений без блокировки, задержка до 10 мс. Никакие инструменты не выставляются по умолчанию. Вы включаете одну категорию одновременно с флагами (или всеми). Сервер, запущенный без флагов включения, рекламирует список инструментов и отклоняет все инструменты / вызовы. См. экспозицию инструментов. Один из четырех высокопроизводительных MCP-серверов, написанных на Rust — mcp-postgres · mcp-filesystem · mcp-memory · mcp-web-search. Все они вносят изменения в протокол MCP. Инструменты оптимизируются — проходят один или несколько флагов (или все флаги). Без них сервер не выставляет никаких инструментов. Транспорт HTTP/2 может обслуживаться через TLS (rustls, кольцевой провайдер — тот же провайдер, используемый для соединений PostgreSQL, без OpenSSL /aws-lc).
Обзор (машинный перевод)
mcp-postgres - это высокопроизводительный MCP-сервер, который переносит PostgreSQL в Claude Desktop и любой MCP-совместимый инструмент ИИ. 133 инструмента PostgreSQL, пул соединений без блокировки, задержка до 10 мс.
Инструменты включены (5.2.0+). Никакие инструменты не выставляются по умолчанию. Вы позволяете • один из них (категория) одновременно с флагами (или [[Т1]]. Сервер, запущенный без включения флагов, рекламирует * * пустой * * При этом он отбрасывает все [2]. Видишь?
Инструментальное воздействие.
MCP люкс Один из четырех высокопроизводительных MCP-серверов, написанных на Rust
mcp-postgres mcp-файлосистема mcp-память · mcp-web-поиск. Все реализуют пересмотр протокола MCP
2025-11-25.
Быстрый старт
###Установить
###Беги
Инструменты Opt-in - передают один или несколько флагов --enable-
[[Т5]]. Без них сервер не выставляет никаких инструментов.
###Клод Десктоп
Добавить claude_desktop_config.json:
** Полное руководство по установке **
Почему mcp-postgres?
| Особенность | mcp-postgres | DIY / psql |
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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"]
}
}
}