Skip to main content
Glama

Klarova

The trust layer between AI agents and your company's data.

Correct, cited, access-scoped answers β€” served to any agent over MCP.

CI License: Apache-2.0 Python 3.12+ Built with LangGraph v1


βœ… 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/REPL

Development workflow:

uv run ruff check .     # lint
uv run ruff format .    # format
uv run mypy src         # type-check (strict)
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

v0.1

2

the full reference copilot (investigate β†’ verify β†’ approve β†’ act β†’ remember)

v0.2

3

embedded in a host app + a public hosted demo

v1.0

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.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

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