Klarova
Enables governed, scoped Text-to-SQL queries on DuckDB databases, with validated read-only execution and exact SQL citation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Klarovawhat were total sales in Q4 2024?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Klarova
The trust layer between AI agents and your company's data.
Correct, cited, access-scoped answers β served to any agent over MCP.
β Correct | π Cited | π Scoped |
Grounded in governed definitions of what your numbers and terms actually mean. | Every answer traces to the exact query or source span it came from. | Every access is limited to what the asker is allowed to see β and audited. |
The problem
A generic agent β Claude, Cursor, ChatGPT β can already plug into your database or document store. But it doesn't understand your business, so it's confidently wrong: it writes SQL that misreads your schema, answers from whatever it happened to retrieve, cites nothing, and respects no rule about who may see which row or document. That's unshippable anywhere a wrong number or a leaked row has real cost.
Related MCP server: CRMy
The fix
Klarova is a governed context layer that sits between any agent and your data. It does no reasoning of its own β it's the trustworthy foundation an agent stands on. It holds your governed definitions, the grounding that lets an agent query accurately, and governed execution that scopes, runs, and audits every access. It's exposed over MCP, so any agent gets the same correct, cited, scoped answer.
The agent is replaceable; the context layer is the moat.
β¨ What it does
π§ Semantic layer β governed metric definitions, so an agent picks a metric by name instead of guessing the maths.
ποΈ Text-to-SQL, governed β validated read-only queries, executed and returned with the exact SQL that produced each number.
π Governed enterprise search β hybrid (dense + sparse) retrieval over your documents, reranked and multi-hop, every answer citing its source span.
π Cross-source synthesis β combine a governed warehouse number and a document fact into one answer that carries both citations.
π‘οΈ Governed access β identity-scoped rows and documents, enforced inside execution and written to an audit trail.
π MCP-native β plug in Claude, Cursor, or Klarova's own copilot; all get the same governed result.
π An evaluation harness β every capability has an objective test (execution accuracy, retrieval recall, citation match), reported as a number.
π§© How it works
Two things sit between a person and their data, and keeping them cleanly separate is the whole design.
The context layer (the moat) β passive, reusable, MCP-exposed. A semantic model, grounding & memory, and governed execution. Does no reasoning.
The agent (the copilot) β the reasoning consumer that turns a question into an answer by consuming the layer: plan β generate β execute β investigate β verify β synthesize β act β remember. Klarova ships its own reference copilot, but it sits in the same position as Claude or Cursor.
Because the layer holds no agent logic, any agent gets the same governed answers β which is exactly why it, not the chat, is the durable asset.
π Quickstart
Requirements: Python 3.12+ and
uv.
git clone git@github.com:samson-ailabs/Klarova.git
cd Klarova
uv sync # install dependencies into .venv
cp .env.example .env # then add your OpenRouter + embedder keys
uv run klarova # the development CLI/REPLDevelopment workflow:
uv run ruff check . # lint
uv run ruff format . # format
uv run mypy # type-check (strict, src + tests)
uv run pytest # testsπΊοΈ Status & roadmap
β οΈ Early stage β the bootstrap is in place; the walking skeleton is next.
The build follows a walking skeleton, then deepen plan: the thinnest slice that runs and is measured first, then one capability at a time, with every step leaving the system running and re-measured.
Vertical 1 grounds the layer over a warehouse (the numbers) and internal documents (the knowledge), and across both. The same engine-core later serves other domains (data-ops, CRM) by swapping connectors, not the core.
Ship | Delivers | Milestone |
1 | the governed context layer (warehouse + docs) + eval report, over MCP |
|
2 | the full reference copilot (investigate β verify β approve β act β remember) |
|
3 | embedded in a host app + a public hosted demo |
|
Full plan in docs/ROADMAP.md Β· design in
docs/ARCHITECTURE.md Β· decisions in docs/decisions/.
π οΈ Built with
Python 3.12+ Β· LangChain / LangGraph v1 (primitives only) Β· DuckDB + sqlglot (governed
SQL) Β· Qdrant + FastEmbed (hybrid retrieval) Β· the official mcp SDK Β· OpenRouter (model
gateway) Β· ruff Β· mypy Β· pytest.
π License
Apache-2.0. Every source file carries an SPDX header.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/samson-ailabs/Klarova'
If you have feedback or need assistance with the MCP directory API, please join our Discord server