> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect ClickHouse with MCP (OAuth) – StackOne Hub

> Link a ClickHouse account in the StackOne Hub using MCP (OAuth). End-user guide to authorize the integration and start using ClickHouse actions.

> [!WARNING]
>
> Turning on MCP for a service needs the `control-plane:service:manage-mcp` permission in ClickHouse Cloud.

## Enabling MCP on your services

The MCP tools only reach services that have MCP turned on, and it is off by default for each service.

**1. Turn on MCP for each service**

Sign in to the [ClickHouse Cloud console](https://console.clickhouse.cloud), open the service, then click **Connect** in the left sidebar.

<ul>
  <li>**Connect with**: **MCP**</li>
  <li>Switch on **Enable Model Context Protocol**.</li>
  <li>Repeat for every service the integration should query.</li>
  <li>When you link the account, sign in with a ClickHouse Cloud user that can access these services.</li>
</ul>

![The Connect to falcon-test dialog with MCP selected and the Enable Model Context Protocol switch highlighted](https://mintcdn.com/stackone-60/piSJzyZ9XF4GTLsG/connectors/clickhouse/images/mcp_oauth-config-enable-mcp.png?fit=max\&auto=format\&n=piSJzyZ9XF4GTLsG\&q=85\&s=45b4be5bbe45d7ea21404e8c1a80bd13)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.