Skip to main content
Glama

datalint-mcp

tests

Let Claude audit your data before you trust it. datalint is an MCP server and Claude skill. Point Claude at a CSV file or a SQLite database and ask "is this ready for training?" or "can I trust revenue numbers built on this?". Claude profiles the data and finds missing values, duplicates, outliers, broken keys, orphaned references and personal data. Then it tells you what to fix, worst problem first, without ever putting personal data into the conversation.

Install

The server runs with uv, so install that first.

Claude Code (the plugin brings the server and the skill together):

/plugin install datalint --marketplace asma-hachaichi/datalint-mcp

On versions before Claude Code 2.1.275, add the marketplace first:

claude plugin marketplace add asma-hachaichi/datalint-mcp
claude plugin install datalint@datalint-mcp

The plugin lets the server read your current project folder, and nothing outside it.

claude.ai or Claude Desktop: go to Customize > Plugins > Add > Add marketplace and enter asma-hachaichi/datalint-mcp. The server runs on your computer, so it works in Claude Code and Cowork on desktop, not in web chat.

Any other MCP client: run uvx datalint-mcp over stdio and set DATALINT_ROOTS to the folders it may read:

{
  "mcpServers": {
    "datalint": {
      "command": "uvx",
      "args": ["datalint-mcp"],
      "env": { "DATALINT_ROOTS": "/path/to/your/data" }
    }
  }
}

Related MCP server: DataBridge-MCP

What to ask

  • "Audit customers.csv for duplicates before I import it into our CRM."

  • "Check store.sqlite. Can I trust revenue-per-customer numbers built on it?"

  • "I want to send contacts.csv to an outside agency. Audit it first."

  • "Can I use line_id as the primary key of order_lines.csv?"

Here is what the server returned when Claude checked the example database's orders for references to customers that don't exist (abridged):

{
  "column": "customer_id",
  "references": "customers.id",
  "basis": "declared",
  "rows_checked": 11,
  "orphans": 2,
  "orphans_pct": 18.18,
  "orphan_row_numbers": [5, 10],
  "orphan_examples": ["7", "9"]
}

How it works

flowchart LR
    You -->|"is this data ready?"| Claude
    Skill["datalint skill:<br/>how to run an audit"] -.-> Claude
    Claude <-->|"MCP over stdio"| Server["datalint server<br/>10 read-only tools"]
    Server -->|"read-only"| Data[("CSV, TSV, SQLite<br/>in allowed folders")]

The server does the measuring: exact counts, row numbers, ranges. The skill tells Claude which checks to run and when, what to skip, and how to report: a verdict first, then problems most serious first, each with real numbers and a concrete fix.

Tool

What it answers

load_dataset

Loads a CSV, TSV or SQLite file. A database loads every table, with its declared foreign keys

list_datasets

Which datasets are loaded, and their size

profile_dataset

One overview per column: real type, missing values, distinct values, personal data

describe_column

A close look at one column: statistics, lengths, common values, formatting problems

check_missing

Where values are missing, including disguised ones like "N/A" or "-"

find_duplicates

Exact duplicate rows, duplicates on key columns, and rows that differ only by case or spacing

find_outliers

Numbers far outside a column's usual range (interquartile range or z-score)

check_keys

Whether a column, or a set of columns, uniquely identifies every row

check_references

Orphans: values that point at rows missing from another table

detect_pii

Columns holding emails, phone numbers, card numbers, IBANs, IP addresses, names and more

Safety by design

  • It only reads folders you allow. Paths outside DATALINT_ROOTS are refused with a reason. Without the setting, the server can read only the folder it starts in.

  • It never changes your data. Databases are opened read-only.

  • It keeps personal data out of the conversation. Columns that look like personal data are flagged, and no tool ever returns their values. Card numbers and IBANs are confirmed with their checksums, so random IDs aren't mistaken for them.

  • It never echoes whole rows. Duplicate and reference checks return row numbers, not values.

  • It's honest about cut output. Long lists are paged, and every page says how many items exist and where the next page starts.

Evals: does Claude actually use the tools well?

Unit tests prove each tool returns the right numbers. They can't prove that a model, reading only the tool descriptions and the skill, picks the right tools and reports what matters. The eval suite checks that: a real Claude model audits datasets with planted problems through the real server over stdio, and its final report is scored.

Scenario

Planted problem

The report must

duplicate_customers

3 exact duplicate rows, 2 that differ only by case or spacing

count the exact copies and mention the near-duplicates

disguised_missing

9 incomes written as N/A, - or unknown, plus 3 blanks

name the column, the placeholder and the size of the gap

orphaned_orders

4 orders pointing at customers that don't exist (SQLite)

count them and point at a row

extreme_outlier

a 999 °C reading among room temperatures

give the value and its row

personal_data

names, emails and phone numbers

flag them, and never let one appear in the transcript

clean_data

nothing

say it's ready, without inventing duplicates, outliers or orphans

bad_key

a primary key reused on 2 rows

answer no, and say which values repeat

Each run is also scored on calling the right tool and staying within a tool-call budget. The checks are plain patterns, not an LLM judge, so scores are cheap and repeatable. Tests confirm the datalint tools find exactly the planted problems, so a failed eval always points at the model's behaviour, not at broken test data.

Development

python -m venv .venv
.venv\Scripts\pip install -e ".[dev]"
.venv\Scripts\python -m pytest

Run the evals (each run calls the Claude API and costs money; the summary shows how much):

.venv\Scripts\pip install -e ".[eval]"
$env:ANTHROPIC_API_KEY = "<your key>"
.venv\Scripts\python -m evals                      # every scenario, on claude-opus-5-5
.venv\Scripts\python -m evals --scenario bad_key --repeat 3

