OntoPoc

Open-source ontology tool · team app + MCP / Claude

A confirmation gate between your data and your AI.

Agents answer only from definitions a named person confirmed against the current data. Otherwise they refuse, and say who can confirm. OntoPoc is an open-source ontology tool for data teams and for Claude over MCP: a model may draft what your tables mean, code checks every definition against all of the data, a second person confirms it, and when the data changes it goes back for another look.

The demo gives you a read-only guest account on synthetic sample data, answers questions within a daily cap, and deletes guests after 24 hours. It runs on a temporary address.

View · Orderorders · 150 rows

Valid orders

status_code is Paid, Shipped or Delivered — not New, Cancelled or Refunded

Drafted

Proposed by Builder A. A model could have drafted it just as well; either way it is only a proposal.

Asknot used yet: nobody has checked or confirmed it.

Checked against the data

Code ran it on every row of orders v1: it keeps 107 of 150. Every status code, 0 to 5, has a written meaning.

Askstill not used: a check is not a confirmation.

Confirmed by Builder B

Confirmed by a second builder, never the one who proposed it. Kept with the data version it was confirmed on: orders v1.

Ask“Total amount of valid orders?” → 119,810

Needs another look

orders v2 arrived: 6 rows changed, 4 added, and a status code 6 nobody has given a meaning.

Askrefused, naming this view and who can confirm it.

One definition’s life on the pilot sample data, the same data the demo uses. Pick a step to hold it.

01 The problem

The sum was right. The definition was nobody’s.

Definitions nobody stood behind

Add up the amount column of the sample orders and you get 162,960. The arithmetic is correct, and it is not revenue: cancelled and refunded orders still carry an amount. Paid, shipped and delivered orders come to 119,810.

Nothing in the table says which one is revenue. Only someone who knows the business can, and usually nobody writes it down or puts their name to it.

Numbers that drift

Next month the extract carries a status code nobody has seen before. The dashboard keeps answering with last month’s meaning.

Nobody is told that the agreement underneath the number no longer covers the data.

OntoPoc keeps the definition, the check, the person who confirmed it and the data version together, so an answer can say what it rests on. When it cannot, the AI declines and says who can confirm.

02 How it works

Three steps, each with someone or something accountable.

  1. Step 1

    Draft it, then let code check it against every row

    Write a definition: an object type, what each code in a column means, a relation, or a view such as Valid orders. Or let a model draft one. Code then runs it on the full dataset, not a sample. This view keeps 107 of 150 orders, and every status code has a meaning.

    Relations are counted the same way. In the bundled demo workbook, 157 of 160 order rows connect to a customer; the other 3 point to KH099, which is not in the customer table.

    OntoPoc team app: the view Valid orders, its rule as the code reads it, now keeps 107 of 150 rows; confirmed by Demo builder based on orders v1.
    The view, its rule as code reads it, and the rows it keeps.
  2. Step 2

    A second person confirms it, never the one who proposed it

    Another builder reads the checks and the row count for each value, then confirms. Whoever proposed a definition, or changed it since it was last confirmed, cannot confirm it; any change to a confirmed definition, its name included, sends it back. With only one builder the rule opens up, and the log says so.

    The confirmation keeps who confirmed and on which data version. Q&A, boards and agents use confirmed definitions only.

    OntoPoc team app: meanings of status_code, confirmed by Demo builder based on orders v1; codes 0 to 5 with their meanings and the number of rows for each.
    Confirmed by a named builder, based on orders v1, with rows per code.
  3. Step 3

    When the data changes, it goes back for another look

    Every upload re-checks what was confirmed. In orders v2, six rows changed, four were added and code 6 appeared without a meaning. The meanings, the Order type and the Valid orders view all went back to “needs review”, each with its cause.

    Until someone confirms them again, questions that use them are refused; builders are told which definition waits and who can confirm it, viewers only that the answer waits. Agents over MCP get the same refusal; a board shows that it waits, and the last number.

    OntoPoc team app after orders v2: the meanings of status_code need review because code 6 appeared with no meaning; the table shows rows when last confirmed and rows now.
    After orders v2: rows when last confirmed, rows now, and the new code 6.

Screens from a local copy of the demo workspace (pilot sample data); the last one after uploading orders_update.csv.

03 Receipt

The sample data, in numbers you can recompute.

These figures come from the synthetic pilot data in the repository, generated with a fixed seed, not from a customer. Run make_sample.py and compare them with expected_numbers.txt.

The demo serves this data. The pilot kit walks a team of three to eight through the same steps on their own machine.

OntoPoc · receipt pilot sample, orders v1


Orders
150
Customers
40

Status codes: New 7 · Paid 12 · Shipped 32 · Delivered 63 · Cancelled 19 · Refunded 17


Sum of amount, every order
162,960not revenue
cancelled or refunded: 36 orders
38,170
Valid orders (Paid, Shipped, Delivered)
107 rows
Valid order amount
119,810confirmed
Paid 10,770 · Shipped 36,800 · Delivered 72,240

orders_update.csv → orders v2
154 rows
changed 6 · added 4 · new code 6 (1 row)
Valid orders
needs another look
“Total amount of valid orders?”
refused, with the reason

Source: docs/pilot/sample · walkthrough: FIRST_DEFINITION.md

04 Where it fits

The confirmed part of a semantic layer, kept on your tables.

vs Generating an ontology automatically

Recent research has a language model build most of an ontology or graph from text, and says openly what it leaves unmeasured. OntoPoc works on the step after the draft, mainly on tables: a drafted definition counts for nothing until code has checked it and a person has confirmed it.

