How do you give an AI agent or data catalog your data quality results as context?

To give an AI agent your data quality results, connect it to a data quality MCP server such as DataKitchen's open-source DataOps TestGen, next to your catalog's MCP server. You instruct the agent to check current test results, scores and open issues before it uses a table. The catalog supplies meaning, and TestGen supplies current state.

Key points

  • DataHub, Collate, Informatica and dbt all announced agent-facing context features between September and November 2026, and Collibra documents an MCP server. Most of it is metadata: search, lineage, glossary and ontology.
  • MCP clients connect to several servers at once, so a catalog server and a data quality server run side by side with no integration between the vendors. You supply the table mapping.
  • Every TestGen MCP tool runs under the signed-in user's role, and in TestGen Enterprise the Business and Catalog roles are read-only.
  • DataKitchen ships no prebuilt connector to Collibra, DataHub, OpenMetadata/Collate or Atlan, so a score in a catalog comes from a job you write.

Why an agent needs quality results, not just descriptions

An agent that answers from a table trusts the table. It cannot know the load failed at 3am or that a column went null on Tuesday unless something tells it.

DataKitchen’s blog post Context As Infrastructure names data quality and freshness as one of six categories of AI context. Its framing: “A data catalog records what exists; context records what it means.” If a table’s quality score is below your threshold, or a column failed recent checks, the AI should caveat any answer from that data. That state changes with every load and test run, so it has to come from the tool that runs the tests.

What the vendors announced

Collibra’s documentation shows how to connect ChatGPT to the Collibra MCP server as a custom plugin, where ChatGPT discovers tools “including search, lineage, and glossary”. Each user signs in with their own Collibra credentials (OAuth 2.0). The page does not mention data quality, though Collibra sells a separate Collibra Data Quality and Observability product.

DataHub Cloud Context reached general availability on October 28, 2026. It adds domain-scoped context management, evals that check whether agent answers still meet expected answers, and agent feedback over MCP. The announcement does not mention data quality. On November 12, 2026, DataHub and BigID announced a connector that brings BigID classification and sensitivity findings into the DataHub catalog, in DataHub Core and DataHub Cloud. Catalogs pull in other tools’ findings.

Collate 2.1, announced November 17, 2026, added Ontology Studio, exposed to agents through Collate’s MCP server. Agents can follow graph relationships to see whether an asset carries data quality tests, and Audit Hub scores metadata against standards that include a data quality dimension. Knowing a table has tests is different from knowing whether they passed this morning.

At dbt Summit on September 16, 2026, dbt v2 became generally available and surfaces “errors, column checks, and lineage before anything runs”. The Fivetran Context Layer, in private beta, is reachable through MCP. dbt tests are real context about intent, but they cover only the rules someone wrote.

On November 17, 2026, at Microsoft Ignite, Informatica made its catalog, glossary, lineage, quality indicators and governance context available in Microsoft Copilot and Teams (generally available). Its headless MCP server in Microsoft Foundry is also generally available. That brings quality indicators to an agent, for Informatica customers.

DataKitchen’s comparison page describes Atlan as an active metadata catalog with embedded data quality and a Model Context Protocol layer for AI agents.

Two MCP servers, one agent

Connect the agent to the catalog’s MCP server for meaning: glossary, lineage, ownership. Connect it to the data quality tool’s MCP server for current state: latest test results, scores, open hygiene issues and monitor events.

Then give the agent one instruction. Here is a version you can paste and adapt:

Before you answer from a table, look that table up in TestGen and read its latest test results, quality score and open hygiene issues. Check when its last test run happened. Match the catalog’s table to the TestGen table using [your mapping rule for schema, casing and connection]. If the score is below [your threshold], the last run is older than [your threshold], you are not sure you have the same table, or TestGen has no result for it, caveat the answer or stop.

The instruction is advisory: the model follows it, and nothing enforces it. Put it in the agent’s system prompt or project rules, and keep TestGen’s scheduled profiling and test runs going, or the context goes stale. The read-only role is what stops the agent from changing anything; source data protection in TestGen Enterprise keeps sample rows from reaching the model.

This needs no integration between the two vendors, because the agent decides which server to ask. It does need a table mapping you write down: which catalog table matches which TestGen connection, schema and table. A miss is easy to spot. A wrong match is worse, because it returns a healthy score for a different table and the agent goes ahead with confidence.

What TestGen exposes over MCP

