Skip to content
ReviewRamble

The weekly brief

AI, reviewed, in your inbox.

  • New reviews of tools, models, MCP servers and repos, with the verdict up front
  • Re-checked prices and ratings when something changes
  • New analysis pieces as they are published

Models, agents, MCP servers and the tools actually worth your time.

One email a week. Unsubscribe with the link in any brief. How we use your email

Auto Ontology MCP

Port of NVIDIA Auto Ontology's semantic layer: checks agent SQL against reviewed joins and real values, plus a knowledge base.

Reviewed by ReviewRamble editors · Updated

Setup docs Open source

Share this page:XLinkedInFacebookRedditWhatsAppEmail

Our rating

4.0/5

A text-to-SQL server that assumes the model will be wrong and checks for the specific ways it usually is, which makes it worth the modelling effort for anyone asking an agent questions about a real database.

What is Auto Ontology MCP?

Auto Ontology MCP, by the GitHub user gogoymh, rebuilds the ideas of NVIDIA's Auto Ontology as a local MCP server. Pointed at a database, it scans and profiles the tables, infers undeclared keys, and lets the model in your client name business terms and review joins; afterwards it checks every query the model writes against that ontology and the stored values before running it read-only. The same server keeps a personal knowledge base of records, linked concepts and full-text passages in SQLite, with originals in an Obsidian vault.

NVIDIA's project runs its own models on NIM behind a Next.js, FastAPI and Postgres stack. This port hands every language step to the model already in your MCP client, so there is no model endpoint or API key to set up. It is Python, Apache-2.0, about 546 stars three weeks after it appeared on 6 November 2026, and is not affiliated with NVIDIA.

How to install Auto Ontology MCP

uvx --from git+https://github.com/gogoymh/auto-ontology-mcp auto-ontology-mcp

Is Auto Ontology MCP worth it?

Most database MCP servers hand the model a schema and run what comes back. The failure is quiet: a join on two integer columns that happen to overlap, a filter on 'pennsylvania' when the stored value is 'Pennsylvania', a sum that fans out across order lines. Auto Ontology MCP's validate_sql is built around exactly those mistakes. It rejects joins the ontology does not know, suggests near-miss literals, flags percent-versus-fraction thresholds, warns on one-to-many fan-out and catches integer division that truncates.

That checking needs an ontology first, and building it is real work done by your model. After scan_datasource, the model walks a worklist naming terms table by table and confirming relationships, which on a large schema costs tokens and a person's review. The full tool list is also heavy: about 52,000 characters of definitions sent with every request. AUTO_ONTOLOGY_TOOLSETS=answer cuts that to about 12,000 once the modelling is done.

Safety is layered and well documented. A SQL guard allows one SELECT or WITH per call and refuses functions that reach files or other servers; connections open read-only on SQLite, PostgreSQL, DuckDB, MySQL and Oracle; and every transaction is rolled back. Queries time out after 30 seconds and return at most 500 rows. The weak point is credentials: datasource URLs, passwords included, sit in plain text in ~/.auto-ontology-mcp/ontology.db, so a read-only database account is not optional.

The personal knowledge base is the second half and feels less proven. It stores facts as typed records you can sum with SQL, keeps quotes and sources for every item, and exports an Obsidian vault, a sturdier take on the LLM-wiki pattern. Search is lexical only, with no embeddings, and the README says MySQL and DuckDB have not been tested against a live server.

Where it earns its place

  • A data analyst at a 40-person e-commerce company

    Let colleagues ask revenue questions in Claude without writing SQL

    Model the warehouse once, review the joins, then give colleagues the answer toolset. check_answerable says when nothing covers a question, such as ad spend, instead of returning a guessed number.

  • A finance lead running monthly reports from PostgreSQL

    Stop silent errors from one-to-many joins in agent-written queries

    Route agent queries through validate_sql, which flags a SUM over a fanned-out join before it runs. Costs nothing beyond the model calls; connect with a read-only role.

  • A researcher keeping notes on papers and receipts

    Build a searchable knowledge base with exact figures and quotes

    Share files with the assistant; it stores records, concepts and passages, and export_wiki writes an Obsidian vault with links back to each original.

Before you commit

Setup
Run uvx --from git+https://github.com/gogoymh/auto-ontology-mcp auto-ontology-mcp demo to try the sample store, then register it with claude mcp add or the snippet from the config command. PostgreSQL needs --with "psycopg[binary]".
Integrations
SQLite, PostgreSQL, Oracle, MySQL and DuckDB through SQLAlchemy; Claude Code, Codex, Cursor, VS Code, OpenClaw, Hermes Agent and the Claude and ChatGPT apps; stdio or streamable HTTP; Obsidian export.
Data and privacy
Runs locally; ontology and knowledge store are SQLite files under ~/.auto-ontology-mcp. Query results go to your client's model provider. Datasource URLs with passwords are stored in plain text. HTTP mode needs a token for anything but localhost.
Cost at scale
Free under Apache-2.0. The real cost is model tokens for modelling a large schema and the tool definitions sent with each request.
Limits
30-second query timeout, 500-row cap (100 by default), one statement per call, lexical search only. Not affiliated with NVIDIA and missing the original's web UI, RBAC, PII detection and embedding search.

What’s good

  • validate_sql catches wrong joins, near-miss values and fan-out
  • No model endpoint or API key; your client's model does the language work
  • Three layers of read-only enforcement
  • answer toolset cuts tool definitions from about 52,000 to 12,000 characters

What’s not

  • Datasource passwords stored in plain text
  • Ontology modelling costs tokens and review time up front
  • Lexical search only, no embeddings
  • MySQL and DuckDB untested against live servers

Best for

Analysts and engineers who ask an agent business questions about a PostgreSQL or SQLite database and need the numbers to be right, not just plausible.

Auto Ontology MCP alternatives

Auto Ontology MCP: common questions

Is Auto Ontology MCP worth it?
A text-to-SQL server that assumes the model will be wrong and checks for the specific ways it usually is, which makes it worth the modelling effort for anyone asking an agent questions about a real database. We rate it 4.0 out of 5.
How much does Auto Ontology MCP cost?
Free and open source (Apache-2.0). Model usage is whatever your MCP client already pays for.
What are the downsides of Auto Ontology MCP?
Datasource passwords stored in plain text; ontology modelling costs tokens and review time up front; lexical search only, no embeddings; mySQL and DuckDB untested against live servers.
Who is Auto Ontology MCP best for?
Analysts and engineers who ask an agent business questions about a PostgreSQL or SQLite database and need the numbers to be right, not just plausible.
How much does Auto Ontology MCP cost for a team or in production?
Free under Apache-2.0. The real cost is model tokens for modelling a large schema and the tool definitions sent with each request.
Is Auto Ontology MCP safe for company data?
Runs locally; ontology and knowledge store are SQLite files under ~/.auto-ontology-mcp. Query results go to your client's model provider. Datasource URLs with passwords are stored in plain text. HTTP mode needs a token for anything but localhost.
What are the best Auto Ontology MCP alternatives?
The closest alternatives we have reviewed are DBHub, database-mcp (cocaxcode) and MCP Toolbox for Databases.

Answers checked Nov 25, 2026.

Make Auto Ontology MCP? Show this rating on your siteAuto Ontology MCP rated 4.0 out of 5 on ReviewRamble