A Model Context Protocol (MCP) server that provides secure database access to PostgreSQL through Kysely ORM. This server enables Claude Desktop to interact with PostgreSQL databases using natural…
postgres-mcp-server is an MCP project maintained in the abiswas97/postgres-mcp-server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that provides secure database access to PostgreSQL through Kysely ORM. This server enables Claude Desktop to interact with PostgreSQL…”. Read the project documentation for the complete scope.
The documented npm package is postgres-mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.
The example declares DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME, DB_SSL. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| Pagination | Query tool supports up to 500 rows per page with automatic LIMIT/OFFSET handling |
| Security | Parameterized queries prevent SQL injection, READ_ONLY mode by default |
{
"mcpServers": {
"postgres-mcp-server": {
"command": "npx",
"args": [
"postgres-mcp-server"
],
"env": {
"DB_HOST": "127.0.0.1",
"DB_PORT": "5432",
"DB_USER": "postgres",
"DB_PASSWORD": "YOUR_DB_PASSWORD",
"DB_NAME": "your_database_name",
"DB_SSL": "true"
}
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
| Variable | Description | Required |
|---|---|---|
| DB_HOST | Declared in the maintainer’s client configuration. | Check documentation |
| DB_PORT | Declared in the maintainer’s client configuration. | Check documentation |
| DB_USER | Declared in the maintainer’s client configuration. | Check documentation |
| DB_PASSWORD | Declared in the maintainer’s client configuration. | Yes |
| DB_NAME | Declared in the maintainer’s client configuration. | Check documentation |
| DB_SSL | Declared in the maintainer’s client configuration. | Check documentation |
Inspect PostgreSQL schemas and run read-only queries with the archived MCP reference server. Review its maintenance status before choosing it.
Connect the Notion MCP server to search workspace content and work with pages and databases through Notion’s hosted OAuth service.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.