Can an AI agent's PostgreSQL MCP server be locked down to read-only use?
The answer depends on which server is in use. Postgres MCP Pro, the community project, offers a restricted mode that limits operations to read-only transactions and adds an execution time constraint. The Supabase MCP server offers a read_only parameter. The Azure MCP Server does not document a read-only switch for the whole server; instead, it annotates each tool, so the query tool is marked read only and not destructive while the set server parameter tool is marked destructive and not read only. Before assessing any of these, the review must name the server, its version and the transport in use, because each one exposes different tools and different controls.
The switches are not equal in strength. Postgres MCP Pro's README points out that PostgreSQL cannot place a session in read-only mode, so the server enforces read-only SQL on top of a read-write connection, and that a model could work around a plain read-only transaction by issuing ROLLBACK and starting a new one. That makes the database role the control that matters most: ask the team to confirm that the connection role holds only the privileges the agent needs, with no write grants, no DDL rights and no ownership of schemas. A read-only flag in the MCP server is a useful second layer, not the only one. Supabase's own documentation says its destructive SQL confirmations may not catch every destructive operation and are not a security guarantee, so treat them the same way.
Read-only, scoping and confirmation controls by PostgreSQL MCP server
This table compares the documented read-only, scoping, confirmation and result-limit controls in three PostgreSQL MCP servers, one community and two vendor-built. Read each row as a question to put to the vendor, and treat any cell marked to confirm as an open item for your review. The main takeaway is that the switches differ by server, so the review must name the server in use before it accepts any of them as a control.
| Control | Postgres MCP Pro (community) | Azure MCP Server PostgreSQL tools (Microsoft) | Supabase MCP server (Supabase) |
|---|---|---|---|
| Read-only mode | Restricted mode limits operations to read-only transactions. Default unrestricted mode is not read-only. | Query tool is annotated read only. Confirm whether the server enforces this at the database level. | The read_only parameter runs the server in read-only mode. |
| Execution time limit | Restricted mode applies an execution time constraint. Confirm the default value. | To confirm. Not stated in the documentation reviewed. | To confirm. Not stated in the documentation reviewed. |
| Project or resource scoping | To confirm. Scope depends on the database role and connection string supplied. | Operates on Azure Database for PostgreSQL resources. Confirm how subscriptions and resource groups are limited. | The project_ref parameter scopes the server to one project and disables account tools such as list_projects and create_project. |
| Destructive confirmations | To confirm. No confirmation step is documented in the README reviewed. | Set server parameter tool is annotated destructive. Confirm whether the client prompts before it runs. | Destructive SQL confirmations exist, but Supabase states they are not a security guarantee and may miss some operations. |
| Tool annotations | To confirm. Check the tool list the server exposes in your client. | Query tool is annotated read only and not destructive. Set server parameter tool is annotated destructive and not read only. | To confirm. Check the tool list the server exposes in your client. |
| Result caps | To confirm. Check the README and tool output limits for your version. | List tool caps results at 10,000 entries when listing databases or tables on large servers. | To confirm. Check the tool output limits in the Supabase documentation. |
| Writes and DDL possible | Yes in default unrestricted mode, including DDL. Restricted mode blocks writes, but a database role should still enforce it. | Yes through the set server parameter tool. Query tool is annotated read only. | Yes. The execute_sql and apply_migration tools can change data and schema unless read-only mode is set. |
Where a PostgreSQL MCP server actually enforces read and write limits
Read and write limits on a PostgreSQL MCP server are enforced in three places, and only one of them is fully under your control. The first is the database role and connection the server holds, which decides what PostgreSQL itself will allow. The second is the server's own SQL filtering, such as the restricted mode in Postgres MCP Pro that accepts only read-only statements. The third is the tool layer, where metadata such as read-only or destructive annotations and confirmation prompts sit. Tool annotations and confirmations tell the client and the user what a call is expected to do, but they do not stop a call. Before approving any server, ask the vendor or project which of these layers it implements and which it only describes.
The Postgres MCP Pro README states that PostgreSQL has no way to place a session in read-only mode, so the server enforces read-only SQL on top of a read-write connection. It also warns that an LLM could get around a plain read-only transaction by issuing ROLLBACK and starting a new transaction. The practical consequence is that a server-side read-only check is a useful filter but not a boundary. Anything the database role is allowed to change can still be changed if the filter is bypassed, whether through a model error, a crafted prompt or a server defect.
That is why the database role is the control your organization must own. Create a dedicated login for the agent, grant it only the schemas and tables it needs, and withhold INSERT, UPDATE, DELETE, and DDL rights unless a documented use case requires them. Confirm that the role cannot own objects or alter other roles. Then check which credentials the server reads from its configuration and where those credentials are stored. A reviewer should be able to point to the role's grants in the database catalog and see that they match the approved scope, independent of anything the MCP server says it does.
Which PostgreSQL MCP tools carry the most risk
Postgres MCP servers differ in tools, but the risky ones cluster in a few places: SQL that changes data or schema, tools that change server settings, and tools that reveal what exists. Each card names the control that limits the risk and the source to check, so you can confirm which server and mode your team is actually running.
Arbitrary SQL with writes and DDL
In Postgres MCP Pro, the default unrestricted mode runs arbitrary SQL, including writes and DDL, against data and schema. The control is restricted mode, which limits operations to read-only transactions and applies an execution time constraint, and the README recommends it unless the agent must write. Confirm which mode is set in your configuration. Note that PostgreSQL cannot place a session in read-only mode, so the server enforces read-only SQL on top of a read-write connection. A plain read-only transaction is not enough, because the README notes an LLM could issue ROLLBACK and start a new transaction. Pair restricted mode with a database role that has only the privileges the agent needs.
Postgres MCP Pro READMESchema and migration tools
Tools such as apply_migration, which Supabase documents for its hosted server, can change schema and push DDL, not just query rows. A migration applied by an agent can drop columns or tables that other services depend on. Supabase offers a read_only parameter and a project_ref scope, and it describes its destructive SQL confirmations as a guardrail that may not catch every destructive operation and not as a security guarantee. Treat confirmations as a speed bump. Ask whether migration tools are exposed at all, and keep write-capable tools off for agents that only need to answer questions.
Supabase MCP docsServer parameter changes
The Azure MCP Server's set server parameter tool for Azure Database for PostgreSQL is annotated destructive and not read only, while its query tool is annotated read only and not destructive. That split matters: a change to a server setting affects every database on the instance and does not appear as a data write. Review the tool list for your Azure deployment, and remove or restrict the set tool for agents that only need data access. Use Azure role assignments to limit who can change server configuration, and confirm the tool annotations in the current Microsoft Learn page before approving the rollout.
Azure PostgreSQL toolsListing tools that expose structure
List tools return database and table names, which can reveal business structure, customer segments or internal naming to an agent and to anyone who reads its transcripts. The Azure MCP Server caps list results at 10,000 entries on large servers, so a cap limits volume but does not limit visibility. Decide which schemas the agent should see, and create the role used by the MCP connection so that it cannot read or list objects outside them. Check where tool output is stored in your AI client's logs.
Large result sets
Queries that return whole tables move customer records and other regulated data into the model context and then into the client's logs and history. Restricted mode's execution time limit bounds how long a query runs, but it does not bound how many rows come back. Ask the vendor whether the server caps rows returned by query tools, and add row limits or column masking in the database itself, for example through views that exclude sensitive fields. Confirm which data classes may enter an AI client before you grant read access to production tables.
Index and configuration recommendations
Postgres MCP Pro's performance features, including index tuning, query plan review and database health checks, produce recommendations that engineers may apply directly. A suggested index build can lock or slow a busy production table, and a configuration change suggested by an agent can alter behavior across the cluster. Keep recommendation tools separate from the execution path, and require a human to review and run any index or configuration change in a change-management process. Confirm the README's current list of features before writing this into your approval conditions.
Postgres MCP Pro READMEHow the lockdown differs for analytics, development and production databases
Analytics use usually needs queries against reporting tables and no writes. The safest pattern is to pick a server and mode that enforce read-only behavior, then make the database role enforce the same rule, so the protection does not depend on one layer.
- Mode: Run Postgres MCP Pro in restricted mode, which limits operations to read-only transactions and applies an execution time constraint. Treat this as a guardrail on top of the database, not as the only control.
- Database role: Connect with a role that holds SELECT on the reporting schemas and no write, DDL or ownership privileges. PostgreSQL has no session-level read-only setting that the server can rely on alone, and an LLM can issue ROLLBACK and start a new transaction, so the role is the control that holds.
- Schema scope: Grant access to named analytics schemas only. Table listings and query plans then do not expose operational tables or tables holding personal data.
- Connection target: Point the server at a read replica or reporting copy where stale data is acceptable, so a long-running agent query does not load the primary database.
- Verification: Ask the agent to run an INSERT or UPDATE in a test session and confirm that the database rejects it.
Before approval, confirm that the role, not the tool setting, is what blocks writes, and record the result of the failed write test.
Development databases are where agents are most often allowed to change data, for example during migrations, fixture changes or index experiments. Writes are acceptable there when the database itself limits how much damage one session can do, and when a damaged database can be rebuilt.
- Mode choice: Unrestricted mode in Postgres MCP Pro runs arbitrary SQL, including writes and DDL, by default. Use it only on disposable databases, and switch to restricted mode for sessions that do not need to write.
- Separate role: Give the agent a development role that owns a scratch schema only. Keep it apart from the role that owns shared fixtures or migration history, so one bad statement cannot drop shared objects.
- Azure tool split: In the Azure MCP Server docs, the set server parameter tool is annotated destructive and not read only, while the query tool is annotated read only. Decide whether agents may change server settings at all, and leave that tool out of the allowed set if the answer is no.
- Supabase scoping: Scope the Supabase MCP server to one development project with the project_ref parameter, and set read_only when writes are not needed. Scoping also disables account tools such as list_projects and create_project.
- Rebuild path: Keep a documented restore or reseed process so a damaged development database can be recreated without manual repair.
Before approval, confirm that the development role cannot reach production hosts or production credentials, and do not treat destructive SQL confirmations as the protection for writes.
For production and regulated databases, the default should be no direct agent connection to live tables. If the business approves access, it should be read-only, narrowly scoped, reachable only through an approved network path and recorded, with schema and configuration changes kept in the existing change process.
- Server and mode: Name the exact server in the risk review, because Postgres MCP Pro, the Azure MCP Server and the Supabase server have different controls. Allow read-only modes only, and do not rely on the Azure query tool's read-only annotation as a security control.
- Role design: Use a dedicated read-only role limited to approved tables and columns. Restrict personal or regulated fields at the database level, so the agent cannot read them even when a query asks for them.
- Change path: Keep schema and parameter changes inside migrations and change tickets, outside the agent's reach. Leave DDL and set-parameter tools disabled.
- Confirmations: Do not treat destructive SQL confirmations as a security control. Supabase documents them as a guardrail that may not catch every destructive operation and as not a security guarantee.
- Logging and result size: Confirm what database and server logs record for agent sessions. The Azure MCP Server caps list results at 10,000 entries on large servers, which limits bulk listing but does not limit reads of individual rows.
Before approval, ask the database owner and the vendor how each control is enforced, and review a failed write attempt in the audit trail.
Order of work before an agent connects to a production database
This sequence lets a security and platform team confirm which server is in use, limit what the database role can do, pick a mode, prove writes fail, and keep evidence that stays valid after upgrades. Each step closes with a check the reviewer can record.
Name the server, vendor and version in use
The platform owner records which MCP server the agent will run, such as the community Postgres MCP Pro project, the Azure MCP Server tools for Azure Database for PostgreSQL, or the Supabase hosted server. Each one has different controls, so the review must name it first. The owner also records the exact version or release, the transport, and where the server process runs. The step is done when the reviewer can point to one named server and version in the change ticket.
Create a database role with minimum grants
The database administrator creates a dedicated login for the agent instead of reusing an application or administrator account. The role receives only the schemas, tables and privileges the agent needs, and no ownership of objects or rights to create roles or databases. Because the MCP server runs on a read-write connection, the database grants are the last barrier if the server's own checks are bypassed. The step is done when a catalog review shows the role holds no privileges beyond the agreed list.
Choose the access mode and scope
The owner selects the control that matches the server in use: restricted mode in Postgres MCP Pro, the read_only parameter and project_ref scoping in the Supabase server, or the read-only annotations and tool selection in the Azure server. Postgres MCP Pro documents that its default unrestricted mode runs writes and DDL, so restricted mode is the documented choice unless writes are needed. The step is done when the chosen setting is recorded with the reason and the person who approved it.
Test that writes and schema changes fail
A tester runs a controlled set of write, delete and DDL attempts through the agent against a non-production copy, then checks the database state. The test should also include a read-only transaction attempt, since the Postgres MCP Pro README notes that an LLM could issue ROLLBACK and start a new transaction. Confirmed failures and unchanged data are the expected output. Any change that succeeds sends the setup back to the mode choice or the role grants. The step is done when the test record shows each attempt and its result.
Review destructive tool exposure
The reviewer lists every tool the server exposes and marks those that change configuration, run arbitrary SQL, or apply migrations. For example, the Azure server annotates its set server parameter tool as destructive, and Supabase documents apply_migration and execute_sql. Tools that are not needed are disabled or excluded in the client allowlist. Supabase also notes that its destructive SQL confirmations are a guardrail, not a security guarantee, so reliance on confirmation prompts alone should be recorded as a residual risk. The step is done when each risky tool has a recorded decision.
Confirm database-side logging
The database administrator confirms that statement or connection logging on the PostgreSQL server captures sessions that use the agent's role, and that logs are shipped to the team's central store with a retention period the policy requires. The reviewer should not rely only on the MCP client's own logs, since those may not show what reached the database. The step is done when a test query from the agent appears in the database logs under the agent's role name.
Retest after every upgrade
The owner repeats the write, DDL and tool exposure tests whenever the MCP server version, the client, or the database role changes. Vendor releases can add tools or change defaults, so a previous approval does not carry forward automatically. The owner keeps the test record, the role catalog and the log sample together so an auditor can trace each approval to the version it covered. The step is done when the retest is signed off against the new version number.
How the lockdown layers stack for one agent connection
The path starts at the agent's MCP client, which launches or connects to one chosen PostgreSQL MCP server. In Postgres MCP Pro, the mode switch decides whether SQL runs unrestricted or through the server's read-only enforcement, and that enforcement sits on top of a read-write connection. The database role and the connection string set the ceiling for what any query can do. Confirmations apply only where a server provides them, and they are guardrails, not security boundaries. Check each hand-off: a plain read-only transaction can be bypassed by an LLM issuing ROLLBACK, so the database role is the control that must hold.
Each layer an agent query passes through, and where a bypass can occur.
Where documented switches leave gaps a reviewer must cover
Read-only modes, project scoping and destructive-SQL confirmations reduce what a Postgres MCP server can do, but each one has a limit. The cards below cover the gaps a reviewer should close outside the MCP server itself, mainly with database roles, network controls and logging on the PostgreSQL side.
No session-level read-only in PostgreSQL
PostgreSQL has no way to place a whole session in read-only mode, so Postgres MCP Pro enforces read-only SQL on top of a read-write connection. Its README warns that an LLM could work around a plain read-only transaction by issuing ROLLBACK and starting a new one. Cover this with a database role that has only the privileges the agent needs (for example, SELECT on named schemas) so the restriction holds even if the application-layer check fails. Check the role grants directly in the database, not only the server's settings.
Postgres MCP Pro READMEDestructive SQL confirmations are not a guarantee
Supabase states that its destructive SQL confirmations are a guardrail that may not catch every destructive operation and are not a security guarantee. A confirmation prompt depends on the server recognizing the statement as destructive, so treat it as a speed bump for human error, not a control against an agent. Pair it with a role that cannot run DDL or DELETE on production tables, and with migration review in your normal change process. Ask the vendor which statement types the check covers.
Supabase MCP docsTool annotations versus enforced behavior
Azure MCP Server annotates its query tool as read only and not destructive, and its set server parameter tool as destructive and not read only. These annotations tell the client how a tool is described, but they are not a database permission. A reviewer should confirm what the database role actually allows and test the tools against a non-production copy to see which operations succeed. Record the tool annotations in the review file so that a later server update that changes them is noticed.
Azure MCP PostgreSQL toolsCommunity maintenance and review burden
Postgres MCP Pro is a community open source project, not a server from the PostgreSQL project. Your team owns the review of each release, the dependency tree, and the decision to upgrade. Pin a reviewed version, read the changelog for changes to access modes and SQL handling, and run your own tests before each upgrade. Ask whether the project has a security contact and how it handles reported vulnerabilities, since a vendor-built server does not carry that burden for you.
Postgres MCP Pro on GitHubNo per-user attribution at the database
A Postgres MCP server usually connects with one shared database role, so the database log shows the server's role rather than the person who asked the agent for a query. Cover this with a separate role per team or environment, PostgreSQL logging of statements and connections on the server, and session metadata such as application_name set by the client where your setup supports it. Confirm with the vendor whether the server passes through the caller's identity or only uses a service credential, and record which one your deployment uses.
Network path and credential exposure
Switches inside the MCP server do not limit where the connection can reach. Place the database behind network controls that allow only the MCP host's address and the required port, and keep the connection string in a secrets manager rather than in client configuration files that developers share. For hosted servers, confirm which network path the vendor uses and whether it connects from fixed addresses you can allowlist. Test that a connection from an unapproved host is refused.
Which server, which mode and which database role to decide before rollout
Four decisions set the blast radius of a Postgres MCP connection before any prompt is written: which server you run, which mode it runs in, what account it connects as, and where its logs land. Start with the server, because the answer changes every control that follows. Postgres MCP Pro is a community open source project, not a server from the PostgreSQL project, and its tools cover health checks, index tuning, query plan review and safe SQL execution. The Azure MCP Server is Microsoft's vendor option, but its PostgreSQL tools manage Azure Database for PostgreSQL resources, so it targets the Azure control plane rather than the SQL running inside your database. Supabase's hosted server is vendor-built for Supabase projects and exposes tools such as execute_sql, apply_migration and list_tables. Name the exact server in the review file, since the controls differ.
Next, choose the mode and the scope. Postgres MCP Pro's default unrestricted mode runs arbitrary SQL, including writes and DDL, and its README recommends restricted mode unless the agent must write. Supabase's server can be set to read-only with the read_only parameter and limited to one project with project_ref, which also removes account tools such as list_projects and create_project. Those are the switches to put in the configuration under review. Treat the database role as the control you can rely on most. PostgreSQL offers no session-level read-only setting, and the Postgres MCP Pro README warns that an LLM could work around a plain read-only transaction by issuing ROLLBACK and starting a new one. Give the connection a role with only the grants the use case needs, and confirm with the database owner which schemas, tables and sequences that role can reach.
Last, decide where evidence lives. Ask each vendor where tool calls, SQL text and errors are recorded, who can read those records, and how long they are kept, and confirm the answers in the vendor documentation or your own test environment rather than assuming them. Record the server version, mode, project_ref or equivalent scope and role name in your change ticket, so a reviewer can tell later exactly what an agent could reach. Each additional server, mode or shared role widens the review you must do, so keep the list short.
Evidence a security reviewer asks for before approving a PostgreSQL MCP server
This table lists the controls a reviewer should see documented before approving a PostgreSQL MCP server, along with where each piece of evidence normally comes from. Use it to decide which server is in use, which mode it runs in, and which items must be confirmed in your own environment. Controls marked as items to confirm are not documented in the sources reviewed here, so ask the vendor or test them directly.
| Control | What the reviewer asks to see | Where the evidence comes from |
|---|---|---|
| Server identity | Which MCP server, publisher and version is in use, and whether it is vendor-built or community | Server config, package source and repository record for the deployed version |
| Access mode | Whether Postgres MCP Pro runs in restricted mode (read-only transactions with an execution time limit) or unrestricted mode | Server config and launch parameters, as described in the Postgres MCP Pro README |
| Database role grants | A dedicated database role with only the schema and table privileges the agent needs, since read-only SQL checks are applied on top of a read-write connection | Database role grants and the connection string the server uses, checked with the database's own privilege views |
| Tool annotation list | The tools exposed, marked read-only or destructive, and which ones are disabled or never granted | Tool annotation list in the vendor docs, such as the Azure MCP Server query and set server parameter tool annotations, plus the server's own tool list at runtime |
| Scoping and disabled tools | Project or database scope, and proof that account-level tools are off (for example Supabase read_only and project_ref settings) | Server config keys and vendor docs for the specific server |
| Destructive operation guardrails | Whether confirmations are enabled and that the team does not treat them as a security control | Vendor docs on destructive SQL confirmations, which state they may not catch every destructive operation |
| Database audit log | Logs showing which statements the agent ran, under which role, and when, including any blocked attempts | PostgreSQL logging settings and the server's own logs; confirm which statements are captured in your environment |
| Change record | A written approval for any write or schema-change capability, with the owner, scope and rollback plan | Internal change tickets and migration records; item to confirm the process with your change board |
Questions buyers ask before approving a PostgreSQL MCP server
Is restricted mode enough for a production PostgreSQL database?
Restricted mode is a meaningful control, but it is not a complete one. Postgres MCP Pro's README says restricted mode limits operations to read-only transactions and applies an execution time constraint, and it recommends that mode unless the agent needs to write. The same README notes that PostgreSQL cannot place a session in read-only mode, so the server enforces read-only SQL on top of a read-write connection, and that an LLM could work around a plain read-only transaction by issuing ROLLBACK and starting a new one. Treat restricted mode as one layer. Pair it with a database role that holds only the privileges the agent needs, and confirm with the vendor how the server handles SQL it does not parse as read-only.
What does a PostgreSQL MCP lockdown review cost?
No price is supplied for this work, and DeployOpen does not publish one. The cost follows from the written scope, which typically depends on three drivers: the number of MCP servers in use (Postgres MCP Pro, the Azure MCP Server and the Supabase server each have different controls), the number of databases and schemas the agent can reach, and whether the review covers only configuration or also includes testing of prompt injection and tool misuse. Ask for a fixed-scope quote that lists each server, each database, the access modes to be tested and the deliverables, including any retest. Ask whether a retainer is needed for later upgrades.
What does the client need to provide before a lockdown review starts?
The client should provide a written inventory before work starts. Include which PostgreSQL MCP server is in use and its version, whether it runs locally or hosted, the connection strings and database roles the agent will use (not the passwords themselves), the list of databases and schemas in scope, and the AI clients that will connect. Also provide the intended use case, such as read-only analysis or schema changes, and any data classification rules for tables containing personal or regulated data. Access to a non-production copy of the database is useful for testing write paths safely.
Can our own platform team configure a PostgreSQL MCP server without outside help?
Often yes for a single read-only deployment, provided the team can verify the controls rather than assume them. The main switches are documented by the vendors: Postgres MCP Pro's access mode setting, Supabase's read_only and project_ref parameters, and the Azure MCP Server's tool annotations. The harder work is proving the result, meaning confirming which tools are exposed, testing that writes and DDL are blocked under the chosen role, and checking what is logged. Teams without database security experience often benefit from an independent test. Decide this against your own staff and your change control requirements.
How do upgrades to a PostgreSQL MCP server change its controls?
Upgrades can add tools, change defaults or alter how access modes behave, so each upgrade needs a short review. Postgres MCP Pro documents an unrestricted default mode, which means a new deployment or a changed configuration can silently widen access if the setting is not pinned. Ask each vendor for its release notes and whether it publishes security advisories, then re-check the tool list and access mode after every version change. For self-hosted community servers, record the pinned version and the configuration file so the baseline is reproducible. A retainer for continuous testing can cover this cycle.
Is a read-only database role alone enough to stop an agent from changing data?
A read-only database role is the strongest single control, but it works best alongside the server's own switches and is not sufficient on its own if the role has broader grants than needed. Grant the role only SELECT on the required schemas, and confirm it cannot create, alter or drop objects, run in a way that writes through functions, or reach other databases. The server-level control matters too, because a read-only role still lets an agent read every column it can see, so sensitive columns need separate handling. Ask the vendor which tools call SQL directly and whether any bypass the role. Test the result with the exact role the agent will use.
Primary sources to check each Postgres MCP claim against
Before approving any PostgreSQL MCP server, a reviewer should read the primary documentation for the exact server in use, because each one exposes different tools and controls. Start with the README of the community Postgres MCP Pro project, which is the place to confirm its two access modes, its default unrestricted behavior and the note that PostgreSQL cannot place a session in read-only mode. Read the crystaldba/postgres-mcp repository against the version your team installs, since defaults and mode names can change between releases.
For Microsoft, the relevant page covers the PostgreSQL tools in the Azure MCP Server, which manage Azure Database for PostgreSQL resources. Check the tool annotations on that page: the query tool is marked read only and not destructive, while the set server parameter tool is marked destructive and not read only. Confirm the 10,000-entry cap on list results for large servers and confirm how the server authenticates to Azure in your tenant. Use the Azure MCP Server PostgreSQL tools page as the reference for that server only.
For Supabase, read the Supabase MCP Server guide to confirm the read_only and project_ref parameters, the effect of scoping to one project on account management tools, and the status of destructive SQL confirmations. The guide describes those confirmations as a guardrail rather than a security guarantee, so treat them as a secondary control. Record the exact tool list and parameters your Supabase configuration exposes, and note the date you reviewed them, since vendor docs change.
How DeployOpen works on this
DeployOpen approaches Postgres MCP security by first confirming which server is in use, then testing what it can read and change and how it is locked down. The work runs inside the client's own infrastructure, with findings, fixes and a retest delivered in writing.
How we scope
- We confirm which server is in use, such as Postgres MCP Pro, the Azure MCP Server or the Supabase MCP server, before any risk assessment begins.
- The written scope lists the database roles, tools, access modes and clients to be tested, and states what is excluded.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. No prices are listed; a quote follows from the scope.
How we build
- We test the restricted and unrestricted modes, checking whether write and DDL statements can reach the database under each setting.
- We review database role permissions, connection credentials and how the client handles them, including whether the agent sees secrets.
- We check the documented switches, such as read-only modes, project scoping and destructive-statement confirmations, and test whether they hold under adversarial prompts.
How we hand over
- The findings report describes each risky tool, the evidence behind it, and the fix recommended for the client's configuration.
- We document the lockdown settings, role grants and logging the client should keep, so its security team can review them directly.
- A retest follows the fixes to confirm that the agreed read and write limits now hold in the client's environment.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, useful when the MCP server or its tools change.
- We can re-test after a server upgrade, a new tool release or a change to the database schema or role model.
- Confirm with us in the scope which evidence your auditors need, since DeployOpen prepares that evidence but does not issue audit reports.

