2026: Can Supabase Self-Hosted MCP Be Open to the Public? Access It Through an SSH Tunnel

2026: Can Supabase Self-Hosted MCP Be Open to the Public? Access It Through an SSH Tunnel

Your AI client cannot reach the self-hosted Supabase MCP endpoint, so you are considering opening it to the internet.

Best choice: keep the endpoint off the public internet. If remote access is needed, use the documented SSH tunnel approach and verify that the client can reach it only through the intended path.

This guide is for independent developers connecting an AI coding client to self-hosted Supabase, small teams sharing controlled access, and production database owners reviewing permissions before connecting an AI tool.

Last updated October 25, 2026. The access guidance was checked against the self-hosted MCP guide and official MCP security recommendations.

Supabase self-hosted MCP public access

The current self-hosted MCP guide says the endpoint does not provide OAuth 2.1 and advises against exposing it to the internet. That statement applies to the documented self-hosted MCP setup. It should not be generalized to every Supabase deployment or every MCP service.

Treat the endpoint as a restricted administrative or development interface. Keep it reachable only through the intended connection path. If a remote AI client needs access, the documented SSH tunnel is a safer starting point than publishing the MCP endpoint directly.

Operational note: A tunnel limits the network path. It does not determine what the connected client can do. Review credentials, enabled tools, and project scope separately.

A reachable endpoint is not proof that the service is correctly protected. Nor is an endpoint that is not publicly reachable proof that its credentials are safe. The official MCP security guidance stresses layered controls; the Supabase MCP security overview also describes why limiting exposure is only one part of the security model.

Decide by access pattern

Access option Best fit Main benefit Main risk or limitation Decision
Local client and local endpoint Individual development on the same machine or network No public route is needed Does not solve remote team access Use when both ends can stay local
Remote client through SSH tunnel A developer or team member who needs controlled remote access Access can be limited to the tunnel path The client and tunnel must both be configured and maintained Prefer this when remote access is necessary
Direct public endpoint Convenience without a restricted connection path Fewer client-side connection steps Conflicts with the current self-hosted MCP guidance Do not use as the normal access design

A community discussion about self-hosted MCP access shows that developers are asking how to connect AI tools to self-hosted instances. It is evidence of user interest, not an official security recommendation. Base the access decision on the current documentation, not on a community workaround.

Individual developers: establish the connection path

Before changing firewall rules or client settings, identify where each component runs:

  • The Supabase self-hosted services run on the server.
  • The MCP endpoint is exposed at a specific address and path in that deployment.
  • The AI client runs on the developer’s workstation or another machine.
  • The SSH connection terminates on a host that can reach the MCP service.

This distinction matters. A client running locally may be unable to resolve a server-side hostname or access a container-only address. That does not necessarily mean the MCP service failed to start. First check the endpoint from the server side, then test the restricted path from the client side.

The official self-hosted Docker guide and Compose configuration are the references for deployment-specific service and port details. Do not assume a particular host port, container address, or MCP path: check the current configuration and guide for the actual deployment.

A general SSH local-forwarding pattern looks like this:

ssh -N -L 127.0.0.1:LOCAL_PORT:REMOTE_TARGET:REMOTE_PORT USER@SSH_HOST

Replace the placeholders only after confirming the MCP service’s reachable target and port from the SSH host. Configure the AI client to connect to the local forwarded address and use the MCP path specified by the current guide. Keep the client endpoint bound to loopback unless the client’s documented architecture requires a different arrangement.

Use this sequence before changing any public-facing rule:

  • Confirm that the MCP service is running and identify its configured endpoint path.
  • From the server, check whether the SSH host can reach the service target.
  • Start the tunnel and check that the local forwarded address responds as expected.
  • Point the AI client at that local address and run a harmless connection test.
  • Close the tunnel and confirm the client can no longer reach the endpoint through it.

If the tunnel works but the client still fails, inspect the client’s endpoint URL, path, and transport support. A service can be healthy while a client uses the wrong URL or does not support the selected connection method.

Small teams: share access without widening exposure

Team access needs a controlled process, not a shared public endpoint. Give each intended member an approved way to establish the restricted connection. Keep access limited to the expected people and network path. Avoid removing a network restriction merely because one client is difficult to configure.

