@hypequery/mcp weekly downloads statistics
By hypequery (3 listings) · npm · MCP servers
ClickHouse MCP server for Claude Code, Cursor, Codex and AI agents: governed datasets and metrics as tools, never raw SQL.
@hypequery/mcp has 7,942 recorded weekly downloads on npm, a decrease of 21.7% over the past 30 days, ranking #1357 of 3,247 tracked listings.
About @hypequery/mcp
@hypequery/mcp: governed ClickHouse MCP server
A ClickHouse MCP server for Claude Code, Cursor, Codex and other AI agents. Agents query the datasets and metrics you define, never raw SQL. Run it in five minutes against the public ClickHouse playground: hypequery.com/clickhouse-mcp.
@hypequery/mcp turns your hypequery datasets and metrics into Model Context Protocol tools for Claude, Cursor, and other MCP clients. Agents can discover and query approved analytics without receiving unrestricted SQL access or database credentials.
Install
npm install @hypequery/mcp @hypequery/datasets @hypequery/clickhouse
Expose your semantic layer
// mcp-config.ts
import { publishDatasets } from '@hypequery/datasets';
export const datasets = publishDatasets()
.publish(Orders, { metrics: { revenue } })
.build();
export const analytics = createDatasetClient({ queryBuilder: db });
Compile the config, then start the stdio server:
npx hypequery-mcp --config /absolute/path/to/mcp-config.js
Add it to an MCP client:
{
"mcpServers": {
"hypequery-clickhouse": {
"command": "npx",
"args": [
"hypequery-mcp",
"--config",
"/absolute/path/to/mcp-config.js"
]
}
}
}
Now an agent can ask, “Show revenue by region for the last month,” using the same metric definition as your backend and dashboard.
Connect to a Python HTTP backend
An existing Python server can own definitions, authorization, tenancy and SQL.
Opt its dataset/metric routes into ClientQueryProfile and install
add_client_contract_endpoint from hypequery.serve. The MCP bridge consumes that
endpoint's authorized view; an offline build export cannot be used as live
discovery. No Node dataset registry or Python application import is needed.
import {
createMCPHttpExecutor,
createMCPProtocolServer,
connectMCPServerStdio,
} from '@hypequery/mcp';
const url = process.env.HYPEQUERY_CLIENT_CONTRACT_URL;
const token = process.env.HYPEQUERY_API_KEY;
if (!url || !token) throw new Error('Configure the backend discovery URL and credential.');
const executor = await createMCPHttpExecutor({
url,
headers: { authorization: `Bearer ${token}` },
});
await connectMCPServerStdio(createMCPProtocolServer({ executor }));
The URL is the full discovery endpoint, including its mount prefix. HTTPS is required except for loopback development. URLs cannot contain credentials, queries or fragments. Keep one executor/session per principal; a headers resolver may rotate credentials for that same principal. Browser code must never contain this server credential. To serve the bridge to remote agents, see "Serve over Streamable HTTP" below.
The four tool names stay the same. HTTP mode preserves each authorized endpoint's
own dimensions, filters, defaults, time controls and limits. Metric-only groups
have queryable: false; inspecting them does not invent a dataset query route.
Introspection returns endpoint profiles rather than merging permissions into a
synthetic dataset. Unsupported segments, SQL/debug options and caller-selected
tenants, tokens, origins or routes are rejected before backend requests.
HTTP query responses preserve the public backend envelope: data, plus optional
meta with request ID, timing, row count, pagination and optional cache.hit.
Set includeMeta: true when the endpoint advertises metadata and use
pagination.hasMore with offset + limit to page. This differs from the existing
local executor's cache-status metadata; each mode advertises its actual output
schema. Returned rows must contain exactly the selected fields with their
advertised scalar/null types. Private diagnostics or unexpected fields fail
closed instead of being forwarded to the agent.
The bridge rechecks its authorized view before discovery, prompts and execution, and pins each POST to the validated endpoint schema. View changes or backend 409s invalidate the session: construct a new executor/reconnect explicitly. No query is automatically replayed with new semantics. Backend authorization is still checked on every request, including after discovery.
Budgets default to 30 seconds, 256 KiB discovery/manifests and 1 MiB query responses.
HTTP mode has a hard 1 MiB response ceiling, 1,000 rows/filter-list values, 10,000
JSON nodes, 1,000 members per JSON collection and nesting depth 16. Query ceilings
can be lowered through queryLimits; unservable default selections are refused
rather than silently changed. executionBudget, catalogBudget and
maxContractBytes allow smaller deployment limits. Streamed/decompressed bytes
are bounded even without Content-Length, and redirects are refused. Request
cancellation aborts the HTTP operation; the backend must carry disconnection into
its executor (the Python serve adapter does so). End-to-end ClickHouse cancellation
remains part of integrated release qualification.
A TypeScript consumer of the MCP SDK needs its Fetch/DOM type names available
(e.g. lib: ["ES2022", "DOM"] alongside Node types); this does not require a browser
runtime. The repository's installed-artifact smoke checks this without
skipLibCheck and without the optional ClickHouse peer installed.
Tools agents receive
list_datasetsdiscovers available analytics models;get_dataset_schemaexplains dimensions, measures, metrics, and relationships;query_metricexecutes named KPIs;query_datasetexplores the fields you chose to publish.
Every tool declares an output schema and returns the same result twice: MCP
structuredContent for clients that support typed results, and compact JSON in
the text content block for compatibility. Query metadata includes row count,
timing when available, pagination state, and cache outcome. Tools also advertise
human-readable titles and read-only, non-destructive, idempotent annotations.…
Description from the npm listing.
- mcp
- mcp-server
- clickhouse-mcp-server
- clickhouse-mcp
- model-context-protocol
- clickhouse
- semantic-layer
- analytics
- query-builder
- orm
- ai-agents
- claude
- cursor
- typescript
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (156)Similar npm MCP servers plugins
All 20 @hypequery/mcp alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@hypequery/mcp. First seen Oct 20, 2026; last successful collection Dec 1, 2026. See the methodology.