Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

hypequery ClickHouse

by hypequeryversion 0.14.0i★ 106 (Stars for the whole repo)iRuns on your computer
Registry nameio.github.hypequery/hypequery

How to install

What it does

Governed ClickHouse analytics for agents: named datasets and metrics as tools, never raw SQL.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Databases & datasets

Use together with

Skills that teach the AI this kind of work; they work alongside this one

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

by google-research★ 35,5671 skills

Skill · How-to guide

Install

Pick the AI app you use, then copy the settings.

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 16, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server hypequery ClickHouse for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "hypequery": { "command": "npx", "args": [ "-y", "@hypequery/mcp", "--config", "your-value" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the hypequery ClickHouse tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "hypequery": {
          "command": "npx",
          "args": [
            "-y",
            "@hypequery/mcp",
            "--config",
            "your-value"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use hypequery ClickHouse and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using hypequery ClickHouse or shows a hypequery ClickHouse tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect hypequery ClickHouse yet

hypequery ClickHouse runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect hypequery ClickHouse

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself
  • Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

B · Others in Databases & datasets that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server hypequery ClickHouse for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user hypequery -- npx -y @hypequery/mcp --config your-value 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the hypequery ClickHouse tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user hypequery -- npx -y @hypequery/mcp --config your-value
  4. Type /mcp in Claude Code

    You should see hypequery ClickHouse listed as connected

  5. Try it

    Use hypequery ClickHouse and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using hypequery ClickHouse or shows a hypequery ClickHouse tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server hypequery ClickHouse for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "hypequery": { "command": "npx", "args": [ "-y", "@hypequery/mcp", "--config", "your-value" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the hypequery ClickHouse tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Cursor’s MCP settings file

    ~/.cursor/mcp.json

    Paste these settings, fill in the empty values and save

    {
      "mcpServers": {
        "hypequery": {
          "command": "npx",
          "args": [
            "-y",
            "@hypequery/mcp",
            "--config",
            "your-value"
          ]
        }
      }
    }
  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use hypequery ClickHouse and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using hypequery ClickHouse or shows a hypequery ClickHouse tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time) · No one-click button: paste the settings and fill in the values yourself

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server hypequery ClickHouse for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "hypequery": { "type": "stdio", "command": "npx", "args": [ "-y", "@hypequery/mcp", "--config", "your-value" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the hypequery ClickHouse tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open VS Code’s MCP settings file

    MCP: Open User Configuration

    Paste these settings, fill in the empty values and save

    {
      "servers": {
        "hypequery": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "@hypequery/mcp",
            "--config",
            "your-value"
          ]
        }
      }
    }
  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use hypequery ClickHouse and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using hypequery ClickHouse or shows a hypequery ClickHouse tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use hypequery ClickHouse💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user hypequery -- npx -y @hypequery/mcp --config your-value

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "hypequery": {
      "command": "npx",
      "args": [
        "-y",
        "@hypequery/mcp",
        "--config",
        "your-value"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "hypequery": {
      "command": "npx",
      "args": [
        "-y",
        "@hypequery/mcp",
        "--config",
        "your-value"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "hypequery": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hypequery/mcp",
        "--config",
        "your-value"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

GitHub starsi
106 (Stars for the whole repo)
This repo holds several MCP listings; its stars count once in rankings
Downloads per weeki
13,205/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
0.14.0
Published to registryi
Nov 16, 2026
Code last changedi
Nov 15, 2026
Maker
hypequery
Packages
npm: @hypequery/mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 16, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account hypequery, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ! Caution

    Has a licence

    GitHub could not identify the licence type; open the file to check

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

What we check → · JSON

Makers: ask for a re-check or report wrong info

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Databases & datasetsi

  • More stars than 95% of the other 1204 servers in this category
  • Published to the registry more recently than 99% of the other 1204 servers in this category
  • Basic checks equal to or better than 51% of the other 1204 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is hypequery ClickHouse safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (0.14.0) reached the registry today.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: QueryWeaver, Supabase, Neon, DBCode, Keboola MCP

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

QueryWeaver

An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.

by FalkorDBGrowing★ 1.1KUpdated 14 months ago

Runs on your computer✓ falkordb.com

Supabase

Supabase’s official server lets AI create tables, query data and review project settings in your Supabase database.

by supabaseWidely used↓ 245.5K/wk★ 3K Stars for the whole repoUpdated 3 days ago

Computer or cloud✓ service owner · supabase.com

Neon

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

by neondatabaseGrowing★ 663Updated 10 days ago

Runs in the cloud✓ service owner · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

by dbcodeioEarly↓ 80/wk★ 367 Stars for the whole repoUpdated 44 days ago

Runs on your computer✓ service owner · dbcode.io

Keboola MCP

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

by keboolaGrowing↓ 1.4K/wk★ 85Updated 5 days ago

Computer or cloud✓ service owner · keboola.com
  • QueryWeaver — Installs on your computer · No key needed
  • Supabase — Cloud or install on your computer · Needs a key · In Claude’s directory
  • Neon — Runs in the cloud, nothing to install · No key needed · In Claude’s directory
  • DBCode — Installs on your computer · No key needed
  • Keboola MCP — Cloud or install on your computer · No key needed

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

@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_datasets discovers available analytics models;
  • get_dataset_schema explains dimensions, measures, metrics, and relationships;
  • query_metric executes named KPIs;
  • query_dataset explores 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.

Tool failures use a stable structured envelope:

{

"error": { "code": "MCP_INVALID_ARGUMENTS", "category": "correctable_input", "message": "Invalid query_dataset arguments: ...", "retryable": false, "correctable": true } }

Unclassified backend failures are redacted to MCP_EXECUTION_FAILED; database error details and physical SQL are not copied into agent-facing errors.

A hosted server can add retryAfterSeconds, relist, reason (its own stable code), hint (the next action), docsUrl and requestId to an error through MCPToolError's options, and refuse a call over a rate limit with MCP_RATE_LIMITED. mcpToolErrorFromSemanticFailure maps a semantic data-plane failure's code to reason and its relist to relist, and takes the host's retryAfterSeconds, hint, docsUrl and requestId as options. createMCPErrorResponse returns the error in the published envelope.

Safer than raw SQL access

  • Tool schemas come from your TypeScript semantic layer.
  • Advertised schemas and runtime validation use the same canonical catalog compiler and deterministic manifest hash.
  • Filters, fields, ordering, and limits are validated.
  • ClickHouse credentials remain in the server process.
  • SQL text stays hidden by default.
  • Tenant identity comes from trusted host configuration, never the prompt.

For tenant-scoped datasets, run the server programmatically with the trusted tenant ID:

await createMCPServer({

datasets, analytics, name: 'acme-analytics', version: '1.0.0', tenantId: session.accountId, queryLimits: { defaultResultSize: 100, maxResultSize: 1_000, maxOffset: 10_000, }, executionBudget: { timeoutMs: 30_000, maxResponseBytes: 1_048_576, }, });

Every query receives a server-side limit even when the agent omits one. The effective ceiling is the lowest applicable server or Dataset limit. Dimensions, measures, filters, ordering, and pagination offsets also have hard package ceilings that server configuration may lower but cannot raise.

Query calls also have a hard wall-clock deadline and UTF-8 response-byte ceiling. Client cancellation and local deadlines propagate through the semantic client to the backing ClickHouse request. Budget failures use the stable MCP_REQUEST_CANCELLED, MCP_QUERY_TIMEOUT, and MCP_RESULT_TOO_LARGE classifications.

Embed in another MCP transport

The semantic executor is independent of stdio and network lifecycle. A hosted gateway can inject its own MCP transport without reimplementing Hypequery's tools, prompts, catalog schemas, or validation:

import {

createMCPExecutor, createMCPProtocolServer, } from '@hypequery/mcp';

const executor = createMCPExecutor({ datasets, analytics, tenantId: trustedPrincipal.tenantId, });

const server = createMCPProtocolServer({ executor, name: 'acme-hosted-analytics', version: '1.0.0', });

await server.connect(hostTransport);

hostTransport can be an MCP SDK in-memory, stdio, or hosted transport. For an explicit local adapter, use startStdioMCPServer(config). The existing createMCPServer(config) and HypequeryMCPServer.start() APIs remain available for compatibility.

Serve over Streamable HTTP

createMCPHttpHandler serves the same tools to remote agents. It answers Fetch Requests, so it runs on Node (listenMCPHttpServer, createMCPNodeRequestListener), Bun, Deno or Cloudflare Workers. The package imports Node built-ins (node:crypto, node:http, node:stream), so a Worker needs the nodejs_compat compatibility flag:

import {

createMCPExecutor, createMCPHttpHandler, createMCPServeAuthenticator, listenMCPHttpServer, } from '@hypequery/mcp'; import { createJwtStrategy } from '@hypequery/serve';

const handler = createMCPHttpHandler({ authenticate: createMCPServeAuthenticator({ strategies: createJwtStrategy({ jwksUri, issuer, audience: 'https://mcp.example.com/mcp' }), }), createExecutor: principal => createMCPExecutor({ datasets, analytics, tenantId: principal.tenantId }), allowedHosts: ['mcp.example.com'], oauth: { resource: 'https://mcp.example.com/mcp', authorizationServers: ['https://example.auth0.com/'], requiredScopes: ['analytics:read'], }, }); await listenMCPHttpServer(handler, { host: '0.0.0.0', port: 3333 });

Every request checks Host and Origin (DNS-rebinding protection), then its credential. Each session belongs to the principal that opened it and gets its own executor for that principal's tenant. With oauth, the server publishes RFC 9728 protected-resource metadata and answers with RFC 6750 challenges that point at it; your identity provider remains the authorization server. createMCPStaticKeyAuthenticator({ key, tenantId }) is the shared-key alternative. From the CLI: hypequery mcp --http. See Remote MCP over HTTP.

Learn more

License

Apache-2.0.