DataKitchen’s DataOps TestGen is open source (Apache 2.0), with a web UI where engineers, data stewards and business users see profiles, tests, monitors and results. It generates tests from a profile of your data, so nobody hand-writes YAML or Python to get coverage. It flags 32 kinds of data hygiene issue on every profile.

The MCP endpoint is the TestGen API URL plus /mcp, which is http://:8530/mcp by default on Docker or pip. As of November 2026 (TestGen 5.189.4), the server lists 122 tools, 117 of them in the open-source edition. They fall into eight groups. These four carry the current state for a pre-use check: issues, profiles, scores and monitors.

Six prompts ship with it, including health_check, investigate_failures, hygiene_triage and table_health.

In a session DataKitchen published in July 2026, one question to Claude returned a quality score of 78.9. The follow-up surfaced 30 hygiene issues that no test covered. Those 30 are issues that profiling found in that session’s data, not the 32 kinds of issue TestGen checks for.

Keep the agent’s access narrow

Every tool runs under the signed-in user’s TestGen role. For a context-only agent, sign it in with a read-only role. In TestGen Enterprise, that means Business or Catalog. The Analyst role sees PII redacted.

TestGen runs profiling and tests as read-only SQL inside your database and keeps results in a PostgreSQL database you host. The agent receives what its tools return, and that can include sample rows (get_source_data, get_table_sample), which then go to the model behind your client, unless you turn on source data protection in TestGen Enterprise. For the full picture, see what data leaves your environment.

Pushing scores into the catalog

Some teams want the score on the catalog page too, for people and for agents that only talk to the catalog. With no prebuilt connector, that is a small scheduled job you write. TestGen stores every definition and result in one PostgreSQL database you host, and it has a REST API. The job reads the latest scores and writes them to the catalog’s API as a property or tag on each table. Have it alert when it fails, because a failed run leaves an old score looking current.

The weakness is freshness: the catalog copy is only as current as the job. When the agent decides whether to trust a table, use the MCP route. It reads results at query time, though they are only as current as the last TestGen run.

How the approaches compare

ApproachWhat the agent seesFreshnessFit
Catalog MCP aloneDescriptions, glossary, lineageAs fresh as the catalog’s metadataMeaning and discovery
dbt tests as contextThe rules defined in the project and their last runFresh as of the last dbt runTeams already in dbt
Push scores into the catalogA score property on each tableAs fresh as your sync jobPeople browsing the catalog
Data quality MCP next to the catalog MCPCurrent results, scores, hygiene issues and monitor events, under the user’s roleRead at query time; as current as the last TestGen runAgents that decide whether to use a table

Next steps

Install TestGen. For the setup steps, see how to use the TestGen MCP server with Claude, Cursor and Copilot. For how vendors’ MCP servers compare, see the best data quality and observability tool for AI assistants and agents.

Frequently asked questions

Short answers to the follow-up questions people ask next.

Do I need an integration between my catalog and my data quality tool?

No integration between the vendors is needed, but you supply the table mapping. Connect the agent to your catalog's MCP server and your data quality tool's MCP server side by side, and instruct it to check both before it answers.

Does DataKitchen integrate with Collibra, DataHub, OpenMetadata/Collate or Atlan?

DataKitchen does not ship a prebuilt connector to any of them, and the two-server pattern needs none. To show a TestGen score on the catalog page, write a scheduled job that reads TestGen's PostgreSQL database or REST API and writes to the catalog's API.

What does the agent receive from the TestGen MCP server?

The agent receives what its tools return, under the signed-in user's TestGen role: test results, quality scores, profiling results, hygiene issues and monitor events. That can include sample rows through get_source_data and get_table_sample, unless Enterprise source data protection is on.

How fresh is a score I push into the catalog?

It is only as fresh as the sync job, so a nightly job shows last night's score. When an agent decides whether to trust a table, have it ask the data quality MCP server and check when the last TestGen run happened.

Which AI agents can connect to the TestGen MCP server?

DataKitchen's setup guide names Claude Code, OpenAI Codex, Microsoft Copilot and Cursor as clients that support TestGen's OAuth 2.1 sign-in, plus Claude.ai custom connectors and Databricks Genie as a hosted platform. The endpoint is the TestGen API URL plus /mcp, which is http://:8530/mcp by default on a Docker or pip install.

Try it on your own data

DataOps TestGen is free and open source. Profile a table and generate its tests this afternoon.