Skip to content
Back to skills

Query Clickhouse Analytics Safely From Mcp Clients

ASecurity

Use ClickHouse's official MCP server when an assistant needs schema-aware, reviewable analytics access to ClickHouse through bounded tools instead of ad hoc database credentials.

  • 36 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentspythongodockerazuregitdatabasesecuritydocumentation

Works with

  • cli
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 2, 2026

npx -y skills add agentskillexchange/skills --skill query-clickhouse-analytics-safely-from-mcp-clients --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Query Clickhouse Analytics Safely From Mcp Clients?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Query Clickhouse Analytics Safely From Mcp Clients
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-query-clickhouse-analytics-safely-from-mcp-clients/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-query-clickhouse-analytics-safely-from-mcp-clients)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Query ClickHouse analytics safely from MCP clients"
slug: "query-clickhouse-analytics-safely-from-mcp-clients"
description: "Use ClickHouse's official MCP server when an assistant needs schema-aware, reviewable analytics access to ClickHouse through bounded tools instead of ad hoc database credentials."
github_stars: 801
verification: "security_reviewed"
source: "https://github.com/ClickHouse/mcp-clickhouse"
author: "ClickHouse"
publisher_type: "official_open_source"
category: "Data Extraction & Transformation"
framework: "MCP"
tool_ecosystem:
  github_repo: "ClickHouse/mcp-clickhouse"
  github_stars: 801
---

# Query ClickHouse analytics safely from MCP clients

Use ClickHouse's official MCP server when an assistant needs schema-aware, reviewable analytics access to ClickHouse through bounded tools instead of ad hoc database credentials.

## Prerequisites

Python runtime or package runner, mcp-clickhouse package, ClickHouse credentials, MCP-capable client

## Installation

Use the upstream install or setup path that matches your environment:
- In test-services directory run docker compose up -d to start the ClickHouse cluster.
- Run uv sync to install the dependencies. To install uv follow the instructions [here](https://docs.astral.sh/uv/). Then do source .venv/bin/activate.
- uv sync --all-extras --dev # install dev dependencies
- uv run ruff check . # run linting

Requirements and caveats from upstream:
- Requires the optional chdb extra: pip install 'mcp-clickhouse[chdb]'
- When using HTTP or SSE transport, authentication is **required by default**. The stdio transport (default) does not require authentication as it only communicates via standard input/output.
- "--python",

Basic usage or getting-started notes:
- Queries run in read-only mode by default (CLICKHOUSE_ALLOW_WRITE_ACCESS=false), but writes can be enabled explicitly if needed.
- Example:
- Example (Azure Entra):

- Source: https://github.com/ClickHouse/mcp-clickhouse
- Extracted from upstream docs: https://raw.githubusercontent.com/ClickHouse/mcp-clickhouse/HEAD/README.md

## Documentation

- https://github.com/ClickHouse/mcp-clickhouse

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/query-clickhouse-analytics-safely-from-mcp-clients/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.