vs A knowledge graph

An ontology says which objects exist, how each is identified and which relations are allowed. A knowledge graph usually also holds the instances and their links. OntoPoc keeps to the ontology, on data copied into its own workspace; it is not a knowledge-graph platform.

vs A semantic layer

Your metrics may already be defined in a semantic layer. Who signed them? Who notices when the data changes underneath? OntoPoc keeps the person and the data version with each definition, and the AI refuses to use it once either no longer holds. It does not export to a specific semantic layer yet.

What it is: a self-hosted team app with accounts and three roles (admin, builder, viewer); datasets from CSV, Excel or read-only PostgreSQL and MySQL (copied in, at most 500,000 rows and about 200 MB per pull); light pipelines and lineage; object types, relations, views and derived properties; Q&A, boards and MCP agents over confirmed definitions only.

What it is not: a data platform, an orchestrator, a live query engine over your database, a chart builder or a knowledge-graph platform.

For questions, the model sees structure, confirmed meanings and the values of columns with few distinct values, never your rows. Code runs the query and checks which definitions it used.

05 MCP / Claude

An ontology MCP server for Claude and other clients.

An agent connects as a named person, with a personal token (ONTOPOC_TOKEN) an admin makes in the app. With ONTOPOC_TOOLSET=read, as below, or a read-only token, it gets only six read-only tools. Like Q&A, it answers only from confirmed definitions that person may see, and refuses the rest with the reason. The tools share the local service with the page, so start the service first.

  • read definitions
  • ask
  • run an OntoPoc Query
  • list unconfirmed items
  • read a derived property
  • see whether each definition is confirmed now

Add it as an MCP server (from the repo root)

claude mcp add ontopoc -- env ONTOPOC_TOKEN=<your token> ONTOPOC_TOOLSET=read \
  PYTHONPATH=$PWD/src python3 -m ontology_poc_generator.mcp_server

Works with MCP clients such as Claude Code, Claude Desktop and Cursor, over local stdio; the app’s AI tool access page gives a JSON block (add "ONTOPOC_TOOLSET": "read" to its env). These six tools cannot upload, write definitions or confirm; a token with the scope “all” used without ONTOPOC_TOOLSET=read also exposes the earlier screen’s run tools. Full list: docs/MCP.md.

Claude Code plugin

claude plugin marketplace add Longado/ontopoc
claude plugin install ontopoc@ontopoc

Its two commands, /ontopoc:ontopoc-build and /ontopoc:ontopoc-review, still work on the earlier run-based screen, not on the team app’s gate.

06 Run it yourself

One command, on your own machine.

git clone https://github.com/Longado/ontopoc.git && cd ontopoc && ./scripts/ontopoc-start.sh

Needs Python 3.11+ and Node 22+ (Mac or Linux). It installs the dependencies, builds the page, creates the first admin on the first run and serves everything at http://127.0.0.1:8767/. Data stays in ~/.ontopoc/data. A model key (DeepSeek or OpenRouter) is optional: without one, Q&A and modelling say the key is missing and everything else works.

For a team: the two-week pilot kit · running behind HTTPS.

07 Status

Where it honestly stands.

  • StageAlpha, in development. Neither the team app nor the earlier screen has been used independently by anyone other than the author.
  • PlatformsThe page has only been used on macOS.
  • DataTried on synthetic and public data, never on a real client’s data.
  • DemoTemporary address, read-only guests, questions within a daily cap, guests deleted after 24 hours.
  • LimitsListed in Known issues.

08 FAQ

Ontology FAQ

What is ontology engineering here?

Writing checkable definitions for business objects: how each is identified, what its codes mean and which relations are allowed. In OntoPoc a model or a person drafts, code validates against the data, and a different person confirms.

Ontology vs knowledge graph?

An ontology states the types and the allowed relations; a knowledge graph usually also holds concrete instances and their links. OntoPoc focuses on the ontology side, on the data you upload. It is not a knowledge-graph platform.

How does this relate to a semantic layer?

A semantic layer defines business meaning and metrics on a warehouse. Your metrics may already be there: who signed them, and who notices when the data changes underneath? OntoPoc keeps the confirming person and the data version with each definition, sends it back for another look when the data moves, and the AI will not use it until someone confirms it again. It does not export to a specific semantic layer yet.

What is ontology MCP in OntoPoc?

An agent reading a team’s confirmed ontology through the Model Context Protocol. With ONTOPOC_TOOLSET=read or a read-only personal token, OntoPoc’s MCP server gives an agent six read-only tools (read definitions, ask, run an OntoPoc Query, list unconfirmed items, read a derived property, see whether each definition is confirmed now) for Claude Code, Claude Desktop, Cursor and similar clients, and refuses anything that rests on an unconfirmed definition. See MCP / Claude above.

How is this different from generating an ontology automatically?

Automatic generation produces a draft. OntoPoc works on what happens after the draft: code checks each definition against the data, a named person confirms it, and it goes back for another look when the data changes. A model may draft a definition, but Q&A and agents do not use it before those checks and a confirmation. Until then a board shows a number that rests on it only to builders and admins, greyed out with the reason.

Who is OntoPoc for today?

A small data team (three to eight people: ops, finance, data) that wants an AI to answer questions about its own tables, and wants it to refuse rather than answer quietly wrong. Builders write definitions and confirm each other’s; viewers ask questions and read boards. Nobody outside the author has used it independently yet.