Team setup Access boundary What to verify When it fits
Developer connects from a local workstation Local endpoint or approved SSH tunnel The client uses the intended address and path Individual development
Several members connect remotely Approved tunnel entry and individually managed access Each member’s access can be reviewed and removed when no longer needed A small team with a known membership
Endpoint opened broadly for convenience Publicly reachable endpoint The exposure contradicts the current self-hosted guidance Not an acceptable routine fallback

The organization operating a self-hosted deployment remains responsible for its configuration and security. The self-hosting responsibility guide is useful when assigning ownership: hosting the software does not transfer access-control work to the server provider.

Keep the access record specific. Document the endpoint path, the approved tunnel route, the people or roles allowed to use it, and the date each change was checked. Do not store private keys or database credentials in a shared runbook. Record where approved credentials are managed, not their secret values.

For a deployment using Docker Compose, compare the running services and exposed ports with the current official run script and Compose configuration. A port published for another service is not automatically the MCP endpoint, and changing a published port can affect more than one component. Check the purpose and reachability of each relevant service before applying a firewall or Compose change.

Production database owners: review tools and credentials first

The tunnel answers “who can reach the endpoint?” It does not answer “what can the connected tool do?” Before connecting an AI client to a production environment, review the MCP tools that are enabled, the credentials available to them, and the project or data scope those credentials can reach.

Start with the intended task. If the client only needs to inspect information, do not provide broader write access for convenience. If a workflow requires changes, identify the precise actions that must be allowed and test them separately. Keep development and production access distinct where the deployment design allows it.

Review area Safer decision Evidence to retain
Tools exposed to the client Enable only tools required for the approved task Reviewed tool list and intended use
Credentials Use the narrowest suitable credentials; do not paste secrets into client prompts or shared notes Credential owner and storage location, never the secret itself
Project scope Confirm which project and data the server-side configuration can reach Reviewed project identifier or configuration reference
Write operations Test whether writes are necessary before allowing them Expected allowed and denied actions
Client behavior Check what happens when the tunnel closes or access is denied Test result and relevant service log reference

Do not infer permission safety from network isolation. A client may connect only through a tunnel and still have access to tools or credentials that are too broad. Conversely, a carefully scoped credential does not make a public endpoint appropriate when the current guide says not to expose it.

A community thread can help identify questions other operators have encountered, but it cannot validate a production permission model. For this review, follow the official MCP security guidance and check the configuration that is actually running.

Before production use: Have a second reviewer confirm the endpoint path, access route, enabled tools, and credential scope. Keep the test result with the deployment record.

Remote-access runbook and acceptance checks

Use a short runbook so that the setup can be checked again after a client change, team membership change, or deployment update. The exact service names, logs, and commands depend on the current Compose configuration. Confirm them against the official self-hosted deployment documentation rather than copying commands from an unrelated deployment.

Prepare the deployment. Record the configured MCP endpoint path and the server-side address and port it uses. Confirm which host can reach that address. Keep public access restricted while testing.

Prepare the SSH route. Confirm the account and host used for the tunnel, then check that the forwarding target is reachable from that host. Do not substitute a guessed port or path.

Configure the client. Enter the local forwarded address and the documented MCP path. Check that the client supports the connection method selected for this deployment. If it does not, choose another restricted route the deployment supports; do not make public exposure the workaround.

Test allowed and denied paths. Check successful connection through the intended route. Then close the tunnel and test again. From an unapproved path, confirm that the endpoint is not reachable. Review service logs for the relevant attempt using the current deployment’s documented log location.

Test permissions. Confirm the client sees only the tools intended for its role. Test an allowed read or action and a disallowed operation against a safe target. A successful connection alone does not pass this check.

Record and hand off. Save the endpoint path, configuration change reference, access scope, client tested, and results. Record how access can be revoked. Do not leave an undocumented public route as a fallback.

Acceptance result Pass condition If it fails
Client connection The approved client connects through the intended tunnel and endpoint path Check client URL, path, transport support, and server-side reachability
Network restriction The endpoint is unreachable through unapproved paths and after the tunnel is closed Restore restrictive network settings before proceeding
Permission boundary Intended tools work and out-of-scope actions are rejected Review enabled tools, credentials, and project scope before production use

For offline work, decide in advance what the client should do when the tunnel is unavailable. A failed connection is preferable to silently switching to direct public access. For team handoff, make sure another authorized operator can identify the intended path and repeat the acceptance checks without needing access to someone else’s private key.

