Ran only the parser (the sqlglot extractor), with no API key: it traced a join through a CTE in 5 ms. Notes that the full stack needs a NIM key and Postgres.
Repo of the Week · Week 46, 2026
Auto Ontology: teach your AI agent what your company data means
A free NVIDIA tool that teaches AI agents what your company data means, so they stop grabbing the wrong revenue column.
What’s a repo?A repo is a project’s code folder on GitHub, free to download. NVIDIA/auto-ontology on GitHub
NVIDIA's open-source context layer that maps business terms to your database, so agents write SQL against definitions people have checked. Served over MCP and an API.
- Stars
- 10.6k
- Forks
- 864
- npm / week
- –
- Latest
- v1.2.0
What it is
Ask an agent for last quarter's revenue and it can pick the wrong column and still sound sure. Auto Ontology first builds a dictionary of your business terms from the database. People check it, and then the agent answers from that dictionary and shows the SQL it ran, so you can verify the number.
Who it’s for
Data and platform teams that want AI agents (Cursor, Claude or in-house agents) to answer questions from company databases, and developers building text-to-SQL or agent analytics who need answers they can check.
What you need
Docker with Compose v2 (or Kubernetes with Helm), uv, an NVIDIA API key from build.nvidia.com or another OpenAI-compatible model endpoint, and a supported database such as Postgres, Snowflake, Databricks or DuckDB. It is a server stack, not a single command.
Why it’s trending
Created Apr 27, 2026, it now has 10,591 stars and 864 forks (GitHub API, Nov 9, 2026). GitHub Trending shows 9,327 new stars this week. On X, 460 original posts mentioned Auto Ontology in the past 7 days; the 72 we read came from 64 different people. Here’s what people are sharing:
- Reaction
Your boss asks the agent for last quarter's revenue, gets a clean number in 3 seconds, and nobody notices it used the wrong column. Explains how Auto Ontology drafts business terms, checks SQL against certified definitions and serves agents over MCP: 3,104 likes, 320 reposts.
@Ldataengineer · Nov 3, 2026 ↗ - Reaction
Says Auto Ontology targets why an agent can write valid SQL against a company database and still return the wrong number: the database stores columns and the agent has to guess what they mean. 907 likes, 117 reposts.
@akshay_pachaar · Nov 8, 2026 ↗ - Reaction
NVIDIA open-sourced a semantic layer for AI agents: revenue can be defined differently in two systems, and a SQL query can be valid and still use the wrong definition. 801 likes, 99 reposts, 59 replies.
@Sumanth_077 · Nov 4, 2026 ↗ - Trending
NVIDIA/auto-ontology is No. 1 on GitHub Trending today, with 5,897 stars.
@chinchoukou · Nov 5, 2026 ↗ - Trending
Tops a daily GitHub heat ranking with +2,015 stars that day; its Hacker News thread was the most discussed, at 290 points and 139 comments (in Chinese).
@LenardReads · Nov 7, 2026 ↗ - Reaction
A rival tool tested the same idea, compiled schema knowledge, on BIRD Mini-Dev with Claude Haiku 5.5: 53.3% with raw DDL against 63.9% with compiled context. They say it is not a test of Auto Ontology, which they haven't run.
@ekosproject · Nov 4, 2026 ↗ - Caution
What to watch before using it: no accuracy scores published yet, database passwords stored in plaintext in Postgres unless you set up Vault, and no outside contributions accepted.
@0xSynapz · Nov 3, 2026 ↗ - Caution
Argues that defaulting to NVIDIA's embedding models raises switching costs, because re-embedding company data for another provider can be expensive.
@TuckerPeters6 · Nov 3, 2026 ↗ - Concern
When finance and sales define revenue differently, how does the semantic layer decide which one the agent should trust?
@gupta_pranjal · Nov 5, 2026 ↗ - Concern
Accuracy figures aren't public yet. How big is the gain compared with feeding the agent the raw schema?
@AIchanyi · Nov 5, 2026 ↗
What it does
An open-source library from NVIDIA that builds a context layer between AI agents and company databases. It reads database metadata and drafts an ontology: business terms such as Customer or Invoice Line mapped to columns, reviewed SQL for each measure, and how tables join. People test and certify it, then an agent answers plain-language questions from it and returns the answer, the SQL and the rows. Agents reach it through a read-only MCP server, a REST API and three agent skills. It runs as a full stack (Next.js web app, Python services, Postgres with pgvector) on Docker Compose or Helm, with NVIDIA NIM models by default or any OpenAI-compatible endpoint.
Reads schemas, profiles columns and samples values, then names business terms, maps them to columns, infers joins and bridge tables, and suggests SQL attributes from query history
Test with real questions, refine terms and SQL attributes in the web UI or API, then certify them so the agent computes each measure the same way every time
Each answer comes with its SQL and the steps it took; filter values and the query are checked against the database and the SQL is repaired when a check fails
check_answerable reports whether the ontology covers a question. Asked about ad spend the sample data lacks, the agent asks you to clarify instead of guessing
A read-only MCP server with 9 tools (readiness, term lookup, answerability, ask_question). Each user signs in, and every call runs with that user's permissions
PostgreSQL, MySQL, Databricks, Snowflake, ClickHouse, Trino, Apache Kyuubi, HeavyDB, DuckDB and SQLite
Imports and exports model definitions as Apache Ossie YAML, so it can sit next to the semantic models you already have
What people built with it
Ran an Auto Ontology workshop: the AI's SQL ran but left out the Pennsylvania filter, and the replay shows how to verify the result in PostgreSQL.
How to use it
Get the basics ready
You need Docker with Compose v2, uv and an NVIDIA API key. Create the key (it starts with
nvapi-) at build.nvidia.com.Prefer another provider? Any OpenAI-compatible endpoint works; see Advanced.
Clone it and create .env
git clone https://github.com/NVIDIA/auto-ontology.git && cd auto-ontology cp .env.example .envIn
.env, setDEFAULT_MODELS_API_KEY,AUTH_SECRET,APP_URL=http://localhost:3000,POSTGRES_PASSWORD,CONNECTION_STRINGSand the admin and pgAdmin passwords. Replace every default password: Compose publishes Postgres, pgAdmin and the web app on your machine.Load the sample database
Start Postgres and load Wide World Importers, Microsoft's sample sales database:
docker compose up -d --wait postgres git clone https://github.com/NVIDIA/auto-ontology-eval.git ../auto-ontology-eval (cd ../auto-ontology-eval && uv sync && cp .env.example .env && \ POSTGRES_PASSWORD='<the same password>' \ uv run python scripts/seed/seed_wwi.py --database-name wideworldimporters --drop)Start the stack
docker compose up -d --buildOpen http://localhost:3000 and sign in with the admin email and password from
.env. Go to Settings → Semantic Compilation, turn it on and wait for Semantic compilation is ready.Ask a question in Chat
PromptWhat was revenue for the USB food flash drive - sushi roll in Pennsylvania in June 2015?The README's answer is $588.80 from 3 invoice lines, shown with its SQL and the steps, so you can check it against the source.
- For the Quickstart: Docker with Compose v2, uv and an NVIDIA API key (nvapi-...) from build.nvidia.com (README)
- Or Kubernetes with Helm, the official install; chart and images are on NVIDIA NGC (setup skill, DEPLOYMENT.md)
- A supported source: PostgreSQL, MySQL, Databricks, Snowflake, ClickHouse, Trino, Apache Kyuubi, HeavyDB, DuckDB or SQLite (README)
- Models that support structured output: NVIDIA NIM by default, or any OpenAI-compatible endpoint set per role (README)
- Python 3.12 or 3.13 only if you work on the code (pyproject.toml)
- The code is free (Apache-2.0); model calls are billed by whichever endpoint you configure
Connect Cursor or Claude over MCP
AUTO_ONTOLOGY_API_URL=http://localhost:3000 \
uvx --from "git+https://github.com/NVIDIA/auto-ontology.git#subdirectory=mcp" auto-ontology-mcpThen add it to Cursor in ~/.cursor/mcp.json, restart and sign in when prompted:
{
"mcpServers": {
"auto-ontology": { "url": "http://localhost:3003/mcp" }
}
}Claude Desktop bridges it with npx mcp-remote http://localhost:3003/mcp. All 9 tools are read-only, and every call runs with the signed-in user's permissions.
Check that MCP sign-in will work
A 200 means this deployment can act as the sign-in server. Anything else: run the frontend from your checkout with pnpm dev.
curl -s -o /dev/null -w '%{http_code}\n' $AUTO_ONTOLOGY_API_URL/.well-known/oauth-authorization-serverAsk from a script over the REST API
Mint a token under the user menu → API Tokens. The reply is a server-sent event stream: the result event carries the answer and its SQL, and data: [DONE] ends it.
curl -N http://localhost:3000/api/chat/completions \
-H "x-api-key: $AUTO_ONTOLOGY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"question": "How many orders shipped last week?"}'Use your own model endpoint
Each role (REASONING, NON_REASONING, EMBED, RERANK) falls back to these unless you set its own _ENDPOINT, _API_KEY and _MODEL. Use models with structured output, and keep the same embedding model for ingestion and queries.
DEFAULT_MODELS_ENDPOINT=<OpenAI-compatible URL>
DEFAULT_MODELS_API_KEY=<your key>
DEFAULT_MODELS_MODEL=<model name>Let a coding agent drive it
The repo ships three agent skills: nvidia-ontology-setup, nvidia-ontology-management and nvidia-ontology-query. Point your agent at AGENTS.md in the repo to start.
Move semantic models in and out
Use Settings → Import / Export, or POST /api/model/import and POST /api/model/export, to exchange definitions as Apache Ossie YAML.
Deploy on Kubernetes
The official install is the Helm chart in DEPLOYMENT.md, with the chart and images in NVIDIA's NGC catalog. Put secrets in a values file that only you can read, not on the command line.
Gotchas
- Keep ports 3001 and 3002 on a private network. The Python backend trusts the user ID the web app forwards, and the ingestion endpoints have no authentication of their own.
- Without Vault, database passwords are stored unencrypted in Postgres. Vault turns on only when all four
VAULT_*settings are set. - Change every default password before
docker compose up: Compose publishes Postgres, pgAdmin and the web app on the host. - If the UI loads without its left menu after a restart, clear site data for
localhost:3000and sign in again. - Predictions upload your connected tables to Kumo's hosted KumoRFM service. Leave
KUMO_RFM_API_KEYunset unless your data review allows that. - The MCP package installs from GitHub.
uvx auto-ontology-mcpon its own won't resolve until it is on PyPI.
Before you start
- Most of the likes came from three explainer posts. In our sample, posts by @Ldataengineer, @akshay_pachaar and @Sumanth_077 hold 4,812 of 5,092 likes; few people had posted hands-on results yet.
- No accuracy numbers are published in the README. Test it on your own data before trusting its answers.
- It is a server stack (web app, two Python services, Postgres with pgvector, optional Vault), not a one-line install.
- Database passwords are stored unencrypted in Postgres unless you configure Vault.
- There are no GitHub releases yet, and the team doesn't accept outside code contributions.
- Defaults lean on NVIDIA models. Ingestion and queries must use the same embedding model, so switching later means indexing again.
FAQ
What is Auto Ontology?
An open-source library from NVIDIA that builds a context layer between AI agents and company databases. It reads database metadata and drafts an ontology: business terms such as Customer or Invoice Line mapped to columns, reviewed SQL for each measure, and how tables join. People test and certify it, then an agent answers plain-language questions from it and returns the answer, the SQL and the rows. Agents reach it through a read-only MCP server, a REST API and three agent skills. It runs as a full stack (Next.js web app, Python services, Postgres with pgvector) on Docker Compose or Helm, with NVIDIA NIM models by default or any OpenAI-compatible endpoint.
Is it free?
Yes. NVIDIA/auto-ontology is Apache-2.0. Model calls go to the endpoint you configure: by default NVIDIA's hosted API catalog with an nvapi- key, or self-hosted NIM, or any OpenAI-compatible endpoint.
Does it work with Cursor, Claude or other coding agents?
Yes, through its MCP server, which any MCP client can use; the README shows setup for Cursor and Claude Desktop. The repo also ships three agent skills and an AGENTS.md that teach a coding agent to install, manage and query it.
Which databases does it support?
PostgreSQL, MySQL, Databricks, Snowflake, ClickHouse, Trino, Apache Kyuubi, HeavyDB, DuckDB and SQLite, per the README. DuckDB and SQLite are set through connection strings only.
How accurate is it?
Not published yet. People keep asking this on X. The README gives no accuracy score and points to NVIDIA's separate evaluation repo to run text-to-SQL benchmarks such as BIRD yourself (checked 2026-11-09).
What if two teams define revenue differently?
People keep asking this on X too. Per the README, it reconciles definitions across systems and the agent answers from the terms and SQL attributes that people certify. It does not describe an automatic rule for picking between two teams' definitions, so the review step is where that gets decided.
Do I have to use NVIDIA models?
No. Every model role can point to any OpenAI-compatible endpoint that supports structured output. The defaults are NVIDIA Nemotron models on build.nvidia.com.
Can I contribute code?
Not yet. The team doesn't accept external pull requests; integration requests and bug reports are welcome as GitHub issues.
How is the Repo of the Week picked?
We feature the GitHub repo most talked about on X that week in AI and vibe coding, counted by distinct authors and engagement, and cross-checked against GitHub Trending. Stats come from the GitHub API and are dated. Auto Ontology was checked 2026-11-09.
All weeks
Every pick stays here with its own page. Newest on top.
- Week 48, 2026This week
ffmpeg-skill: let your coding agent edit your videos
A free add-on that turns Claude Code, Cursor or Codex into a video editor that works on your own computer.
- Week 47, 2026Last week
Modern Web Guidance: stop your coding agent writing old web code
A free add-on from the browser makers that teaches your AI coding agent today's web features, so it stops writing heavy old-style code.
- Week 46, 20262 weeks ago
Auto Ontology: teach your AI agent what your company data means
A free NVIDIA tool that teaches AI agents what your company data means, so they stop grabbing the wrong revenue column.
- Week 45, 20263 weeks ago
T3 Code: run your coding agents from one app, on any device
A free app that runs Claude Code, Codex and other coding agents on your computer and lets you steer them from your phone, browser or desktop.
- Week 44, 20264 weeks ago
Security Audit Skill: Cloudflare's security audit for your coding agent
A free add-on that makes your AI coding agent check your code for security holes, with a second agent double-checking every finding.
- Week 43, 20265 weeks ago
HyperFrames: write HTML, render video
A free tool that lets your AI coding agent make real videos by writing a web page.
- Week 42, 20266 weeks ago
REA: Reverse Engineer Anything
A free tool that lets your AI coding agent take apart any app to see how it works.