
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server that lets MCP-compatible clients query a PostgreSQL database, test connections, list tables, and run read-only SQL.
PostgreSQL MCP Server is cataloged as an MCP server attributed to martymarkenson. An MCP server that lets MCP-compatible clients query a PostgreSQL database, test connections, list tables, and run read-only SQL. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for PostgreSQL MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Only SELECT statements are permitted; operations like DROP, DELETE, TRUNCATE, ALTER, CREATE, INSERT, and UPDATE are automatically blocked.
Through environment variables including POSTGRES_HOST, POSTGRES_PORT, POSTGRES_DB, POSTGRES_USER, and POSTGRES_PASSWORD.
README.md · 295a79c01489 · 采集于 2026-11-13 08:51:47 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
An MCP (Model Context Protocol) server for querying a PostgreSQL database. Execute SQL queries, view table details, and manage database connections through MCP-compatible clients.
Follow these steps for installation:
Download the postgres-connector.mcpb file from this repository (located in the root directory).
postgres-connector.mcpb file
Screenshot placeholder: Installing the .mcpb file
After installation, the PostgreSQL Connector will appear in your Claude Desktop with default environment variables that you can configure with your database details.
Screenshot placeholder: Database configuration interface showing environment variables
Send a query "test the database connection"

You'll need to provide the following information for your PostgreSQL database:
| Environment Variable | Description | Required | Default |
|---|---|---|---|
| POSTGRES_HOST | The hostname or IP address of your PostgreSQL server | ✅ Yes | - |
| POSTGRES_PORT | The port number for your PostgreSQL server | ❌ No | 5432 |
| POSTGRES_DB | The name of the specific database to connect to | ✅ Yes | - |
| POSTGRES_USER | Your PostgreSQL username | ✅ Yes | - |
| POSTGRES_PASSWORD | Your PostgreSQL password | ✅ Yes | - |
These environment variables will be automatically available for configuration in the extension settings panel after installing the extension in Claude Desktop.
Tool: test-postgres-connection
Tests your database connection and displays the current configuration (password hidden for security).
Example Output:
✅ Database connection successful!
Configuration:
{
"host": "localhost",
"port": "5432",
"database": "myapp_production",
"username": "postgres",
"password": "***hidden***"
}
Connection test result: [
{
"test": 1
}
]
Tool: get-all-tables
Retrieves a list of all tables in the public schema of your database.
Example Output:
[
{
"table_name": "users"
},
{
"table_name": "orders"
},
{
"table_name": "products"
},
{
"table_name": "categories"
}
]
Tool: execute-sql-query
Executes SELECT queries on your database with security validation.
Input:
sql: The SQL query to execute (SELECT statements only)Example Usage:
SELECT id, name, email FROM users LIMIT 5;
Example Output:
[
{
"id": 1,
"name": "John Doe",
"email": "john@example.com"
},
{
"id": 2,
"name": "Jane Smith",
"email": "jane@example.com"
}
]
The PostgreSQL MCP server includes security measures:
Best practice is to create a read-only database user for the postgres connector to use.
The following SQL operations are NOT ALLOWED for security:
DROP (deleting tables/databases)DELETE (removing data)TRUNCATE (clearing tables)ALTER (modifying structure)CREATE (creating new objects)INSERT (adding data)UPDATE (modifying data)Use the get-all-tables tool to retrieve all tables in your database schema.
Use the execute-sql-query tool with SELECT statements:
SELECT * FROM users LIMIT 10;
Problem: "Database connection failed"
Problem: "Connection timeout"
Problem: "Dangerous operation detected"
Problem: "Query execution failed"
Problem: MCP server not appearing in Claude Desktop client
Problem: Environment variables not showing up
Problem: Cannot configure database settings
postgres-connector/
├── src/
│ └── server.ts # Main MCP server implementation
├── package.json # Node.js dependencies
├── manifest.json # MCP extension manifest
├── icon.png # Extension icon
└── postgres-connector.mcpb # Compiled extension bundle
MIT License - see the LICENSE file for details.
Marty Markenson
Need help? Open an issue in this repository or reach out to martymarkenson
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for PostgreSQL MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/postgres-connector)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.