The context layer that checks itself · MCP-delivered
Connect ClariLayer to Claude Code, Cursor, or Codex. It bootstraps your real working context from the SQL you already have — the context your AI data agent recalls before it answers. Then your agent stops making the same data mistakes — wrong table, wrong join, refunds counted in revenue — session after session.
One command to connect
Your context layer
Active customer
Definition · you → reconciled
Net revenue (excl. refunds)
Definition · from dbt
orders.region — null before 2023
Schema note · you → reconciled
fct_orders ↔ dim_customers join
Join path · you
Reconciled against your source — not blindly asserted. Mismatches surface as a caveat so you and your agent know what to trust.
ClariLayer never holds your warehouse credentials and never runs SQL server-side. Your agent runs the query with its own access and sends back the result shape; ClariLayer reconciles it and flags caveats.
Bootstraps from the SQL and dbt you already have


See it work inside the agent
One command to connect. Then your agent recalls the definition you saved, runs the query with its own warehouse access, and reconcile flags what to treat with care.
saved context · returned by recall
Reenactment of the real loop — the same recall → reconcile → caveat flow the MCP runs today. Your agent keeps its own warehouse access; ClariLayer never holds your warehouse credentials and never runs SQL server-side.
New chat, new context window — and your agent has forgotten which table is the real one, how the joins go, and which definition you actually use. You re-explain it. Again.
Hand-typing your definitions into a notes file has the same trust problem as the original numbers: nothing checked it against your warehouse. It drifts, and your agent trusts it anyway.
Wrong table, wrong join, refunds counted in revenue, an active customer defined three different ways — the same mistakes, session after session, because nothing remembers the correction you already made.
Reconciled, not asserted
Hand-typing your definitions into a notes file is a real, useful start — but nothing checked it against your warehouse. A ClariLayer entry is the same definition, reconciled against your real warehouse result: provenance and status are shown, and a declared-vs-actual mismatch surfaces as a caveat instead of a confident wrong answer.
Just text. Nothing reconciled it against your warehouse, so when the definition drifts the agent keeps trusting the stale line — confidently.
The declared definition counted logged-in users; reconciling against your warehouse showed the billing rule (mrr > 0) returns a different number. Flagged for you to resolve — not hidden behind a clean-looking total.
Reconciled against the result your agent computed locally. ClariLayer never holds your warehouse credentials and never runs SQL server-side — it checks declared against actual, and shows its work.
How it works
One MCP server, four verbs your agent can call in-flow. No destination app to visit — it rides along inside the agent you already use.
Point ClariLayer at the work you already have — your SQL files, your dbt models, an existing CLAUDE.md. Your SQL is validated and structured; the rest is imported as notes. Day-1 context, not a cold empty store.
Mid-task, your agent can pull the right context in-flow — the definition you actually use, the join path, the gotcha — without you leaving Claude Code, Cursor, or Codex.
Every correction, definition, and schema note you make persists. Your agent retains it across sessions, so you stop re-explaining the same thing every chat.
Ground a saved definition against your real warehouse result. A declared-vs-actual mismatch surfaces as a caveat — checked against your source, not blindly asserted.
Without your saved context, the agent guesses from raw table names. With it, the agent recalls the definition you reconciled against your warehouse — and knows what to treat with care.
The first reconcile
The acute analyst moment: two sources disagree and the QBR is in an hour. ClariLayer reconciles a saved definition against your real warehouse result and flags the drift as a caveat — checked against source, never blindly asserted.
Your dashboard says
$1.42M
Net revenue for the quarter — the number on the board.
Your agent’s query returns
$1.51M
The ad-hoc query your agent just wrote, against the same warehouse.
A $90K gap, and no way to tell which one is right.
reconcile
Your agent runs the stored net_revenue SQL with its own access and reports the result shape back. ClariLayer compares the saved definition’s declared signals — its columns, grouping, and aggregates — against what came back.
They don’t line up: the live result is missing a column the saved definition expects, so reconcile records a caveat. That’s the signal to look closer — not a ruling on which dollar figure is right.
The caveat sends your agent digging
With its own warehouse access it traces the $90K to the cause: the ad-hoc query never joined the refunds table, so it reported gross, not net. You ship the refund-adjusted $1.42M.
remember
You correct it once so next quarter the agent starts from it instead of rediscovering it:
The caveat caught the $90K discrepancy an hour before the QBR. Your agent traced it to the missing refunds join, you shipped the right number, and the correction is remembered for good. Your agent runs the query with its own access; ClariLayer never holds your warehouse credentials and never runs SQL server-side.
One analyst, your own data, your own agent. No data team, no platform account, no procurement — just your context, bootstrapped, reconciled, and remembered.
Bootstrap
Your agent doesn't start from zero — and it doesn't start from a hand-typed CLAUDE.md. Point ClariLayer at the work you already have.
What gets ingested
“Bootstrap my context from ./analytics/sql + my dbt models.” Real working context on the first session.
Reconcile
A saved definition is reconciled against your real warehouse result — your agent runs the SQL with its own access and reports back the shape.
What reconcile returns
ClariLayer never holds your warehouse credentials and never runs SQL server-side. Evidence-backed, caveat-aware context.
Remember
Every correction, every reconcile, every new note persists. Your agent grounds on more of your context over time.
The retention loop
“Claude Code finally understands my project.” The context you build is the moat.
For teams · the Governed Context Edge
ClariLayer starts as your personal context layer. The Governed Context Edge — your reconciled definitions promoted into a governed team canon, with ownership, approval, and one right metric — is built and in private pilot. A few design-partner slots are open.
The definitions and corrections you build solo are exactly what later merges into shared, owned team context — the same engine, one level up.
When a team adopts it, governance arrives: who owns a definition, what's approved, and the one right answer everyone's agents use.
Start as your personal context layer with no procurement. When the team is ready, the Edge is already built — private pilots are onboarding now.
Connect your AI
Add the MCP to Claude Code, Cursor, or Codex, then mint a context key. Your agent starts recalling and reconciling your saved context in-flow — no extra app to switch to.
Run in your terminal
claude mcp add --transport http clarilayer https://clarilayer.com/api/mcp/mcp --header "Authorization: Bearer cl_YOUR_CONTEXT_KEY"Replace cl_YOUR_CONTEXT_KEY with the context key you mint in ClariLayer. The key is shown once at creation, so paste it straight into the command.
Built to be trusted with your data
The whole point is that your AI's context is grounded against reality, not just asserted. We measured what that is worth — and we label every claim with exactly how far it goes.
Measured, not manufactured
In our internal paired eval, the same agent answered 36 of 38 data questions correctly with ClariLayer connected — 26 of 38 without. The cheaper the model, the bigger the lift: the control went confidently wrong under session load.
Shipped, not slideware
Bootstrap, recall, remember, and reconcile are live in production — one MCP server your Claude Code, Cursor, or Codex agent connects to and calls in-flow. No destination app to visit.
A standard, not a shortcut
A saved definition is checked against your real warehouse result: a mismatch is flagged as a caveat, otherwise it stays asserted. A “verified” stamp only ships when it can never be wrong — ours arrives with the SQL parser.
Your data, your access
It never runs SQL server-side. Your agent runs the query with its own access and sends back the result shape plus any preview rows it chooses to include — ClariLayer reconciles on that, then flags what to trust.
FAQ
What ClariLayer can see, what it doesn't touch, what's free, and what “reconciled” actually means.
Connect ClariLayer to Claude Code, Cursor, or Codex in one command. Free to start — no team, no procurement, just your context.
Connect your AIFor teams
The Governed Context Edge is in private pilot — a shared, governed canon for your whole team's agents. We onboard design partners personally.
We use privacy-friendly analytics
With your consent we use PostHog and Vercel Analytics to understand how ClariLayer is used so we can improve it. We never sell your data. Errors are always monitored (without analytics) so we can keep the app reliable. You can change your mind anytime.