How DoControl delivers real-time, AI-driven SaaS security insights with ClickHouse Cloud and MCP

Jan 30, 2026 · 8 minutes read

Summary

DoControl uses ClickHouse Cloud to power real-time analytics for SaaS security, governing file access, permissions, and third-party apps. After hitting the limits of Postgres, they migrated to ClickHouse Cloud for faster ingestion, complex filtering, and real-time queries at enterprise scale. They recently launched Dot, an AI-powered security assistant, using ClickHouse MCP to translate natural-language queries into real-time analytics workflows.

The rise of SaaS tools has made it easier than ever for teams to collaborate, but it’s also created a new kind of security challenge. Sensitive files can be shared with a click. Third-party apps proliferate without oversight. And while workplace productivity might boom as a result, organizations often have no idea how much risk they’ve inherited.

DoControl is all about identifying and addressing those blind spots. Founded in 2020 to bring control back to modern SaaS environments, the platform helps organizations govern access, detect misconfigurations, manage third-party integrations, and automate remediation across tools like Google Workspace, Microsoft 365, Slack, and more.

For many customers, the impact is immediate. “There’s a ‘wow moment’ when they’re finally able to get accurate visibility into their exposure,” says Amit Fidler, Director of Engineering. “They’re in shock when they see both the scale and risk of the exposure across millions of assets and applications—board materials, compensation data, competitive intelligence, former employee access, and more.”

DoControl empowers organizations to uncover, pinpoint, and remediate these risks within seconds, without compromising business productivity. But as adoption grew and the company started onboarding Fortune 500 customers with billions of assets, they ran into a new challenge: scale.

We caught up with Amit and the DoControl team to talk about outgrowing Postgres, migrating to ClickHouse Cloud, and using ClickHouse MCP to deliver AI-powered insights at scale.

Growing pains with Postgres #

Originally, DoControl’s analytics engine ran entirely on Postgres. It worked fine for most use cases, but as the company scaled and began ingesting tens of millions of assets from Google Drive and other SaaS platforms, the limitations quickly became apparent.

“Postgres is a pretty good database,” says Bar Ifrah, Technical Lead. “But the problem is, when you’re trying to build tens of indexes or run aggregations, it just can't do it.”

Even with the indexes they built, the transactional database struggled to keep up with the volume of events and the complexity of the queries. “It’s not just about aggregation,” Bar adds. “Once we started onboarding enterprise-level customers, we couldn’t ingest all their data at the scale and pace we needed. We just didn’t have a good analytics system.”

Postgres remained the system of record for identity and filtering by ID, but it was no longer viable as the foundation for real-time analytics. The team began exploring alternatives, and eventually found their answer in ClickHouse Cloud.

“We were super excited to start working with ClickHouse,” Amit says. “It has been a game-changer in how we serve the world’s largest companies, in a way that no competitive solution can match.”

A new analytics engine with ClickHouse #

For DoControl, the benefits of ClickHouse Cloud were clear right away.

“It’s much faster than Postgres,” Bar says. “When we added ClickHouse to the architecture, we could remove all the indexes, and ingestion worked much faster than before.”

“Now, we’re able to ingest tens of millions of files quickly and perform complex analytics in real time,” Amit adds. “Even querying a single asset across tens of millions of files and billions of permissions happens in real time, which is fantastic.”

Today, ClickHouse powers every analytics workflow in the product. From customer-facing dashboards to internal investigations, queries that once pushed Postgres to its limits now run smoothly. Whether it’s application data, audit logs, or sharing events, the team can query it live and surface insights instantly in the product UI.

“This is something we couldn’t do with our previous database,” Amit says.

“The filters we’re allowing customers to run are very complex,” Bar adds. “ClickHouse’s ability to process a lot of data in a short period of time is a game-changer.”

DoControl currently operates ClickHouse instances across both AWS and GCP, an architecture that supports internal requirements and customer needs. ClickHouse Cloud’s multi-cloud support gives the team flexibility to run workloads where it makes the most sense.

With instances ranging from 100 GB to several terabytes across both clouds, DoControl has built a real-time analytics layer that’s sturdy and flexible enough to support its growing user base, while laying the foundation for what comes next.

Agents, AI, and ClickHouse MCP #

As the company looked to the future, the team felt convinced of one thing: the next wave of user interaction wouldn’t happen in a traditional UI. It would happen through conversation, with AI agents acting as the new front end.

So they built Dot, an AI-powered security assistant that helps users investigate events and answer questions about their environment. Dot uses ClickHouse MCP (Model Context Protocol) to interact directly with ClickHouse, translating natural-language queries into SQL, performing “very interesting and complex aggregations,” and returning results in real time.

“It really opened a whole wide area of use cases and changed how we think about data,” Amit says. “Because once you take all the ClickHouse knowledge in the world, which we get from working with AI, and combine it with our data, you can achieve marvelous things.”

In one example, the team wanted to detect “impossible travel” events—logins from two distant locations within a short window. Rather than build custom logic, they let Dot try to solve the problem on its own. The agent discovered ClickHouse’s built-in greatCircleDistance function, which calculates the distance between coordinates. It’s a perfect example of how ClickHouse MCP can open the door to powerful new workflows.

The architecture behind Dot is lightweight and scalable. A supervisor agent interfaces with the UI and routes queries to specialized sub-agents—one for events, one for identities. Each agent uses ClickHouse MCP to issue queries and return results.

“Working with a lot of indexes, like in Postgres, isn’t feasible for AI, since you don’t really know what filter or aggregation the user wants to run, and just guessing isn’t enough,” Bar explains. “You need a real-time analytics engine like ClickHouse with very fast filtering capabilities, because the user isn’t going to stay and watch the chat for 10 minutes.”

The team is now experimenting with multi-agent orchestration, cross-database querying, and even exposing the system through chat apps. As Amit says, “We believe that in the future, most user interactions will not be in the application itself, but within those chat applications.”

What’s next for DoControl and ClickHouse #

With AI use cases expanding and customer demand continuing to grow, the DoControl team is hard at work pushing their infrastructure forward. That includes rolling out compute-storage separation in ClickHouse Cloud, giving them more flexibility to isolate workloads and support high-scale ingestion and querying. “It’s one of the best steps we’ve taken,” Amit says.

Looking ahead, they’re focused on enabling new interfaces, scaling to support more enterprise data, and deepening their AI capabilities. As an engineering-led culture, they’re proud to be early adopters of technologies like the ClickHouse MCP server.

“We’re always looking for ways to use the most advanced technology to achieve our business needs,” says Itai Birenshtok, DoControl’s VP of Research and Development. “That includes being one of the first companies to use ClickHouse MCP in production.”

The team is always exploring what’s next, always finding ways to combine cutting-edge infrastructure with business value. Whether it’s reducing security risk for customers, ingesting billions of events, or building the next generation of AI-powered assistants, DoControl is all-in on modern, real-time analytics. And ClickHouse is at the heart of it.

Want to see ClickHouse MCP in action?

Interested in seeing how ClickHouse works on your data? Get started with ClickHouse Cloud in minutes and receive $300 in free credits.
Share this post

Subscribe to our newsletter

Stay informed on feature releases, product roadmap, support, and cloud offerings!
Loading form...