Introducing Virtual MCP Servers
LogoLogo
GithubJoin SlackSignupBook a Demo
  • Documentation
  • Self Hosted
  • Integrations
  • Guides
  • Enterprise
  • Using LLMs
    • Bring Gemini, Claude, DeepSeek to Agents SDK
    • Connecting LLMs to the Web with Real-Time Search Tools
    • Configure Fallback Routing with LangDB
    • Tracing Multiple Agents
  • Using MCPs
    • Send GitHub Release Summaries to Slack
    • Figma ➔ Code Implementation
    • Database Analytics (ClickHouse)
    • Personal Knowledgebase with DuckDuckGo + Qdrant
    • Context7 + Sequential Thinking for Smarter Coding Workflows
Powered by GitBook
LogoLogo

Social

  • LinkedIn
  • X
  • Youtube
  • Github

Platform

  • Pricing
  • Documentation
  • Blog

Company

  • Home
  • About

Legal

  • Privacy Policy
  • Terms of Service

2025 LangDB. All rights reserved.

On this page
  • Objective
  • Example Queries:
  • Behind the Scenes
  • MCP Server Setup: ClickHouse
  • Key Takeaways

Was this helpful?

Export as PDF
  1. Using MCPs

Database Analytics (ClickHouse)

Let product teams ask natural questions and retrieve real-time ClickHouse data without writing SQL, powered by LangDB Virtual MCP.

PreviousFigma ➔ Code ImplementationNextPersonal Knowledgebase with DuckDuckGo + Qdrant

Last updated 14 hours ago

Was this helpful?

Demonstrates how a product manager can directly ask natural language questions to a ClickHouse database to get LLM usage insights.

Objective

Ask natural language questions about flight operations, delays, and patterns from the dataset, such as:

Example Queries:

  • "What is the number of flights per day from the year 2000 to 2008"

  • "How many flights delayed by more than 10 minutes, grouped by the day of the week, for 2000-2008"

  • "What are the total number of delays"

Behind the Scenes

An AI agent interprets your question, generates optimized ClickHouse SQL, and returns a clean, structured result.

MCP Server Setup: ClickHouse

To connect an AI agent to your ClickHouse database, the following environment variables must be configured:

Variable

Description

clickhouse_host

ClickHouse server hostname

clickhouse_port

ClickHouse server port

clickhouse_user

ClickHouse username

clickhouse_password

ClickHouse password

clickhouse_secure

Whether to use TLS

clickhouse_verify

Whether to verify TLS certificates

clickhouse_connect_timeout

Connection timeout (seconds, optional)

clickhouse_send_receive_timeout

Send/receive timeout (seconds, optional)

Credentials are securely stored and encrypted. Never share them externally.

Interaction Flow

How many flights delayed by more than 10 minutes

Output

{
  "delayed_flights_over_10_min": 264924
}

Key Takeaways

  • Product teams can ask questions directly to the database.

  • No SQL writing required — just ask and analyze.

  • Enables faster decision-making around usage trends and cost controls.

Checkout Clickhouse MCP Server:

ontime
https://app.langdb.ai/mcp-servers/clickhouse
Virtual MCP Support in Windsurf