How MCP Toolbox turns agent text into ClickHouse vectors
Blog post from ClickHouse
Google’s open-source MCP Toolbox for Databases provides an MCP server and YAML-based framework for exposing database tools to AI agents, including native support for ClickHouse semantic search using Gemini embeddings. Developers can define a ClickHouse source, an embedding model, and curated SQL tools in configuration, allowing Toolbox to embed document text during insertion and embed natural-language queries during retrieval while agents interact only with text and ranked rows. The setup supports generic exploratory SQL tools as well as safer production-oriented parameterized tools, although ClickHouse values are driver-escaped and interpolated client-side rather than server-side prepared statements. A demonstrated implementation stores 768-dimensional Gemini vectors in an Array(Float32) ClickHouse column, optionally indexes them with HNSW for approximate search, and ranks documents through cosine distance. Tests on a small synthetic corpus showed strong semantic matches for queries about database performance, Kubernetes failures, and hill safety, but also illustrated that top-k retrieval can return irrelevant results when no suitable content exists, making distance thresholds advisable. The discussion notes operational limitations, including Gemini as the only supported embedding provider, a hardcoded semantic-similarity task type rather than retrieval-specific embedding modes, potentially large query logs from inlined vectors, and the need for offline batch pipelines at high ingestion volumes.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Vector Search | 49 | 1,618 | 377 | 123 | -32% |
| MCP | 32 | 10,588 | 922 | 216 | +14% |
| AI Agents | 3 | 5,586 | 1,408 | 270 | -7% |
| Observability | 3 | 2,761 | 730 | 188 | -15% |
| LLM | 2 | 6,025 | 1,161 | 240 | +15% |
| OpenTelemetry | 2 | 708 | 130 | 59 | -8% |
| Kubernetes | 1 | 4,363 | 405 | 103 | +24% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.