Skip to Content
Build an MCPPostgreSQL

PostgreSQL MCP

Execute SQL queries, inspect schema, and manage data in PostgreSQL databases. High blast-radius: scope to read-only roles where possible.

Overview

Catalog IDmcp-postgres
Categorydatabase
Auth methodBearer token
Blast radiushigh
TrustVerified — published by cendriix
Version1.2.0
Regionsus-east-1, eu-west-1, ap-southeast-1

Tools

ToolDescription
run_queryExecute a SQL query against PostgreSQL.
list_tablesList tables in the database.
describe_tableGet the schema of a table.
insert_rowInsert a row into a table.
run_migrationExecute a SQL migration script.

Tool parameters

run_query

Execute a SQL query against PostgreSQL.

ParameterTypeDescription
querystringrequiredSQL query
paramsarrayoptionalQuery parameters

list_tables

List tables in the database.

ParameterTypeDescription
schemastringoptionalSchema name (default: public)

describe_table

Get the schema of a table.

ParameterTypeDescription
table_namestringrequiredTable name
schemastringoptionalSchema name

insert_row

Insert a row into a table.

ParameterTypeDescription
table_namestringrequiredTable name
dataobjectrequiredColumn-value pairs

run_migration

Execute a SQL migration script.

ParameterTypeDescription
sqlstringrequiredMigration SQL
descriptionstringoptionalMigration description

Installing

  1. In Cendriix, go to Settings → MCPs
  2. Find PostgreSQL and click Install
  3. Provide a bearer/service token after installing. It is validated, then encrypted at rest in a secrets vault scoped to your tenant.
  4. Click Test Connection to run a health check and list available tools

Authentication. Provide a bearer/service token after installing. It is validated, then encrypted at rest in a secrets vault scoped to your tenant.

Blast radius

This MCP is classified high. This MCP can modify infrastructure or reach sensitive data. High-blast-radius tool calls require explicit approval when your organisation enables approval gates in Policies.

Every tool invocation is recorded in your Audit Log. You can remove this MCP at any time from Settings → MCPs, which revokes tool access immediately.

Further reading

Last updated on