Server planning and ownership boundaries

Running Supabase and its supporting services on a server is separate from securing the MCP endpoint. Before choosing infrastructure, estimate the workload of the database, application services, storage, and any additional tools. Consider expected data growth, backups, disk capacity, network exposure, and who will maintain operating-system and application updates.

A self-hosted installation also makes the operator responsible for the deployment and its ongoing security. The official self-hosting guide should inform that ownership review. A server rental does not automatically provide MCP access controls, credential review, deployment management, or security hardening.

For a persistent workload that needs dedicated compute and control over its server environment, compare an independent AMD physical server with a shared virtual server. A shared VPS may be sufficient for a light development environment or a short-lived test, but shared infrastructure can mean less control over the underlying host and resource contention with other tenants. A physical server can provide dedicated hardware, but it does not remove the operator’s responsibility to restrict endpoints, manage credentials, maintain the system, and keep off-machine backups.

Review the current network information before deciding how the application will be reached. For current options and billing terms, check CloudDDR bare-metal pricing; verify the live product details rather than assuming a configuration or network feature. The right choice depends on workload size, operating responsibilities, and whether dedicated resources matter more than the flexibility of a small shared environment.

Frequently asked questions

Can self-hosted Supabase MCP be exposed directly to the internet?

No. The current self-hosted MCP guide says the endpoint does not provide OAuth 2.1 and advises against exposing it to the internet. Keep access restricted. If remote use is required, use a controlled path such as the documented SSH tunnel approach, then test that the endpoint is reachable only through the intended route.

How do you connect self-hosted Supabase MCP through an SSH tunnel?

First confirm where the MCP service listens and which endpoint path the current guide specifies. Create an SSH local forward from a loopback address on the client machine to a host and port reachable from the server, then configure the AI client to use the forwarded address with the documented MCP path. Test it while the tunnel is open and again after closing it.

How can access be restricted without OAuth 2.1?

Do not treat the missing OAuth 2.1 support as a reason to remove access controls. Keep the endpoint off public routes, use a restricted network path such as an SSH tunnel, and limit who can establish that path. Review the credentials and tools available to the MCP server separately; network restriction does not replace authorization or least-privilege review.

How should permissions be checked after an AI client connects?

Confirm the client can reach the expected endpoint, then inspect which tools it can invoke and which credentials those tools use. Test only the intended read or write actions against a safe project or data set. Finally, verify that a disallowed action is rejected and that the endpoint is unreachable through paths that were not approved.

For a persistent self-hosted Supabase workload, compare the resource and network requirements with CloudDDR’s current product details before selecting a server. Dedicated AMD hardware may suit a workload that needs sustained resources and host control; it does not provide automatic MCP security, so endpoint restrictions and permission reviews remain part of the deployment plan.

Frequently asked questions

Can I expose a self-hosted Supabase MCP endpoint directly to the internet?

No. The current self-hosted MCP guide says the endpoint does not provide OAuth 2.1 and advises against exposing it to the internet. Keep access restricted. If remote use is required, use a controlled path such as the documented SSH tunnel approach, then test that the endpoint is reachable only through the intended route.

How do I connect to self-hosted Supabase MCP through an SSH tunnel?

First confirm where the MCP service listens and which endpoint path the current guide specifies. Create an SSH local forward from a loopback address on the client machine to a host and port reachable from the server, then configure the AI client to use the forwarded address with the documented MCP path. Test it while the tunnel is open and again after closing it.

How can I restrict Supabase MCP access without OAuth 2.1?

Do not treat the missing OAuth 2.1 support as a reason to remove access controls. Keep the endpoint off public routes, use a restricted network path such as an SSH tunnel, and limit who can establish that path. Review the credentials and tools available to the MCP server separately; network restriction does not replace authorization or least-privilege review.

How do I check permissions after an AI coding client connects?

Confirm the client can reach the expected endpoint, then inspect which tools it can invoke and which credentials those tools use. Test only the intended read or write actions against a safe project or data set. Finally, verify that a disallowed action is rejected and that the endpoint is unreachable through paths that were not approved.

Further reading

Dedicated AMD EPYC 7543P server, from $447/month.

Dedicated Server Configurations: Start with Memory

AMD EPYC 7543P, with 128 GB or 256 GB DDR4-3200 ECC.