ktx

Local context layer that helps coding agents query warehouses accurately

Local

Install

See setup instructions on docs.kaelio.com

What it does

ktx is a locally run context layer for data agents. It builds a project-level understanding of a SQL warehouse by sampling tables, capturing metadata and usage patterns, detecting joinable columns, and annotating sources so agents write more accurate queries. It also ingests wiki and documentation content, removes duplicates, and flags contradictions for review. A semantic layer combines raw tables with higher-level metrics through a join graph, allowing agents to request metrics declaratively rather than rewriting canonical SQL.

It is aimed at teams already using coding agents such as Claude Code, Codex, Cursor, or OpenCode against a warehouse, and at organisations whose metric definitions are split across dbt, LookML, Metabase, Notion, and wikis. Install it globally with npm as @kaelio/ktx, then run setup and status to configure providers and connections and to build context. Agents reach it through a local MCP server started with ktx mcp start, alongside CLI search commands.

Limitations: it requires an existing SQL warehouse and is read-only by design; it is not a hosted service. You supply LLM and embedding credentials or use a supported local agent sign-in. Usage telemetry is collected, with opt-out options documented.

Compatibility and authentication

Connection
Local
Transports
Unspecified
Authentication
Unknown

Security and permissions

  • When you run the server locally, it runs with your user permissions.
  • Authentication type: Unknown.

Repository data

Stars
1,634
Last push
Nov 18, 2026
License
Apache-2.0
Archived
No

FAQ

What license does ktx use?
Apache-2.0
Does ktx run locally or remotely?
It runs locally.
Is ktx an official server?
It is listed as a community server.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/mcp/ktx"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options