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

A Model Context Protocol server that connects to a PostgreSQL database and exposes data discovery and querying capabilities as MCP tools.
PostgreSQL MCP Server is cataloged as an MCP server attributed to aadarshjain. A Model Context Protocol server that connects to a PostgreSQL database and exposes data discovery and querying capabilities as MCP tools. 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: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
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.
No, it only allows SELECT queries to prevent database modifications.
Credentials are provided via command line and not stored.
README.md · 98ab3909d895 · Fetched 2026-11-13 10:51:46 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server implementation for PostgreSQL database exploration and querying.
This project provides a Model Context Protocol (MCP) server that connects to a PostgreSQL database and exposes various data discovery and querying capabilities as MCP tools. These tools allow you to explore database structure, query data, and get database statistics through a standardized interface.
requirements.txt):
pip install -r requirements.txt
Run the server by providing a PostgreSQL connection string:
python server.py postgresql://username:password@hostname:port/database
To integrate with Claude Desktop, add the following configuration to your Claude Desktop config file:
{
"mcpServers": {
"postgres": {
"command": "python",
"args": [
"/ABOSLUTE/PATH/TO/postgres-mcp-server/server.py",
"postgresql://user:password@host:port/database"
]
}
}
}
After adding or making any changes to above config file, make sure to relaunch the claude desktop by force quitting it.
The Claude Desktop configuration file is typically located at:
~/Library/Application\ Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonThe server provides the following MCP tools:

execute_queryExecute a custom SELECT SQL query and return the results.
list_tablesList all tables in the current PostgreSQL database.
get_table_schemaGet the schema definition for a specified table.
filter_instancesFilter database records based on specified criteria.
get_database_statsGet general statistics and metadata about the PostgreSQL database.
Once connected to Claude Desktop, you can ask questions like:

Claude will use the appropriate MCP tools to answer these questions by querying your PostgreSQL database.
If connection fails, verify your PostgreSQL connection string is correct
Check that your PostgreSQL server allows connections from your client machine
Server Not Found: Ensure the paths in your configuration file are correct and absolute
Use absolute path for command by running
where python
For example -
"command": "python"should be written a"command": "/Users/username/miniconda3/bin/python"
Permission Issues: Make sure the Claude Desktop app has permission to execute the script
Server Crashes: Check the server logs for errors and ensure all dependencies are installed
Feel free to raise issue on this repository.
SSE and Streamable-HTTP postgres-mcp-server is under development....
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-mcp-server-aadarshjain)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
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.