Auto Ontology Mcp
NVIDIA Auto Ontology's semantic layer and a personal knowledge base as an MCP server for Claude, ChatGPT and other MCP clients. No LLM API key needed.
Quick start · Demo · Knowledge base · Tools · How it works · Safety
Auto Ontology MCP (auto-ontology-mcp) brings NVIDIA Auto Ontology's semantic layer to any MCP client, for two jobs:
- Ask your databases. Point it at a database, and the model you already use (Claude Code, Codex, OpenClaw, Hermes Agent, Cursor, VS Code, or the Claude and ChatGPT apps) builds business Terms, reviews joins and answers questions with SQL that the server checks against the ontology and the data.
- Keep a personal knowledge base. Share receipts, statements, papers, book notes or screenshots with your assistant; it reads them and stores the facts as records, the ideas as linked concepts, the passages worth finding again in a full-text index, and where each came from. The full originals stay in your Obsidian vault. Later questions get exact numbers, searchable quotes and links back to the original.
Tip
Use it in place of an LLM Wiki. In Karpathy's LLM Wiki pattern the model compiles your sources into markdown pages that you read in Obsidian. Auto Ontology MCP runs the same loop (ingest, query, lint, with an index and a log) on an ontology instead of loose pages: facts go into typed tables you can sum, filter and compare with SQL, ideas become concept pages with typed links, every record, page and link keeps its source and the quote behind it, and export_wiki writes it all out as an Obsidian vault with aliases, [[links]] and the graph view. How the two map
Auto Ontology runs its own LLMs (NVIDIA NIM) behind a Next.js, FastAPI and Postgres stack. This project hands every language step (reading, extracting, naming, judging, writing SQL) to the model in your MCP client, so there is no model endpoint to host and no API key to configure. The server keeps the deterministic work: schema extraction, profiling, key inference, validation, storage and read-only execution, in local SQLite files.
Why
Text-to-SQL fails quietly. The query runs, a number comes back, and nothing says it is wrong.
| ❌ A model reading a raw schema | ✅ The same model with auto-ontology-mcp |
|---|---|
Guesses which of billing_city_id and delivery_city_id "the customer's state" means |
Gets the join path from reviewed relationships, with the default role and the alternatives spelled out |
Joins customers.customer_id = orders.order_id because the integers happen to overlap |
validate_sql rejects the join and names the one the ontology knows |
Filters state_name = 'pennsylvania' and reports zero revenue |
Is told the stored value is 'Pennsylvania' before running the query |
Writes discount_pct > 20 against a column that holds 0 to 0.3 |
Is asked whether it meant 0.2 |
| Sums a product price after joining to order lines and inflates the total | Gets a fan-out warning for the one-to-many join |
| Sums a product's order lines and counts its tags in one SELECT, so each line is counted once per tag | Is told that order lines and tags meet only at the product, and to aggregate each in its own subquery |
| Links two tables because both point to the same parent (an order line and a product tag of the same product) | Hears from find_join_path and check_answerable that the path only meets at the product and does not say which row belongs to which |
| Answers "return on ad spend" with whatever revenue column it finds | Hears from check_answerable that nothing covers ad spend, and says so |
See it in action
From the project's README.
