MCP Server Policy

POSTGRESQL MCP POLICY

Enforce policies on every tool call to the PostgreSQL MCP Server. 1 tools listed, categorised, and ready for rules.

modelcontextprotocol/server-postgres 1 read 1 tools total
postgresql database sql queries

GET STARTED

Download this policy scaffold and add your rules. Intercept enforces them on every tool call before it reaches PostgreSQL.

terminal

# Download policy scaffold

curl -o postgres.yaml https://raw.githubusercontent.com/policylayer/intercept/main/policies/postgres.yaml

# Run with Intercept

intercept --policy postgres.yaml -- npx -y @modelcontextprotocol/server-postgres

Server documentation: https://github.com/modelcontextprotocol/servers/tree/main/src/postgres

READ TOOLS

1

POLICY YAML

This scaffold lists every tool with empty rules. Add conditions — rate limits, argument validation, deny rules — then deploy with Intercept.

postgres.yaml
version: "1"
description: "Policy for modelcontextprotocol/server-postgres"
default: "allow"
tools:
    query:
        rules: []

RELATED POLICIES

FREQUENTLY ASKED QUESTIONS

What tools does the PostgreSQL MCP server expose?

The PostgreSQL MCP Server exposes 1 tools across 1 categories: Read. Each tool can be individually controlled with Intercept policies.

How do I enforce policies on PostgreSQL?

Download the policy scaffold, add rules (rate limits, argument validation, deny rules), then run Intercept as a proxy in front of the PostgreSQL MCP server. Every tool call is evaluated against your YAML policy before execution.

Is the PostgreSQL policy free to use?

Yes. All Intercept policies are open source under the Apache 2.0 licence. Download, modify, and deploy without restrictions.

ENFORCE POLICIES ON POSTGRESQL

Open source. One binary. Zero dependencies.