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

A Model Context Protocol server that provides Create, Read, Update, and Delete operations on configured PostgreSQL database tables.
PostgreSQL MCP Server is cataloged as an MCP server attributed to tobecrazy. A Model Context Protocol server that provides Create, Read, Update, and Delete operations on configured PostgreSQL database tables. 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.
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.
Yes. The configuration specifies which tables are accessible, which columns are allowed for operations, and which operations are permitted.
Yes. It includes an execute_query tool that executes a custom SQL query with parameters.
README.md · 9c0b9519ed37 · Fetched 2026-11-13 12:44:40 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 that provides CRUD operations for PostgreSQL database tables.
This MCP server allows you to interact with PostgreSQL databases through a set of tools that provide Create, Read, Update, and Delete (CRUD) operations on specified tables. The server uses the FastMCP library and runs in stdio mode, making it compatible with various MCP clients.
Clone this repository:
git clone https://github.com/yourusername/postgresql-mcp.git
cd postgresql-mcp
Install the required dependencies:
pip install -r requirements.txt
The server is configured using the config.yaml file. This file contains:
Example configuration:
database:
host: localhost
port: 5432
dbname: postgres
user: postgres
password: postgres
tables:
- name: users
allowed_columns:
- id
- name
- email
- created_at
allowed_operations:
- create
- read
- update
- delete
- name: products
allowed_columns:
- id
- name
- price
- description
- category
allowed_operations:
- create
- read
- update
- delete
Run the MCP server:
python postgresql_mcp_server.py
The server will start in stdio mode, ready to receive commands from an MCP client.
Lists all tables available in the configuration.
response = list_tables()
Creates a new record in the specified table.
response = create_record(
table_name="users",
data={
"name": "John Doe",
"email": "john@example.com"
}
)
Reads records from the specified table with optional filtering.
response = read_records(
table_name="users",
filters={"name": "John Doe"},
limit=10,
offset=0
)
Updates a record in the specified table.
response = update_record(
table_name="users",
record_id=1,
data={"email": "newemail@example.com"},
id_column="id"
)
Deletes a record from the specified table.
response = delete_record(
table_name="users",
record_id=1,
id_column="id"
)
Executes a custom SQL query.
response = execute_query(
query="SELECT * FROM users WHERE age > %s",
params=[18]
)
Gets the schema information for a specific table.
response = get_table_schema(table_name="users")
All tools return responses in a standard format:
{
"status": "success",
"message": "Optional message",
"records": [...], // For read operations
"record": {...}, // For create/update operations
"count": 10 // For read operations
}
Or in case of an error:
{
"status": "error",
"message": "Error message"
}
execute_query tool allows arbitrary SQL execution, which could be a security risk. Consider restricting its use or implementing additional validation.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/postgresql-mcp)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.