analyticbase MCP Server
Query ClickHouse over HTTP: list databases and tables, run SELECT.
analyticbase scores 63 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 0 stars. Package registries report about 63 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cloudcorprecords-analyticbase": { "command": "npx", "args": [ "-y", "@reneturcios/analyticbase@0.1.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
analyticbase
analyticbase lets an agent — or you, at a terminal — look inside a
ClickHouse database and ask it questions, without ever being able to
change it. It lists the databases on a server, lists the tables in
one database along with each table's engine, comment, row count and
column count, and runs single read-only SELECT queries. Everything
travels over ClickHouse's plain HTTP interface, so there is no client
library bundled and no native port to tunnel.
When ClickHouse is not there, analyticbase says so. The MCP server starts and lists its tools with no server behind it at all; only an actual operation makes a request, and a refused connection or a server error comes back as an error carrying the server's own text — never as invented rows.
Install
npx @reneturcios/analyticbase list-databases
Or run the container image:
docker run -i ghcr.io/cloudcorprecords/analyticbase
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
CLI
# Which databases does this server hold?
analyticbase list-databases
# What tables live in one database? (name filters are LIKE patterns)
analyticbase list-tables analytics
analyticbase list-tables analytics --like "events_%" --not-like "%_tmp"
# Run one read-only query; rows print as JSON
analyticbase query "SELECT count() AS n FROM analytics.events"
# Start the MCP server
analyticbase mcp
analyticbase --version
Exit codes: 0 on success, 1 when the query, the guard, or the
connection fails (the error says which), 2 for usage errors.
The endpoint is configured through the environment:
| Variable | Meaning | Default |
|---|---|---|
CLICKHOUSE_URL | Whole base URL of the HTTP interface; overrides host and port | — |
CLICKHOUSE_HOST | Hostname, or a full http(s):// URL | localhost |
CLICKHOUSE_PORT | HTTP interface port | 8123 |
CLICKHOUSE_USER | Username | default |
CLICKHOUSE_PASSWORD | Password | (empty) |
How the queries work
Each operation POSTs its SQL to the HTTP interface as the request
body, with the credentials as URL parameters — the interface's own
convention. The listing operations append FORMAT JSONEachRow and
parse one JSON object per line; list_tables reads system.tables
and counts each table's columns with a subquery over
system.columns, applying the like / not_like filters as LIKE
/ NOT LIKE clauses with safely escaped literals. Select queries
append FORMAT JSON and return the response's data array.
The read-only guard
run_select_query (and the CLI query command) accepts a query only
if all of these hold:
- After leading whitespace and comments are stripped, its first
keyword is
SELECTorWITH. - It is a single statement: a semicolon followed by anything other than whitespace ends the conversation.
- None of
INSERT,UPDATE,DELETE,DROP,ALTER,CREATE,TRUNCATE,GRANT,REVOKE,OPTIMIZE,RENAME,DETACH, orATTACHappears as a whole word outside a string literal. Single-quoted literals are blanked out before scanning, soSELECT 'drop table t'is a fine query; a column literally namedupdateis not — the guard would rather refuse an odd name than be talked around.
The listing operations build their SQL internally from validated, escaped pieces, so they need no guard.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/analyticbase mcp
MCP client configuration:
{
"mcpServers": {
"analyticbase": {
"command": "npx",
"args": ["-y", "@reneturcios/analyticbase", "mcp"],
"env": { "CLICKHOUSE_HOST": "localhost", "CLICKHOUSE_PORT": "8123" }
}
}
}
Tools
| Tool | Input | What it returns |
|---|---|---|
list_databases | (none) | One object per database, from system.databases. |
list_tables | database (string, required), like / not_like (strings, optional) | One object per table in that database: its schema (database), name, engine, comment, row count, and column count. |
run_select_query | query (string, required) — one read-only SQL statement | The result rows as a JSON array of objects keyed by column name. Guard violations, a missing server, and database errors all come back as tool errors — never as made-up rows. |
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network, no live ClickHouse
npm run dev # run the CLI from source via tsx
All HTTP goes through an injectable fetch function, which is what the test suite drives: config resolution, the guard, SQL construction, both response-format parsers, and all three operations are covered against a fake fetch.
License
MIT — see LICENSE.
Frequently asked questions
What is analyticbase MCP Server?
Query ClickHouse over HTTP: list databases and tables, run SELECT.
How do I install analyticbase MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. analyticbase MCP Server runs locally from the npm package @reneturcios/analyticbase with the command npx -y @reneturcios/analyticbase@0.1.0.
Is analyticbase MCP Server free and open source?
Yes. analyticbase MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does analyticbase MCP Server support remote (HTTP) connections?
No remote endpoint is listed for analyticbase MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is analyticbase MCP Server's trust score calculated?
analyticbase MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
