awslabs.postgres-mcp-server
v1.2.5An AWS Labs Model Context Protocol (MCP) server for postgres
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_query
Run a SQL query against PostgreSQL
| Parameter | Type | Description |
|---|---|---|
cluster_identifier * | string | Cluster identifier |
connection_method * | connection method | |
database * | string | database name |
db_endpoint * | string | database endpoint |
sql * | string | The SQL query to run |
query_parameters | Parameters for the SQL query |
get_table_schema
Fetch table columns and comments from Postgres
| Parameter | Type | Description |
|---|---|---|
cluster_identifier * | string | Cluster identifier |
connection_method * | connection method | |
database * | string | database name |
db_endpoint * | string | database endpoint |
table_name * | string | name of the table |
connect_to_database
Connect to a specific database and save the connection internally
| Parameter | Type | Description |
|---|---|---|
cluster_identifier * | string | cluster identifier |
connection_method * | connection method | |
database * | string | database name |
database_type * | database type | |
db_endpoint * | string | database endpoint |
port * | integer | Postgres port |
region * | string | region |
rds_proxy | Optional RDS Proxy mode for this connection: 'auto' to connect through an RDS Proxy fronting the target when a usable one exists, 'off' to connect directly. Omit to use the server default set by --rds… |
is_database_connected
Check if a connection has been established
| Parameter | Type | Description |
|---|---|---|
cluster_identifier * | string | cluster identifier |
database | string | database name |
db_endpoint | string | database endpoint |
get_database_connection_info
Get all cached database connection information
create_cluster
Create an Aurora Postgres cluster
| Parameter | Type | Description |
|---|---|---|
cluster_identifier * | string | cluster identifier |
region * | string | region |
database | string | default database name |
enable_iam_auth | boolean | Enable IAM database authentication on the created cluster. Only permits IAM token auth in addition to password auth (does not disable passwords). Capability toggle only: a DB role still needs GRANT rd… |
engine_version | string | engine version |
with_express_configuration | boolean | with express configuration |
get_job_status
get background job status
| Parameter | Type | Description |
|---|---|---|
job_id * | string |