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 | 265 | 57 | 33 | -89% |
| MCP | 32 | 2,241 | 148 | 72 | -74% |
| AI Agents | 3 | 931 | 231 | 103 | -84% |
| Observability | 3 | 472 | 102 | 54 | -85% |
| LLM | 2 | 747 | 162 | 79 | -85% |
| OpenTelemetry | 2 | 125 | 18 | 15 | -83% |
| Kubernetes | 1 | 956 | 75 | 30 | -73% |
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.