H
HenkDz/postgresql-mcp-server
PostgreSQL admin tools folded into a smaller set
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
Client config (built from the install command this repo gives)
{
"mcpServers": {
"henkdz-postgresql-mcp-server": {
"command": "npx",
"args": ["@henkey/postgres-mcp-server"]
}
}
}Parsed from the README we fetched on 2026-11-04; we have not executed it.
command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
"servers": {
"henkdz-postgresql-mcp-server": {
"command": "npx",
"args": ["@henkey/postgres-mcp-server"]
}
}
}Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio henkdz-postgresql-mcp-server -- npx @henkey/postgres-mcp-server
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
- Install
npx @henkey/postgres-mcp-server
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
npx @henkey/postgres-mcp-server. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# PostgreSQL MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol (MCP) server that provides comprehensive PostgreSQL database management capabilities for AI assistants.
🚀 What's New: This server has been completely redesigned from 46 individual tools to 18 intelligent tools through consolidation (34→8 meta-tools) and enhancement (+4 new tools), providing better AI discovery while adding powerful data manipulation and comment management capabilities.
## Breaking Changes in 2.0.0
Version 2.0.0 introduces security boundaries that intentionally change default behavior from the 1.x line:
The server starts in readonly mode. Mutations, DDL, role administration, filesystem import/export, and arbitrary SQL require --security-mode write, --security-mode admin, or --security-mode unsafe as appropriate.
Destructive operations such as drops, resets, broad role grants, and arbitrary SQL require --allow-destructive.
Per-tool connectionString, sourceConnectionString, and targetConnectionString arguments are disabled by default. Use server-level --connection-string or POSTGRESCONNECTIONSTRING, or explicitly opt in with --allow-tool-connection-string.
Legacy string where clauses are rejected for mutation, index, export, and copy filters. Use structured where predicates, or rawWhere only with --security-mode unsafe --allow-destructive.
Multi-statement pgexecutesql calls must use transactional: true, expectRows: false, and no bind parameters.
Tool schemas reject unknown fields, so misspelled or unintended inputs fail before connection resolution.
User and target identifiers are restricted to safe simple PostgreSQL identifiers.
For the non-breaking security patch line, use @henkey/postgres-mcp-server@1.0.7.
## Quick Start
## Prerequisites
Node.js ≥18.0.0
Access to a PostgreSQL server
(Optional) An MCP client like Cursor or Claude for AI integration
### Option 1: npm (Recommended)
bash
# Install globally
npm install -g @henkey/postgres-mcp-server
# Or run directly with npx (no installation)
# Use env var for connection string (optional)
export POSTGRESCONNECTIONSTRING="postgresql://user:pass@localhost:5432/db"
npx @henkey/postgres-mcp-server
# Or pass directly:
npx @henkey/postgres-mcp-server --connection-string "postgresql://user:pass@localhost:5432/db"
# Verify installation
npx @henkey/postgres-mcp-server --help
Add to your MCP client configuration:
json
"mcpServers": {
"postgresql-mcp": {
"command": "npx",
"args": [
"@henkey/postgres-mcp-server",
"--connection-string", "postgresql://user:password@host:port/database"
### Option 2: Install via Smithery
bash
npx -y @smithery/cli install @HenkDz/postgresql-mcp-server --client claude
### Option 3: Docker (Recommended for Production)
bash
# Build the Docker image
docker build -t postgres-mcp-server .
# Run with environment variable
docker run -i --rm \
-e POSTGRESCONNECTIONSTRING="postgresql://user:password@host:port/database" \
postgres-mcp-server
Add to your MCP client configuration:
json
"mcpServers": {
"postgresql-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"henkey/postgres-mcp:latest",
"-e",
"POSTGRESCONNECTIONSTRING"
],
"env": {
"POSTGRESCONNECTIONSTRING": "postgresql://user:password@host:port/database"
### Option 4: Manual Installation (Development)
🚀 What's New: This server has been completely redesigned from 46 individual tools to 18 intelligent tools through consolidation (34→8 meta-tools) and enhancement (+4 new tools), providing better AI discovery while adding powerful data manipulation and comment management capabilities.
## Breaking Changes in 2.0.0
Version 2.0.0 introduces security boundaries that intentionally change default behavior from the 1.x line:
The server starts in readonly mode. Mutations, DDL, role administration, filesystem import/export, and arbitrary SQL require --security-mode write, --security-mode admin, or --security-mode unsafe as appropriate.
Destructive operations such as drops, resets, broad role grants, and arbitrary SQL require --allow-destructive.
Per-tool connectionString, sourceConnectionString, and targetConnectionString arguments are disabled by default. Use server-level --connection-string or POSTGRESCONNECTIONSTRING, or explicitly opt in with --allow-tool-connection-string.
Legacy string where clauses are rejected for mutation, index, export, and copy filters. Use structured where predicates, or rawWhere only with --security-mode unsafe --allow-destructive.
Multi-statement pgexecutesql calls must use transactional: true, expectRows: false, and no bind parameters.
Tool schemas reject unknown fields, so misspelled or unintended inputs fail before connection resolution.
User and target identifiers are restricted to safe simple PostgreSQL identifiers.
For the non-breaking security patch line, use @henkey/postgres-mcp-server@1.0.7.
## Quick Start
## Prerequisites
Node.js ≥18.0.0
Access to a PostgreSQL server
(Optional) An MCP client like Cursor or Claude for AI integration
### Option 1: npm (Recommended)
bash
# Install globally
npm install -g @henkey/postgres-mcp-server
# Or run directly with npx (no installation)
# Use env var for connection string (optional)
export POSTGRESCONNECTIONSTRING="postgresql://user:pass@localhost:5432/db"
npx @henkey/postgres-mcp-server
# Or pass directly:
npx @henkey/postgres-mcp-server --connection-string "postgresql://user:pass@localhost:5432/db"
# Verify installation
npx @henkey/postgres-mcp-server --help
Add to your MCP client configuration:
json
"mcpServers": {
"postgresql-mcp": {
"command": "npx",
"args": [
"@henkey/postgres-mcp-server",
"--connection-string", "postgresql://user:password@host:port/database"
### Option 2: Install via Smithery
bash
npx -y @smithery/cli install @HenkDz/postgresql-mcp-server --client claude
### Option 3: Docker (Recommended for Production)
bash
# Build the Docker image
docker build -t postgres-mcp-server .
# Run with environment variable
docker run -i --rm \
-e POSTGRESCONNECTIONSTRING="postgresql://user:password@host:port/database" \
postgres-mcp-server
Add to your MCP client configuration:
json
"mcpServers": {
"postgresql-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"henkey/postgres-mcp:latest",
"-e",
"POSTGRESCONNECTIONSTRING"
],
"env": {
"POSTGRESCONNECTIONSTRING": "postgresql://user:password@host:port/database"
### Option 4: Manual Installation (Development)
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/henkdz-postgresql-mcp-server/)
- Source
- awesome · https://github.com/HenkDz/postgresql-mcp-server
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.