Can you ask an AI assistant what's wrong with your SQL Server data?

Yes, if the assistant can read real data profiling results and test history instead of guessing from table names. DataOps TestGen profiles and tests your SQL Server tables in place, and its open-source MCP server gives Claude, Copilot, Cursor, and other MCP clients 112 tools to read those results, as of October 2026. The server runs on your TestGen host.

Key points

  • An AI assistant with no access to your data guesses from column names and whatever you paste; connected to TestGen over MCP, it reads 55 profiled characteristics per column, 32 kinds of hygiene finding, and test and monitor history.
  • As of October 2026, the TestGen MCP server lists 112 tools in eight groups, and DataKitchen's setup guide names Claude Code, OpenAI Codex, Microsoft Copilot, and Cursor as clients that support its OAuth 2.1 sign-in.
  • The assistant never gets a SQL Server credential: it calls TestGen, and TestGen queries SQL Server through its own read-only SQL login.
  • The MCP server is part of TestGen, which you host; your AI provider still sees whatever the tools return, and TestGen Enterprise's source data protection withholds source values such as sample rows from MCP responses.
  • The MCP server ships in open-source TestGen under Apache 2.0, free for one user, one connection, and one project.

Ask a general-purpose assistant what’s wrong with your Sales database and it will give you a checklist: look for nulls, duplicates, orphaned keys. It can’t tell you which ones you have, because it has never seen the data.

The fix is to give it the facts. DataOps TestGen profiles every column in your SQL Server tables, generates and runs tests, and monitors freshness, volume, and schema. Its MCP server lets an assistant read all of that.

What you can ask

These map to tool groups on TestGen’s Supported Tools page:

QuestionWhat the assistant reads
”What data do I have, and how healthy is it?”Table groups, quality scores, and run summaries
”What’s wrong with dbo.Orders?”Hygiene findings and failed tests on that table
”Show me the rows behind that failure”The failing records, if your role and settings allow it
”What changed since last week’s data profiling run?”Profile differences between runs
”Which tables are late or short today?”Freshness and volume monitor results
”Generate tests for the new table group and run them”Test generation and test runs, under your role

In a session DataKitchen published in July 2026, “What data do I have and how healthy is it?” returned a quality score of 78.9 on a neglected table group, and “What’s dragging the score?” surfaced 30 hygiene issues that no test covered. That demo used a different database, but the questions are the same on SQL Server.

How it fits together

  1. TestGen connects to SQL Server 2019 or later, Azure SQL Database, or Azure Synapse with a read-only login. SQL Server uses a SQL login. Azure SQL and Synapse also accept a managed identity or an Entra ID service principal.
  2. You run data profiling and generate tests. TestGen stores the computed results in its own database on a server you host.
  3. You add TestGen’s /mcp URL to your assistant and sign in to TestGen in the browser. The setup guide has the steps, and our how-to covers the common connection errors.
  4. The assistant calls TestGen’s tools. TestGen, not the assistant, holds the SQL Server connection.

Each tool runs with the signed-in user’s TestGen role. In Enterprise, the Business and Catalog roles are read-only and the Analyst role sees PII redacted.

What stays in your network

The MCP server is part of TestGen, and TestGen runs where you install it: on Windows next to SQL Server, on Linux, or in Kubernetes. A desktop or IDE client on your machine reaches it over your network. A hosted platform such as Databricks Genie calls it from its own cloud, so the server has to be reachable from there.

Your AI provider sees what the assistant reads from tool results. If that’s a problem for some data, TestGen Enterprise’s source data protection stops tools such as get_source_data and get_table_sample from returning rows and drops top values and extremes from the rest. The full breakdown is in what data leaves your environment.

Assistant alone vs assistant with TestGen

Assistant aloneAssistant with TestGen MCP
Knows what a column containsGuesses from the nameReads 55 profiled characteristics
Finds hygiene problemsOnly in what you paste32 hygiene detectors on every data profiling run
Remembers last weekNoRun history, monitor trends, score history
Database accessWhatever login you give itNone; TestGen’s read-only login

The MCP server is in open-source TestGen, free for one user, one connection, and one project. Enterprise is $100 per user per month plus $100 per connection per month. Start at the SQL Server install page.

Frequently asked questions

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

Can't I just give the assistant a SQL Server connection?

You can, and it will write and run queries for you. But it starts from nothing each session, it has no history to compare against, and a writable login lets it change data. With TestGen in between, the assistant reads stored data profiling results, test history, and monitors, and the database login stays read-only.

Which assistants work with TestGen's 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 through Add custom connector and Databricks Genie as a hosted platform. Clients that accept only a static token use a TestGen Enterprise personal access token.

Does my SQL Server data go to the AI provider?

Whatever the assistant reads from tool results goes to its model provider, as with any chat. That can include sample rows unless TestGen Enterprise's source data protection is on, which withholds source values from MCP responses. The data profiling and tests themselves run as SQL inside your SQL Server.

Can the assistant change my SQL Server data?

Not through TestGen. TestGen sends only read-only SQL to your database and never runs INSERT, UPDATE, DELETE, CREATE, ALTER, or DROP. The MCP tools that write change TestGen itself: tests, dispositions, schedules, monitors, scorecards, and notifications.

Try it on your own data

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