TokenToSeaMCP Hub
中文 Console

Postgres Full Access MCP

syahiidkamil

Gives the model full read and write access to PostgreSQL with transaction management and safety controls.

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add postgres-full-access --env POSTGRES_CONNECTION_STRING='<POSTGRES_CONNECTION_STRING>' --env MAX_CONCURRENT_TRANSACTIONS='<MAX_CONCURRENT_TRANSACTIONS>' --env PG_STATEMENT_TIMEOUT_MS='<PG_STATEMENT_TIMEOUT_MS>' --env TRANSACTION_TIMEOUT_MS='<TRANSACTION_TIMEOUT_MS>' -- npx -y mcp-postgres-full-access '{{config.POSTGRES_CONNECTION_STRING}}'

Environment variables

  • POSTGRES_CONNECTION_STRING
  • MAX_CONCURRENT_TRANSACTIONS
  • PG_STATEMENT_TIMEOUT_MS
  • TRANSACTION_TIMEOUT_MS

Replace the placeholders with your own credentials and keep them out of version control.