Attach an MCP server
In the Agent Builder, open the MCP servers section and click Add server. Enter the server’s URL and authentication settings, then pick which of the server’s tools you want this specific agent to use. Save the agent. You can attach multiple servers to one agent. Each tool the agent calls is logged in the conversation so users can see what the agent did.Transport
ClickHouse Agents speaks Streamable HTTP — the production-grade MCP transport. The server you attach must be reachable over HTTP(S) from ClickHouse Cloud.Authentication
MCP servers can require credentials. ClickHouse Agents supports:- Bearer tokens and other static headers - fixed values you provide when configuring the server.
- OAuth 2.0 - interactive flow. The first time you (or any user with access) calls a tool on the server, the browser opens a sign-in window; tokens are managed and refreshed automatically.
- Per-user credentials - variables in the server config substituted from the calling user’s profile, so each user authenticates with their own identity rather than a shared service account.