# Hypequery ClickHouse MCP Server

> Query ClickHouse analytics through governed tools.

- **URL**: https://followmcp.com/en/servers/hypequery-mcp-server
- **Category**: Database
- **Origin**: Official
- **Stars**: 109
- **FMRS Score**: 59/100 (Grade C)
- **Source**: https://github.com/hypequery/hypequery/tree/main/packages/mcp-server
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: No credential needed

## Overview
Hypequery ClickHouse MCP Server exposes datasets and metrics you define as MCP tools for agents to discover and query. It is intended for ClickHouse analytics configured through the hypequery semantic layer and does not provide a raw SQL tool. The server can run locally or use an authorized view from a Python HTTP backend.

## Best for
- Engineering teams using ClickHouse that want to expose analytics through named datasets and metrics.
- Teams with a configured hypequery semantic layer that can manage server-side database credentials and query access.

## Not for
- Users who need arbitrary SQL queries or direct database administration tools.
- Setups without configured datasets, metrics, or an available ClickHouse backend.
- Teams looking for a hosted BI product or hosted semantic-layer server.

## Required permissions
- The server needs access to the ClickHouse analytics data or authorized backend discovery and query endpoints configured for it.
- The MCP client can call discovery, schema, and query tools for the published datasets and metrics.
- In multi-tenant deployments, trusted server configuration should supply tenant identity; do not put server credentials in browser code.

## Risks
- Query results may contain analytics data permitted by the published datasets; mistakes in publication scope or tenant configuration can expose data inappropriately.
- Queries consume backend resources. The server describes timeout, response-size, and row limits, but deployment settings affect resource use.
- Python HTTP backend mode relies on authorized endpoints and requires HTTPS except for loopback development; view changes or backend 409 responses invalidate the session and require an explicit reconnect.
- The README says end-to-end ClickHouse cancellation remains part of integrated release qualification.

## Client config (JSON)
```json
{"mcpServers":{"hypequery-clickhouse":{"command":"npx","args":["hypequery-mcp","--config","/absolute/path/to/mcp-config.js"]}}}
```

## Tools (4)
- `list_datasets`: Discover available analytics datasets.
- `get_dataset_schema`: Inspect a dataset's dimensions, measures, metrics, and relationships.
- `query_metric`: Execute a named metric query.
- `query_dataset`: Explore fields in a published dataset.
