postgresql-mcp-server

InstallView on GitHub

postgresql-mcp-server is an MCP server by HenkDz. A Powerful PostgreSQL MCP server with 14 consolidated database management tools for AI assistants. It has 204 GitHub stars and ranks #111 of 952 in Databases by stars.

Category
Databases
MCP evidence
Its own npm package
Author
HenkDz
GitHub stars
204
This week
+0 stars this week (+0%) · +0 forks since 18 Nov 2026
Weekly downloads
10,316 (+4,208 vs last week)
Language
TypeScript
License
AGPL-3.0 (open source)
Last update
2026-06-23 (5 months ago)
Forks
37
Created
2025-02-27 (21 months ago)
Links
Sourcenpm

How to install postgresql-mcp-server

postgresql-mcp-server is published on npm as @henkey/postgres-mcp-server. The command below is the one its README gives, as read on 10 Nov 2026.

  1. Get ready. You need Node.js for npx.
  2. Add it to Claude Code from a terminal:
    claude mcp add postgresql-mcp-server -- npx @henkey/postgres-mcp-server --connection-string postgresql://user:password@host:port/database
  3. Or add it to Cursor or Claude Desktop in .cursor/mcp.json or claude_desktop_config.json:
    {
      "mcpServers": {
        "postgresql-mcp-server": {
          "command": "npx",
          "args": [
            "@henkey/postgres-mcp-server",
            "--connection-string",
            "postgresql://user:password@host:port/database"
          ]
        }
      }
    }
  4. Restart the client and check it. Run claude mcp list, or open the client's MCP settings, and confirm postgresql-mcp-server and its tools are listed. The install guide covers VS Code and Codex.

More MCP servers for PostgreSQL

postgresql-mcp-server ranks #52 by GitHub stars among the 338 listings in MCP servers for PostgreSQL. That page compares the top entries by stars, license and last update.

Report a problem with this listing · Advertise on MCP Harbor

Frequently asked questions

What is postgresql-mcp-server?

postgresql-mcp-server is an MCP server by HenkDz in the Databases category. A Powerful PostgreSQL MCP server with 14 consolidated database management tools for AI assistants. It has 204 GitHub stars and ranks #111 of 952 in Databases by stars. It is written in TypeScript. It is licensed under AGPL-3.0. It was last updated 5 months ago.

Is postgresql-mcp-server free and open source?

The code in the postgresql-mcp-server repository is published under the AGPL-3.0 license, an open-source license that lets you read, modify and reuse the code. The license covers the code only. An app, account or API that postgresql-mcp-server connects to can have its own price and terms, so check those before you rely on it in a commercial product.

What are the alternatives to postgresql-mcp-server?

Other Databases projects on MCP Harbor include dbx, Chat2DB, mcp-toolbox. Each alternative links to its own page with stars, license and recent activity. The Databases category ranks all 952 by stars, and you can re-sort it by growth this week.

Alternatives to postgresql-mcp-server

dbxTrending★ 31,409
t8y2 · Rust · MCP evidence: MCP Registry, npm package+672 stars this week (+2.2%)
25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和
Chat2DB★ 28,372
OtterMind · Java+7 stars this week (+0%)
Chat2DB is a free, cross-platform, local-first database client and SQL workspace for developers, DBAs, analysts, and data teams. Connect to 40+ databases, manage data, edit and run SQL, and use your own AI model to generate, explain, and optimize queries. Available on desktop, web, Docker, and CLI,
mcp-toolbox★ 16,946
googleapis · Go · MCP evidence: MCP Registry+47 stars this week (+0.3%)
MCP Toolbox for Databases is an open source MCP server for databases.
nightingale★ 13,521
ccfos · Go+22 stars this week (+0.2%)
Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.
electric★ 10,426
electric-sql · TypeScript
The agent platform built on sync.
builderz-labs · TypeScript+13 stars this week (+0.2%)
Self-hosted control plane for AI agents: dispatch tasks, review runs, track spend, and operate OpenClaw, Claude Code, Codex, and other runtimes.

All 952 Databases MCP servers →

Data last updated . Stars and downloads are refreshed every day from GitHub and npm.

Contact MCP Harbor

We reply by email. You can also write to hello@mcpharbor.app.

Report a problem with this listing

postgresql-mcp-serverHenkDz · /tools/henkdz-postgresql-mcp-server/

We reply by email.