Postgres MCP server authentication: does your server meet the SSO requirement?
Whether a PostgreSQL MCP server meets an SSO requirement depends on which server is in use. Microsoft's Azure MCP Server defaults to Microsoft Entra for its PostgreSQL tools through the Auth type parameter, which also accepts PostgreSQL for password-based access. Supabase's hosted server signs the user in through a browser login to a Supabase account, where the user grants the MCP client access to an organization, and no personal access token is needed. Postgres MCP Pro, the community open source server, documents no SSO or OAuth sign-in at all. Its access is controlled by the database connection it is given and its access mode flag.
The review therefore has to name the server before it assesses authentication. Postgres MCP Pro and the Azure MCP Server are different products with different controls, and a finding that applies to one does not carry over to the other. For the Azure MCP Server, confirm that the Auth type is set to MicrosoftEntra in every client configuration, because each query call also needs user, server, database and query parameters, which means database-level identity applies per call. For Supabase, check whether the project was selected during setup, since the documentation says that leaving no project selected exposes all projects in the organization.
For Postgres MCP Pro, SSO is not available as a control, so the requirement has to be met at the database layer: a dedicated role with the least privilege needed, credentials held outside the agent's configuration, and the access mode set to read-only unless writes are approved. Ask the team to show which role the server connects with and who holds its password. Confirm with the community maintainers or your own testing whether any sign-in layer exists before the server is exposed beyond a local process, since the documented SSE transport includes an allowed-hosts setting that should be reviewed.
Authentication and exposure by server
This table compares how Postgres MCP Pro, the Azure MCP Server PostgreSQL tools and Supabase's hosted server are built, how each one signs in and how each exposes its network path. Read each row against the server your team actually runs, because the controls differ between them. The main takeaway is that the Microsoft and Supabase options document a sign-in flow, while Postgres MCP Pro relies on the database credentials and access mode you configure.
| Control | Postgres MCP Pro (community) | Azure MCP Server PostgreSQL tools (Microsoft) | Supabase hosted MCP server (Supabase) |
|---|---|---|---|
| Who builds it | Community open source project, not from the PostgreSQL project | Built by Microsoft and documented on Microsoft Learn | Built by Supabase for Supabase projects |
| How it is installed | Docker image (crystaldba/postgres-mcp) or Python package, run by your team | Part of the Azure MCP Server, which manages Azure Database for PostgreSQL resources | Hosted by Supabase; connected from the MCP client, no local package named in the docs |
| Sign-in method | Database connection credentials; README describes no SSO or OAuth sign-in | Auth type MicrosoftEntra by default, or PostgreSQL with a password | Browser login to a Supabase account; no personal access token needed |
| Identity applied per call | Set once by the database connection and access mode flag | Query tool requires user, server, database and auth type on each call | Account grants the MCP client access to an organization, then project selection |
| Network exposure | SSE transport with an allowed-hosts setting; confirm where the server runs | Confirm the network path and private connectivity options with Microsoft for your tenant | Remote endpoint operated by Supabase; confirm allowed clients and egress with Supabase |
| Scope of access | Limited to the database user and access mode you configure | Limited to the server and database named in each call | All projects in the organization unless one project is selected during setup |
| Commercial terms | Open source; confirm licensing and support terms in your own review | Confirm licensing and plan requirements for Azure services with Microsoft | Confirm which Supabase plans include the hosted server with Supabase |
Which PostgreSQL MCP servers come from a vendor
Start by naming the exact server in use, because a vendor-built server and a community project are different products with different owners, controls and support paths. Microsoft documents PostgreSQL tools inside the Azure MCP Server, and those tools manage Azure Database for PostgreSQL resources, so Microsoft is the vendor for that option. Supabase documents its own hosted server at mcp.supabase.com for Supabase projects, so Supabase is the vendor for that option. Postgres MCP Pro (crystaldba/postgres-mcp) is a community open source server. It is not published by the PostgreSQL project, and it runs as a Docker image or a Python package in the environment you control. Record the server name, the package or image tag, and the version you deploy before any risk assessment starts, since controls differ between these products.
Treat each vendor's own documentation as the source for its controls, and check them against the version you plan to roll out. The Azure MCP Server's PostgreSQL query tool requires user, server, database, query and auth type parameters, and its Auth type accepts MicrosoftEntra or PostgreSQL, with MicrosoftEntra as the default, so confirm which value your team will allow and who sets it. Supabase's hosted server signs in through a browser login to a Supabase account and needs no personal access token, but if no project is selected during setup, all projects in the organization are accessible. Postgres MCP Pro's README does not describe SSO or OAuth sign-in, so access there depends on the database connection it is given and its access mode flag. Confirm with your security team how each of these will be authenticated before approving the tool.
Decisions to make before choosing a Postgres MCP server
Most of the risk in a Postgres MCP rollout comes from a few early choices: which server you run, how it signs in, which database role it uses, and how far it reaches. Each card below names one decision and what it changes, so the review can record the server in use before assessing it.
Whether Entra sign-in is required
If staff must sign in with their Microsoft Entra identity and database access must be attributed to each user, the Azure MCP Server is the vendor-built option to check first. Its PostgreSQL tools default to MicrosoftEntra as the auth type, and the alternative is PostgreSQL password authentication. Confirm which auth type each client sends and whether passwords are ever supplied, since the query tool accepts an optional password.
Azure PostgreSQL toolsWhether a Supabase-only setup is in use
If all target databases are Supabase projects, the hosted Supabase server is the vendor option, and sign-in uses a browser login to a Supabase account with no personal access token. The decision that matters is scope: if no project is selected, every project in the organization is reachable. Its tools include execute_sql and apply_migration, so a review should confirm the project scope and whether write tools are exposed to the client.
Supabase MCP docsWhich database role the agent connects with
For Postgres MCP Pro, access is controlled by the database connection it is given and its access mode flag, not by SSO or OAuth. The role therefore sets the ceiling on what the agent can read and change, regardless of what the server exposes. Ask the owning team for a dedicated role with only the privileges the use case needs, and confirm that the role cannot write to tables the agent does not need.
Postgres MCP Pro READMEScoping to one project or one database
Scope decides how many systems one credential can touch. A connection string for a single database limits the community server to that database, while a broad connection or an organization-wide vendor login widens the blast radius. Record the exact database or project that each agent may reach, and review it when staff move between teams.
Network exposure for SSE or HTTP transports
Postgres MCP Pro offers an SSE transport with an allowed-hosts setting, which means the server can listen on a network address instead of only on the local machine. Confirm who can reach that listener, which hosts appear in the allowed list, and whether the endpoint sits behind your network controls. A local stdio setup avoids this exposure but moves the question to each developer machine.
Postgres MCP Pro transportsWhere statement logs are kept
Audit value depends on whether statements the agent runs are recorded and where those records live. Neither the database role nor the MCP client guarantees a complete trail, so ask the platform team to enable statement logging on the database, route logs to a store the security team controls, and set a retention period. Confirm how each vendor server records activity before relying on it for attribution.
How the answer changes by identity provider and database
If your databases are Azure Database for PostgreSQL and your staff sign in with Microsoft Entra ID, the vendor-built Azure MCP Server is the natural starting point. Its PostgreSQL tools take an Auth type parameter that accepts MicrosoftEntra or PostgreSQL, and MicrosoftEntra is the default, so database access is tied to an identity rather than a shared password. Each query call still names the user, server, database and query, which means database-level roles decide what the agent can do.
- Auth path: Confirm that the Auth type is set to MicrosoftEntra and that the database role used for the call has only the permissions the use case needs.
- Password fallback: The PostgreSQL auth type and a password parameter remain available, so confirm whether a policy blocks that option for agent use.
- Server scope: Confirm which Azure subscriptions and resource groups the server's identity can reach before it is connected.
- Network path: Confirm private endpoint or firewall rules, since the server reaches the database over the network path your platform team allows.
- Outside the server: Build conditional access, role assignment reviews, and logging of database sessions in your own Azure and database tooling.
Check which server is in use before assessing risk, because the Azure MCP Server and community Postgres MCP Pro have different controls.
If your PostgreSQL runs on Supabase, the vendor-hosted server at mcp.supabase.com is built for Supabase projects and exposes tools such as execute_sql, apply_migration and list_tables. Sign-in is a browser login to a Supabase account, where the user grants the MCP client access to an organization, and no personal access token is needed. The main setup risk is scope: if no project is selected during configuration, every project in the organization is accessible.
- Project scoping: Select a single project during setup and record that choice in your rollout standard, because omitting it widens access to the whole organization.
- Write tools: Review apply_migration and execute_sql before developers connect, since they can change schema and data.
- Sign-in control: Confirm who in your Supabase organization can grant MCP client access and who holds the owner role.
- Environment separation: Confirm that the connected project is a development or staging project, not production, unless a change process applies.
- Outside the server: Build review of migrations, data export controls and organization membership checks in your own change management and identity processes.
Verify the scoping and write behavior against the current Supabase documentation before approving the connection.
If your PostgreSQL runs on servers or containers you operate, the most documented community option is Postgres MCP Pro (crystaldba/postgres-mcp). It is a community open source project, distributed as a Docker image and a Python package, and it is not from the PostgreSQL project. Its README describes configurable read and write access, and access is controlled by the database connection it is given and its access mode flag. The README does not describe SSO or OAuth sign-in, so identity has to be enforced at the database layer and in how the server is run.
- Database identity: Create a dedicated database role for the agent with only the grants it needs, and do not reuse administrator or application credentials.
- Access mode: Start in the most restrictive access mode the README offers and confirm the setting in the deployed configuration.
- Transport and hosts: If you use the SSE transport, confirm the allowed-hosts setting and keep the endpoint off public networks.
- Secrets handling: Store the connection string in your secrets manager and confirm it is not written to shared config files or logs.
- Outside the server: Build SSO for staff access to the host, network segmentation, database audit logging, and a patch process for the community project, since you own its upgrades.
Confirm the current README and release notes before approving a version.
If your databases sit in an air-gapped network or a data center with no outbound internet access, neither vendor-hosted option applies, because the Azure MCP Server and the Supabase server both depend on connections to their vendors' services. A self-hosted community server, such as Postgres MCP Pro, can run inside your boundary, but you must source, verify and maintain its images and packages through your own internal channels. The sign-in model is then your responsibility, since the community README does not describe SSO or OAuth.
- Build and provenance: Mirror the container image or Python package into your internal registry and verify it against your own review before deployment.
- Network controls: Confirm that the server can reach only the database hosts it needs, and that no egress path exists for model traffic that leaves the boundary.
- Authentication: Use database roles tied to named service accounts, and confirm how staff reach the agent host through your existing directory.
- Logging: Route database session and query logs to your internal SIEM, since the server does not provide a central audit trail.
- Outside the server: Build the approval workflow, access reviews and incident response for agent actions in your own security program.
Ask the vendor or project maintainers which network calls the server makes at runtime before approving it for a restricted zone.
How an agent reaches PostgreSQL through each path
The diagram starts at the AI client, which connects to one of three MCP servers chosen at setup: Azure MCP Server, the Supabase hosted server or Postgres MCP Pro. Each path passes through a different identity step before reaching the PostgreSQL target. Azure uses a Microsoft Entra token by default or a database password, Supabase uses a browser login to a Supabase account, and Postgres MCP Pro relies on the database connection it is given. Reviewers should first confirm which server is in use, then check which identity the database actually sees.
Three MCP paths, each with a different identity step before the database.
Order of work for a managed Postgres MCP rollout
This sequence lets a security or platform team approve one named PostgreSQL MCP server with a known authentication path, a scoped database identity, and logs that show what the agent did. Each step closes with a check the reviewer can record before the next step begins.
Name the server and its version
The platform owner records which PostgreSQL MCP server is in use, such as Postgres MCP Pro (community, distributed as a Docker image and Python package), the Azure MCP Server (Microsoft), or Supabase's hosted server (Supabase). Because these are different products with different controls, the review file should name the exact server, the version or image tag being deployed, and whether it is vendor-built or a community project. The step is done when the reviewer can point to one named server and one version in the approval record.
Confirm the authentication path in vendor docs
The security reviewer reads the current vendor documentation for the chosen server and records how the agent proves its identity. The Azure MCP Server's PostgreSQL tools default to Microsoft Entra authentication and also accept PostgreSQL authentication. Supabase's hosted server uses a browser login to a Supabase account with no personal access token. Postgres MCP Pro documents no SSO or OAuth sign-in, so access depends on the database connection it is given. The step is done when the auth method and its owner are written down and matched to the organization's identity policy.
Pick a dedicated database role and scope
The database administrator creates a role for the agent with only the schemas and tables the use case needs, and avoids reusing a personal or administrator login. For Supabase, the team confirms that a project is selected during setup, because without one every project in the organization is reachable. For the Azure server, each query call carries its own user, server, database and auth type, so the role chosen there sets the effective permissions. The step is done when the role grants, the database name and any project selection are documented and checked against the scope in the approval.
Set the access mode to read-only where required
If the review requires read-only access, the platform owner enables the server's read-only setting and also confirms that the database role itself cannot write. Postgres MCP Pro controls access through its access mode flag and the connection it is given, so both layers should agree. The reviewer should confirm the setting in the deployed configuration, not only in the template. The step is done when a write attempt would fail at the database level as well as at the server level, which is verified in the final test step.
Restrict network exposure and allowed hosts
The platform team decides where the server runs and who can reach it. Where Postgres MCP Pro is run with its SSE transport, the README's allowed-hosts setting should list only the approved client hosts, and the server should not be published on a public address. The team confirms that the database itself accepts connections only from the server's network segment. The step is done when a network test from outside the approved path fails and the allowed-hosts value matches the approval record.
Confirm what gets logged
The security team checks which events are recorded and where they go. This covers database logs for the agent's role, any logs the MCP server writes, and the identity logs for the sign-in path. The team should ask the vendor or project which fields are captured, including the statement text, the role, the time and the client. Logs should reach the system the organization already monitors. The step is done when a sample query run through the agent appears in the database and server logs with enough detail to attribute it to the agent role.
Test that a denied action is refused
Before the rollout is approved, the test owner asks the agent to perform an action the policy forbids, such as a write when the mode is read-only, a query against a schema outside the role's grants, or a call on a project outside the chosen scope. The expected result is a refusal at the server, the database, or both, and the attempt should appear in the logs from the previous step. The reviewer records the test inputs, the refusal and the log entry. The step is done when every denied case is refused and documented, and any gap returns the setup to the earlier steps.
Evidence a security reviewer will ask for
This table lists the evidence a reviewer should collect for each PostgreSQL MCP server in use, such as the server's source, authentication, database grants, scope, transport and logs. Read it per server, because Postgres MCP Pro, the Azure MCP Server and the Supabase server answer these questions in different places. Name the server first, then collect each row from the vendor docs or the running configuration.
| Evidence item | What it shows | Where it comes from |
|---|---|---|
| Server name and source | Whether the server is vendor-built (Azure MCP Server, Supabase) or community (Postgres MCP Pro), and which version is deployed | The GitHub repository for Postgres MCP Pro or the Microsoft Learn and Supabase docs pages for the vendor servers |
| Auth type in use | Whether the Azure tools use MicrosoftEntra or PostgreSQL auth, or whether Supabase browser login or a database connection is used | The auth type parameter in Azure tool calls, the Supabase login flow, or the connection string given to Postgres MCP Pro |
| Database role and grants | The privileges the connected database role holds, which set the real ceiling on reads and writes | Database catalog queries and role definitions in PostgreSQL, since the MCP server inherits this role's permissions |
| Project or database scope | Whether the connection covers one database or every project in an organization | The Supabase project selection during setup, the database and server parameters on each Azure query call, and the connection target for Postgres MCP Pro |
| Transport and allowed-hosts settings | Whether the server runs over local stdio or a network transport, and which hosts may connect | The transport option and allowed-hosts setting in the Postgres MCP Pro README, and the network configuration of the host or container |
| Access mode and tool exposure | Whether read-only or read-write mode is set and which tools, such as execute_sql or apply_migration, are enabled | The access mode flag in Postgres MCP Pro, and the tool list in the Supabase and Azure docs |
| Log location and content | Where query and tool activity is recorded and whether it names the user or only the database role | Database logs (for example, PostgreSQL logging settings), the MCP client logs, and the cloud platform audit logs for Azure and Supabase |
| Change record for the server version | Evidence that the deployed version matches the one reviewed, with a plan for updates | The release tags or image digest of crystaldba/postgres-mcp, and the vendor's release notes for the Azure or Supabase server |
Questions buyers ask before approving a PostgreSQL MCP server
Which PostgreSQL MCP server supports Microsoft Entra sign-in?
The Azure MCP Server is the server in this set that documents Microsoft Entra sign-in for its PostgreSQL tools. Its Auth type parameter accepts MicrosoftEntra or PostgreSQL, and MicrosoftEntra is the default, so each query runs under a database-level identity. The query tool requires user, server, database, query and auth type parameters, and password is optional. Confirm in Microsoft's Azure MCP Server documentation for Azure Database for PostgreSQL which Entra roles and database grants your tenant uses, because the server only passes the identity the database accepts. Postgres MCP Pro does not document Entra sign-in.
Does Postgres MCP Pro support SSO or OAuth sign-in?
No. The Postgres MCP Pro README does not describe SSO or OAuth sign-in. Access is controlled by the database connection the server is given and by its access mode flag, so the database role behind the connection decides what an agent can reach. Postgres MCP Pro is a community open source project, distributed as a Docker image and a Python package, and its README shows an SSE transport option with an allowed-hosts setting. Your team will need to decide how the connection credentials are stored and rotated, and how individual users are identified in database logs, since shared credentials make attribution harder. Confirm these points with the project maintainers or in your own test environment before approval.
How does browser OAuth login work for the Supabase hosted server?
Supabase documents a browser login to a Supabase account. The user grants the MCP client access to an organization, and no personal access token is needed for that flow. The docs also state that if no project is selected during setup, all projects in the organization are accessible. Scoping the connection to one project is therefore a setup decision that your team must make and record. Review the Supabase MCP Server documentation for the current project-scoping options, and confirm which of the tools (including execute_sql, apply_migration and list_tables) your rollout will allow before users connect.
What drives the cost of rolling out a PostgreSQL MCP server?
Cost depends on who is paid for which part of the work. The server software itself may be free to use, as with the community Postgres MCP Pro project, but the rollout still needs database role design, secret storage, network placement, logging, and testing of what agents can read and change. Those tasks are paid for as internal engineering time or as an outside engagement. Costs recur when the server is upgraded, when new users are onboarded, and when access reviews run. Vendor-hosted options such as the Supabase server or Azure tooling may add platform charges that depend on your existing plan. Ask any vendor or partner for a written quote that lists each task, who performs it, and what is one-time versus recurring. No figures are given here because none were supplied for these products.
Can our team configure a PostgreSQL MCP server without outside help?
A team with strong PostgreSQL administration and identity skills can often configure a server in a test environment alone. The harder steps are the ones that carry risk: creating a least-privilege database role, choosing an authentication path that your identity provider supports, restricting the network exposure of any SSE or HTTP transport, and documenting which server version you approved. Because Postgres MCP Pro and the Azure MCP Server have different controls, the team must first name the server in use and map each control to a setting it can verify. If internal staff lack time or experience in these areas, DeployOpen can plan, implement and harden self-hosted components in your own infrastructure under a fixed-scope agreement, and can test the setup for prompt injection, permissions and credential handling.
What should we confirm with the vendor when a setting is not documented?
Ask for written answers to four questions before approval: which identity the server uses for each query, whether any setting can limit tools to read-only, which network endpoints and ports the server opens, and what the server writes to logs and where those logs go. For Postgres MCP Pro, the README does not describe SSO, OAuth or audit logging, so the project maintainers and your own testing are the source for those answers. For the Azure and Supabase servers, check the current product documentation and any admin settings in your tenant or organization, and record the version or date of each answer. Keep the answers with the approval record so reviewers can see what was verified and what remains an accepted risk.
Should we treat Postgres MCP Pro and the Azure MCP Server as the same risk?
No. Postgres MCP Pro is a community open source server that connects with the database connection it is given and an access mode flag, while the Azure MCP Server is Microsoft's vendor-built option for Azure Database for PostgreSQL resources, with Microsoft Entra sign-in as the default. The two products have different controls, so a review should first identify which server is running, which version, and which identity it uses. Assess each one separately and do not carry an approval from one to the other.
Where to check each claim
Before any approval decision, the reviewer should confirm each claim in this page against the primary source for the exact server in use. For the Azure option, that is the Azure MCP Server tools for Azure Database for PostgreSQL page on Microsoft Learn, which documents the Auth type parameter and the required query tool fields. For the hosted Supabase option, use the Supabase MCP Server documentation, which covers browser login, organization access and project scoping. For the community option, the README in the crystaldba/postgres-mcp repository on GitHub is the source for Postgres MCP Pro's access mode flag, transport settings and allowed-hosts setting, and it is also where the Docker image and Python package are listed.
Vendor documentation changes between releases, and a community README can change on any commit. Record the URL, the version or image tag, and the date you read each page, and attach that record to the approval ticket. Recheck the authentication parameters, default auth type, project scoping behavior and transport options on the day of rollout, not only at the start of the review. If a page no longer states a setting you depend on, treat that setting as unconfirmed and ask the vendor or the maintainer in writing before staff connect.
Also confirm which server each person has installed. Teams often copy a configuration snippet from one project and assume the controls described for another apply. Name the server, its publisher and its version in the review record, and check its controls against that exact source.
How DeployOpen helps you approve a Postgres MCP server
DeployOpen plans, implements, tests and documents self-hosted platforms inside your own infrastructure, and runs security testing that includes AI agents. For a Postgres MCP server, that means first confirming which server is in use, then testing how it authenticates and what it can reach before your security team signs off.
How we scope
- We confirm which Postgres MCP server is in use, vendor-built or community, before any risk assessment begins.
- The written scope lists the database engine, connection identities, transports and clients that the review covers.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we build
- We set up the server in a test environment inside your infrastructure to check its documented authentication path.
- We test database-level identity, access mode settings, network exposure and allowed-host restrictions against the written scope.
- We test prompt injection and tool misuse paths, including whether an agent can run statements beyond its intended permissions.
How we hand over
- You receive a findings report that names each issue, its severity and the configuration change that addresses it.
- Documentation covers the approved connection setup, credential handling and the admin settings your team should keep.
- We retest the agreed fixes and document the results so your reviewers can see what changed and what remains open.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers when your team changes the server or its clients.
- Re-review is worth requesting when the MCP server version, its transport or the database identities it uses change.
- Evidence can be prepared for internal security reviews and for compliance teams, though audit reports come from independent auditors.

