awslabs.postgres-mcp-server

v1.2.5
awslabs.postgres-mcp-server Checked 15 hours ago Published 14 days ago

An 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

ParameterTypeDescription
cluster_identifier *stringCluster identifier
connection_method *connection method
database *stringdatabase name
db_endpoint *stringdatabase endpoint
sql *stringThe SQL query to run
query_parametersParameters for the SQL query

get_table_schema

Fetch table columns and comments from Postgres

ParameterTypeDescription
cluster_identifier *stringCluster identifier
connection_method *connection method
database *stringdatabase name
db_endpoint *stringdatabase endpoint
table_name *stringname of the table

connect_to_database

Connect to a specific database and save the connection internally

ParameterTypeDescription
cluster_identifier *stringcluster identifier
connection_method *connection method
database *stringdatabase name
database_type *database type
db_endpoint *stringdatabase endpoint
port *integerPostgres port
region *stringregion
rds_proxyOptional 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

ParameterTypeDescription
cluster_identifier *stringcluster identifier
databasestringdatabase name
db_endpointstringdatabase endpoint

get_database_connection_info

Get all cached database connection information

create_cluster

Create an Aurora Postgres cluster

ParameterTypeDescription
cluster_identifier *stringcluster identifier
region *stringregion
databasestringdefault database name
enable_iam_authbooleanEnable 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_versionstringengine version
with_express_configurationbooleanwith express configuration

get_job_status

get background job status

ParameterTypeDescription
job_id *string