Does ClickHouse MCP support SSO and admin controls for enterprise rollout?
An identity and platform team deciding whether AI clients may query ClickHouse needs to know that the managed remote server in ClickHouse Cloud supports OAuth 2.0, where access is scoped to the organizations and services the signed-in user may already reach. The open-source mcp-clickhouse server supports a static bearer token or OAuth/OIDC through FastMCP, with providers such as Azure Entra, Google, GitHub and WorkOS, but only when your team runs and configures it. Neither edition is an SSO setting you flip in an admin console. The remote server inherits identity from ClickHouse Cloud, while the open-source server inherits whatever you build around it.
For the remote server, the first admin control is enablement. It must be turned on per service in the Cloud console under Connect, then MCP, and enabling or disabling it requires the control-plane:service:manage-mcp permission. Confirm which roles in your organization hold that permission, because it decides who can open a service to AI clients. Headless automations use ClickHouse Cloud API keys sent via HTTP Basic authentication, which is a separate credential path that needs its own owner, rotation schedule and revocation process. Ask ClickHouse to confirm whether any organization-wide allowlist of MCP clients exists, since the supplied documentation does not describe one.
For the open-source server, the gaps sit with your team. Static bearer tokens do not map to individual users, so audit attribution to a person depends on the OAuth/OIDC mode you configure. Disabled authentication is documented for local development only and should not reach a shared environment. Before rollout, confirm with your identity team which provider you will use, how group membership maps to ClickHouse database roles, and whether the console audit log, which records console activity under the View audit logs permission held by Admin users by default, will show the queries your AI clients actually run.
Which authentication and admin controls apply to each ClickHouse MCP option
This table compares the four ways staff can reach ClickHouse through MCP across transport and supported services, authentication, and where enablement and audit records sit. Check each row against your identity provider and logging setup before approving a option. The main takeaway is that only the Cloud remote server has documented per-service enablement and console audit logging, so the open-source options depend on controls you configure and verify yourself.
| Option | Transport and services | Authentication | Enablement and audit records |
|---|---|---|---|
| Remote server in ClickHouse Cloud | Streamable HTTP; ClickHouse Cloud and Managed Postgres services | OAuth 2.0 for interactive clients; Cloud API keys over HTTP Basic for headless use | Enabled per service under Connect, then MCP; console activity appears in the audit log |
| Open-source mcp-clickhouse over stdio | Local stdio; any ClickHouse instance, self-hosted or Cloud | HTTP/SSE modes do not apply; confirm how ClickHouse connection credentials are supplied and stored | Not a Cloud console setting; confirm which local logs record tool calls |
| Open-source mcp-clickhouse over HTTP/SSE | HTTP/SSE transport, configured by the operator | Operator chooses a static bearer token, OAuth/OIDC through FastMCP, or disabled for local development only | Not a Cloud console setting; the operator defines access and logging, so verify the output |
| Docker MCP Catalog listing (Official ClickHouse) | Listed as authored by ClickHouse; 3 tools; confirm transport in the listing | Requires secrets; confirm which credential types the entry accepts | Confirm enablement and logging in Docker MCP Toolkit; community forks are not ClickHouse's official server |
How enablement, OAuth and API keys are enforced
The remote ClickHouse MCP server is off by default for each service. It stays closed until someone enables it per service in the Cloud console under Connect, then MCP, so the first control to verify is which services have it switched on. Enabling or disabling it requires the control-plane:service:manage-mcp permission on the service, which makes that permission the gate for rollout. Confirm which roles in your organization carry it, remove it from anyone who does not need to expose a service to AI clients, and review the list of enabled services on a regular schedule, since a service can be switched on without any change to the application that reads it. The enablement step also decides which databases an agent can reach, so treat it as a data access approval, not a configuration detail.
For interactive clients, the remote server supports OAuth 2.0, and the access it grants is scoped to the organizations and services the signed-in user may already access. The server does not create a broader identity for the agent. Practically, the agent acts as the person who signed in, so an engineer with access to a staging service can query staging through the agent but not production they cannot reach. Ask your identity team to confirm that every person who connects through OAuth belongs to the right Cloud organization and role, because the OAuth scope inherits from those memberships. Also decide whether your SSO setup governs Cloud console sign-in, since that determines who can complete the OAuth flow in the first place.
Headless clients, such as scheduled jobs or agents without a browser, authenticate with ClickHouse Cloud API keys sent via HTTP Basic authentication. These keys are long-lived credentials that sit outside the interactive sign-in flow, so they need the same discipline as any service account secret: a named owner, a secret store rather than a config file in a repository, and a rotation and revocation procedure that your team has tested. Ask ClickHouse to confirm the key scopes and expiry options available on your plan before you issue any. For the open-source mcp-clickhouse server, none of this is provided by the vendor. Its README lists a static bearer token, OAuth or OIDC through FastMCP with providers such as Azure Entra, Google, GitHub and WorkOS, and an authentication-disabled mode meant for local development. Whichever mode you choose, the identity provider, token lifetime, network exposure and logging belong to your deployment, and no ClickHouse console control applies to it.
Decisions to make before enabling ClickHouse MCP
Before anyone connects an AI client, the team has to settle which ClickHouse MCP server it will run, how each client signs in, who may switch the server on, and where the record of that activity will be reviewed. The five decisions below depend on one another, so they should be made together and written down as a single rollout standard.
Managed remote server or self-run open-source server
The remote server is fully managed on ClickHouse Cloud and uses Streamable HTTP at a ClickHouse endpoint, so ClickHouse operates the server. The open-source mcp-clickhouse server runs locally over stdio, or over HTTP and SSE when your team hosts it, and works with any ClickHouse instance, including self-hosted ones. Choose the managed server if your services already run in Cloud and you want ClickHouse to operate the endpoint. Choose the open-source server if you need self-hosted clusters or want to control the server code and its authentication yourself. Confirm which server each team uses, because the two have different controls.
Remote MCP docsOAuth for interactive clients
For interactive clients, the remote server supports OAuth 2.0, and the ClickHouse docs recommend it. Access is scoped to the organizations and services the signed-in user can already reach, so the user's own Cloud access sets the boundary. Require OAuth for staff who use desktop or IDE clients, and confirm that each person signs in with their own identity so that actions trace back to a named user. Ask ClickHouse to confirm how sessions expire and how a user's access is revoked when they leave the organization.
Enable and connect guideCloud API keys for headless jobs
Headless jobs, such as scheduled scripts or automation that cannot open a browser sign-in, use ClickHouse Cloud API keys sent through HTTP Basic authentication. A key carries the access of the account that created it, so a shared key can outlive the person who issued it and give that access to every job that holds it. Decide who may create keys, store them in a secrets manager rather than in config files, give each job its own key, and set a rotation and revocation process before the first job goes live. Ask which key scopes the Cloud console offers.
Who holds manage-mcp permission
Enabling or disabling the remote MCP server for a service requires the control-plane:service:manage-mcp permission. This permission decides who can turn MCP access on for a production ClickHouse service, so it should sit with a small group of platform or data administrators rather than with every service owner. Map which organization roles include it, review that mapping after each role change, and confirm that developers without the permission cannot switch the server on for their own services.
Which services are enabled at all
The remote server must be enabled per service in the Cloud console under Connect, then MCP, and it accepts no connections until then. Treat each service as a separate decision: enable MCP only on services where an agent has a defined use, leave production and regulated data services off by default, and record the owner and approver for each enabled service. Ask ClickHouse how the console shows which services currently have the server on, so the list can be reviewed on a schedule.
Identity provider trusted by open-source OIDC mode
The open-source server offers three HTTP and SSE authentication modes: a static bearer token, OAuth or OIDC through FastMCP with providers such as Azure Entra, Google, GitHub and WorkOS, and disabled, which the README limits to local development. A static bearer token is shared and hard to attribute to one person, so avoid it for team use. When you choose OIDC, name the identity provider you trust, confirm that its tenant and client settings match your directory, and never leave authentication disabled on a shared host.
Server READMEWhere audit records are reviewed
The ClickHouse Cloud console audit log records console activity, and the View audit logs permission controls who can read it. Admin organization role users have that permission by default, so decide which reviewers hold it and whether they are the same people who enable MCP. Confirm with ClickHouse which actions from MCP sessions appear in the console audit log and which appear only in your own query or server logs, because a gap between the two can hide agent activity.
Console audit log docsHow the answer changes by identity provider, edition and deployment
A single team using one ClickHouse Cloud organization gets the managed remote server, which runs on ClickHouse's endpoint and must be turned on for each service before it accepts connections. Enablement happens in the Cloud console under Connect, then MCP, and the account needs the control-plane:service:manage-mcp permission to change that setting. Interactive clients can sign in with OAuth 2.0, so access follows the organizations and services the signed-in user already holds. Headless jobs use ClickHouse Cloud API keys sent with HTTP Basic authentication.
- Enable per service: Confirm which services have the remote server switched on, since each one is a separate decision.
- Enablement permission: Limit control-plane:service:manage-mcp to the few people who own the service.
- OAuth for people: Use OAuth for interactive clients so access inherits the user's existing ClickHouse rights.
- API keys for automation: Issue keys for headless use with a named owner and rotate them on a schedule your security team sets.
- Audit trail: Check the console audit log for the View audit logs permission holders who will review activity.
Before approval, confirm with ClickHouse which audit events cover MCP connections specifically, because the console audit log is documented for console activity.
An organization with several ClickHouse Cloud organizations or many services has to decide who may enable the remote server in each one and how users reach only the right data. The OAuth model scopes access to the organizations and services the signed-in user may access, so the boundaries you set in Cloud are the boundaries the agent inherits. The main risk is drift: one team enables a service that another team owns, or an API key outlives the project it was created for.
- Central ownership map: Record which organization and which services each team owns before anyone enables MCP.
- Restricted enable rights: Grant control-plane:service:manage-mcp through a small, named group rather than broad admin roles.
- Key inventory: Track every API key used with HTTP Basic authentication, with an owner, a purpose and a retirement date.
- Role review: Confirm which users hold the Admin organization role, since it includes View audit logs by default.
- Recurring review: Re-check enabled services and keys on a regular cadence agreed with your identity team.
Ask ClickHouse whether any organization-wide switch exists beyond per-service enablement, and confirm it in writing before you rely on it.
The open-source mcp-clickhouse server runs on your own infrastructure and works with any ClickHouse instance, self-hosted or Cloud. Its README lists three HTTP and SSE authentication modes: a static bearer token, OAuth or OIDC through FastMCP with providers such as Azure Entra, Google, GitHub and WorkOS, and a disabled mode meant only for local development. Your organization therefore builds the identity integration itself, and the controls depend on the provider and configuration you choose.
- Pick an OIDC provider: Select Azure Entra, Google, GitHub or WorkOS according to where your staff already sign in.
- Avoid disabled mode: Keep authentication off only for local development, never on a shared host.
- Bearer tokens as a fallback: Treat a static bearer token as a shared secret with rotation and storage rules.
- Own the audit logs: Decide which server, proxy and database logs record each tool call and user identity.
- Transport limits: The README describes stdio locally and HTTP/SSE for networked use, so place the HTTP endpoint behind your standard access controls.
Confirm the exact configuration keys and provider setup against the README for the version you deploy, since they change with releases.
When ClickHouse runs in your data center or private cloud with no Cloud console, the managed remote server is not available, so the only path is the open-source server. Nothing in the Cloud console enforces enablement, OAuth scopes or audit records, which means your team must build the perimeter and the identity layer. Database-side users and grants become the main lever for limiting what a connected agent can read, and they should be designed before the MCP server is exposed.
- Database users as the boundary: Create dedicated ClickHouse users with the narrowest grants for each agent use case.
- Identity in front of the server: Route HTTP access through your OIDC provider or an authenticating gateway, not an open port.
- Network placement: Restrict which networks and hosts can reach the MCP endpoint and the database.
- Logging chain: Capture user identity at the MCP layer and match it to ClickHouse query logs.
- Secrets handling: Store database credentials and any bearer tokens in your existing secrets manager.
Confirm with your ClickHouse administrators how query logs are retained and whether they record the originating identity.
Order of work to roll out ClickHouse MCP in production
This sequence confirms which service and owner are in scope, who can switch the remote server on, and how people and jobs will authenticate before any agent connects. It ends with a record that audit log access and the rollout decisions can be reviewed later.
Confirm the service and its owner
Start by listing the ClickHouse services that agents might reach and naming one accountable owner for each. Decide whether each service runs on ClickHouse Cloud, since the official remote server applies to Cloud services, while the open-source server also works with self-hosted instances. Done means every in-scope service has a named owner and a recorded platform, so no later step relies on an unknown database.
Confirm who holds the manage-MCP permission
Enabling or disabling the remote MCP server on a ClickHouse service requires the control-plane:service:manage-mcp permission. Ask the Cloud admin to list every user and role that currently holds it, and remove it from anyone who does not need to switch the server on or off. Done means the list is short, reviewed by security, and documented alongside the service owner.
Enable the remote server only on approved services
The remote server must be enabled per service in the Cloud console under Connect, then MCP, before it accepts any connection. Turn it on only for services that passed step one and whose owner has approved the use case in writing. Leave all other services disabled. Done means a dated record shows which services are enabled, by whom, and for which approved purpose.
Choose OAuth for people and API keys for jobs
For interactive clients, OAuth 2.0 is the recommended method, and access is limited to the organizations and services the signed-in user may already reach. For headless automation, ClickHouse Cloud API keys are sent through HTTP Basic authentication. Assign each connection to one of these two methods and record the owner of every key. Done means no shared key serves several people, and each key has a documented owner and a reason it exists.
Decide on open-source deployments and their auth mode
If teams run the open-source mcp-clickhouse server, check where it runs and which HTTP or SSE authentication mode it uses. The README lists a static bearer token, OAuth or OIDC through FastMCP with providers such as Azure Entra, Google, GitHub and WorkOS, and a disabled mode intended only for local development. Confirm that no shared deployment runs with authentication disabled, and confirm which provider the organization's identity team will support. Done means each open-source deployment has a named owner and a documented auth mode.
Verify audit log access
The ClickHouse Cloud console audit log records console activity, and access to it is governed by the View audit logs permission, which Admin organization role users hold by default. Confirm which people can read the log, check that the security team is among them, and confirm that the log captures the enable and disable events from step three. Note that the console audit log covers console activity, so ask the owner how connections made through the MCP server are recorded in the systems you already run. Done means a named reviewer can open the log and has tested it.
Review access and schedule recurring checks
Compare the enabled services, the manage-MCP holders, the active OAuth grants, the API keys and the open-source deployments against the approvals from earlier steps. Remove anything that no longer has an owner or an approved purpose. Set the review to recur on a cadence the security team agrees, and record who runs it. Done means the review record lists every connection with an owner and a current approval.
How a ClickHouse MCP request passes through enablement, login and audit
The diagram starts with an MCP client calling the remote endpoint at mcp.clickhouse.cloud. Cloud first checks that the service has the remote MCP server enabled, which an admin turns on per service in the console under Connect, then MCP. The client then signs in with OAuth 2.0 for interactive use or a Cloud API key over HTTP Basic for headless use, and access is limited to the organizations and services that identity may reach. Console activity lands in the audit log, which needs the View audit logs permission to read. The open-source server branch is different: the operator's chosen auth mode decides who gets in, so confirm that setting before rollout.
Remote server enablement and login gate, plus the separate open-source server auth path.
Evidence a security reviewer asks to see for ClickHouse MCP access
This table pairs each piece of evidence a reviewer should request with what it proves and where it comes from in ClickHouse Cloud or the open-source server. Read it as a checklist: a row is only satisfied when the tool produces the record, not when a policy document says the control exists. Several items apply to one plan or deployment path only, so confirm the path in use before accepting the evidence.
| Evidence item | What it proves | Where it comes from in the tool |
|---|---|---|
| Enablement record per service | Which ClickHouse services have the remote MCP server turned on, and that it was switched on deliberately rather than left at a default | Cloud console, Connect, then MCP for each service; confirm the list against the services in your organization |
| Roles holding manage-mcp | Which users can enable or disable the remote MCP server on a service, based on the control-plane:service:manage-mcp permission | Role assignments in the ClickHouse Cloud console; export the list and check it against the owners of each service |
| OAuth scope evidence | That interactive sessions are limited to the organizations and services the signed-in user may already access | Remote server OAuth 2.0 flow for interactive clients; test with a sample user account and record which services appear |
| API key inventory | Which ClickHouse Cloud API keys can reach the remote server through HTTP Basic authentication, who owns each key, and whether headless clients still use them | Cloud console API key settings; the key list, owner and creation record for each key used by agents or scripts |
| Open-source auth mode configuration | Which HTTP/SSE authentication mode the mcp-clickhouse deployment runs: static bearer token, OAuth/OIDC through FastMCP, or disabled for local development only | Deployment configuration and environment settings for the server, as described in the repository README; check that no deployment runs with auth disabled outside local development |
| Audit log entries for console activity | Who enabled, disabled or changed MCP access and when, for console actions | Console audit log, which requires the View audit logs permission (held by Admin organization role users by default); it records console activity, not every query an agent sends |
| Audit coverage gaps | Which actions the evidence does not show, such as agent queries through the server or actions taken by the open-source server | Ask ClickHouse and your own logging team what is captured; plan separate logging for the self-hosted server |
Questions buyers ask before approving ClickHouse MCP
Does the ClickHouse Cloud remote MCP server require a paid plan?
The supplied documentation does not state which ClickHouse Cloud plan or tier includes the remote MCP server, so confirm this with ClickHouse before approval. Ask the account team to name the plan for each service you plan to enable, and to confirm whether any add-on or usage charge applies. Also ask whether the feature is available on every service type you run, since the docs say the remote server works with ClickHouse Cloud and Managed Postgres services. Get the answer in writing, because a plan change later can change who in your organization can turn the server on.
Can the open-source mcp-clickhouse server use SSO?
The open-source server does not provide SSO on its own. Its README lists three HTTP/SSE authentication modes: a static bearer token, OAuth/OIDC through FastMCP with providers such as Azure Entra, Google, GitHub and WorkOS, and disabled, which is meant for local development only. Single sign-on therefore exists only if your team configures OAuth/OIDC against your identity provider, which is operator work that someone must build, test and maintain. Treat the static bearer token as a shared secret that needs rotation and storage controls, and do not use the disabled mode outside a local development machine.
Who can turn on the ClickHouse remote MCP server for a service?
The remote server must be enabled per service in the Cloud console under Connect, then MCP, before it accepts any connection. Enabling or disabling it requires the control-plane:service:manage-mcp permission on that ClickHouse service. Review which roles and custom permissions carry that permission, because it is the switch that exposes a database to AI clients. Keep the list of enabled services in your change records, and check it on a schedule, since a service can be switched on by anyone holding the permission without a separate approval step in the product.
Can ClickHouse API keys be scoped more tightly than OAuth?
The supplied documentation describes OAuth access as scoped to the organizations and services the signed-in user may access, and API keys as sent through HTTP Basic authentication for headless use. It does not state that API keys can be narrowed to specific tools or specific databases, so confirm this with ClickHouse before you rely on it. Ask how each key is tied to a user or service identity, how keys are revoked and rotated, and whether a key inherits the permissions of its creator. Until those answers are confirmed, prefer OAuth for interactive clients and limit headless keys to a named service account.
What does the ClickHouse audit log not record for MCP?
The supplied documentation says the Cloud console audit log records console activities, and that the View audit logs permission is held by the Admin organization role by default. It does not say that the log captures individual MCP queries, tool calls or the SQL an agent runs, so do not assume it does. Confirm with ClickHouse what MCP activity is logged, under which identity, and how long records are kept. For the open-source server, the operator also decides what is logged and where, so plan your own query logging and access records on the database side.
What drives the effort and cost when DeployOpen scopes this work?
Scope depends on which server you choose, how many services are involved, and what identity model you need. The open-source route adds work for OAuth/OIDC configuration with your identity provider, hardening of the HTTP deployment, and ongoing upgrades, while the Cloud route mainly needs admin policy design and verification. Other cost drivers include the number of environments, how many teams need separate access, the evidence your compliance reviewers expect, and whether a retest is required after fixes. DeployOpen plans engagements as fixed scopes agreed in writing before work starts, so ask for a quote built from that written scope and from your environment. DeployOpen does not publish a price list.
How DeployOpen reviews and rolls out ClickHouse MCP access
DeployOpen reviews how ClickHouse MCP server official setup, OAuth and admin controls will work inside your organization before anyone connects an agent. We scope the rollout in writing, test the identity and admin configuration, and hand over documented settings and evidence your security and compliance teams can review.
How we scope
- Written scope names which ClickHouse services, the remote server or the open-source server, and which teams are in the rollout
- Scope records which Cloud organizations and roles may enable the remote server per service
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
How we build
- Review of Cloud console settings under Connect then MCP for each service in scope
- Check of OAuth versus API key use for interactive clients and headless jobs, with the access each one grants
- Configuration of the open-source server's authentication mode, with disabled mode limited to local development
How we hand over
- Documented record of which roles hold the permission to enable or disable the remote server per service
- Notes on where console audit records are kept and which roles can view them
- Findings report with fixes and a retest of the authentication and admin settings
How we support
- Ongoing support is available as a retainer for changes to services, roles and MCP clients
- Periodic retesting of identity and admin settings after ClickHouse or client updates
- Evidence refreshes for your security questionnaires and internal access reviews

