Back to Home
swethasalunke-tech icon

postgres-mcp-server

Verified Safe

by swethasalunke-tech

Overview

Provides an AWS Model Context Protocol (MCP) server for secure, controlled interaction with PostgreSQL databases via the RDS Data API, supporting SQL query execution and schema retrieval.

Installation

Run Command
python -m awslabs.postgres_mcp_server.server --resource_arn <RDS_CLUSTER_ARN> --secret_arn <SECRET_MANAGER_ARN> --database <DB_NAME> --region <AWS_REGION> --readonly True

Security Notes

The server includes robust, explicit checks to prevent SQL injection and detect mutating SQL queries, especially when configured for read-only access. It leverages AWS IAM roles and Secrets Manager via boto3 for secure credential management, avoiding hardcoded secrets. Parameterized queries are utilized where appropriate.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-11-20

Tags

PostgreSQLAWS RDS Data APIMCP ServerSQL SecurityDatabase Connector