On GitHub, unit tests run on every push and pull request. The evals workflow runs only when started by hand, and needs an ANTHROPIC_API_KEY repository secret. Pushing a tag like v0.1.0 runs the release workflow, which publishes to PyPI and then to the MCP Registry.

To try it on sample data, allow the examples folder and ask Claude to audit customers.csv or shop.sqlite. make_shop_db.py rebuilds the database and lists every planted problem.

License

MIT

Available Tools

10 tools
check_keysB
Read-only

Check whether a column (or set of columns) works as a unique key: no missing values and no repeats. Reports how many rows break it, with example row numbers.

Inputs: dataset (required), columns. Returns: object

check_missingA
Read-only

Where values are missing, worst column first.

Counts both empty cells and disguised ones (placeholder text such as "N/A", "null", "-" or blank spaces), and says which placeholders each column uses. Also counts rows with any missing value, fully empty rows, and columns with no values at all.

Inputs: dataset (required), limit, offset. Returns: object

check_referencesA
Read-only

Find orphans: values that point at rows missing from the referenced dataset, such as orders whose customer does not exist.

Without column and references, checks every foreign key the database declares, plus links guessed from column names across loaded datasets (orders.customer_id -> customers.id).

Inputs: dataset (required), limit, column, references. Returns: object

describe_columnA
Read-only

A close look at one column.

Numbers get min, quartiles, max, mean, zeros and negatives. Text gets lengths, values with stray spaces, and values that only differ by case or spacing. Dates get the earliest and latest. For numeric_as_text columns, lists the values that are not numbers. Common values are listed unless every value is unique.

Inputs: column (required), dataset (required), top. Returns: object

detect_piiA
Read-only

Find columns that look like personal data: emails, phone numbers, card numbers, IBANs, IP addresses, US social security numbers, and names, addresses, birth dates or ID numbers suggested by the column name.

Reports which kinds, how many values match, and whether the evidence is the values or only the column name. Never returns the values themselves.

Inputs: dataset (required), limit, offset, columns. Returns: object

find_duplicatesA
Read-only

Find duplicate rows, either whole rows or on chosen key columns.

Returns how many extra copies exist, the largest groups as row numbers, and how many more rows match once case and spacing are ignored. Values are never shown.

Inputs: dataset (required), limit, columns. Returns: object

find_outliersA
Read-only

Find numbers far outside a column's usual range.

Without column: every numeric column with its outlier count and usual range, most outliers first. With column: also its most extreme rows as row numbers with values (values hidden if the column looks like personal data).

Inputs: dataset (required), limit, column, method, +1 more. Returns: object

list_datasetsA
Read-only

List the datasets loaded in this session, with their size.

Inputs: no named parameters. Returns: object

load_datasetA
Read-only

Load a file so the other tools can audit it. A SQLite database loads every table, each as its own dataset named after the table, along with the foreign keys it declares.

Only truly empty cells count as missing. Placeholder text such as "N/A" or "null" is kept as written, so check_missing can report it. Loading under an existing name replaces it. Databases are opened read-only. Files outside the folders the user allowed are refused.

Inputs: path (required), name, table. Returns: object

profile_datasetA
Read-only

Overview of a dataset: size, missing cells, duplicate rows, and one summary per column.

Each column gets a type judged from its values: numeric, numeric_as_text (mostly numbers with some text mixed in, usually a data-entry problem), datetime, categorical, text, unique_text, identifier, boolean, constant or empty. disguised_missing counts placeholder text such as "N/A", "-" or blank spaces.

Inputs: dataset (required), limit, offset. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool targets a distinct auditing concern: loading, listing, profiling, per-column detail, missingness, duplicates, outliers, key uniqueness, references, and PII. The only mild overlap is between find_duplicates (duplicate rows) and check_keys (column uniqueness), plus profile_dataset including a missing-cell summary that check_missing expands on, but the descriptions make the boundaries reasonably clear.

    Naming Consistency5/5

    All names follow a consistent verb_noun pattern (load_dataset, profile_dataset, describe_column, check_missing, find_duplicates, etc.) in snake_case. The varying verbs (check_, find_, profile_) are semantically appropriate rather than arbitrary, so the surface is predictable.

    Tool Count5/5

    Ten tools is a well-scoped set for a data auditing server; each tool covers a distinct quality dimension (types, missingness, duplicates, outliers, keys, references, PII) without padding. Nothing feels redundant or missing from the count perspective.

    Completeness4/5

    The audit lifecycle is well covered: load, list, overview profile, per-column detail, missing, duplicates, outliers, key integrity, referential integrity, and PII detection. Minor gaps exist around post-audit actions (e.g., no unload/delete dataset or export/report tool, and no value-level sample preview), but these are workable given the read-only auditing purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude Code to securely interact with PostgreSQL, MySQL, SQLite, and SQL Server databases, featuring read-only mode, query validation, SSH tunneling, and field redaction for production-safe data access.
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to query SQLite databases and Excel/CSV files read-only, with PII masking, bounded row limits, query timeouts, and audit logging.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      It enables AI assistants to audit CSV and Excel files for empty data, missing or null values, and duplicate rows, and to verify SQLite or PostgreSQL table existence and column structure before loading data.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides read-only tools that let Claude and other MCP clients investigate data quality issues such as metric drops, duplicates, join fan-out, freshness problems, and dbt test failures by profiling local CSV, Parquet, NDJSON, DuckDB, Postgres, and dbt artifacts.
      12
      MIT