DataClean MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DATACLEAN_PRICES | No | Override credit prices, e.g. `clean_table=2,...`. | |
| KEYFLINT_LICENSE | Yes | Your KeyFlint license key (starts with `LIC-`), obtained by buying credits at https://mcp.keyflint.dev. Passed to the server as the `KEYFLINT_LICENSE` environment variable. In hosted mode (`dataclean-mcp --http`) the license is instead read from each request's `Authorization: Bearer LIC-...` header. | |
| DATACLEAN_MAX_ROWS | No | Maximum number of rows processed (default 200,000). | 200000 |
| DATACLEAN_MAX_BYTES | No | Maximum input size in bytes (default 20 MB). | 20971520 |
| DATACLEAN_MAX_OUTPUT | No | Maximum output size in bytes (default 15 MB). | 15728640 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Deterministic data hygiene for tables. Use it BEFORE reasoning over a CSV/Excel file instead of reading raw cells: profile_table reports encoding, delimiter, header, per-column type (integer, decimal, date, datetime, boolean, email, url, phone, iban, text), number locale (1.234,56 vs 1,234.56), date order (day-first vs month-first), nulls, duplicates and problems, plus a suggested schema. clean_table returns the table with NUL/control/zero-width characters and mojibake removed, trimmed text, numbers as plain decimals, dates as ISO 8601, phones as E.164, deduplicated rows, as CSV, JSON, JSONL or typed .xlsx. validate_schema checks rows against a schema (types, required, unique, min/max, enum, pattern). normalize_values converts a list of values. Ambiguous values (03/04/2026, 1,250) are never guessed: they are converted only when the column settles it or you pass date_order / number_locale, otherwise kept and flagged. Pass the table as content (text), content_base64 (file bytes, required for .xlsx) or rows (JSON). Free: pricing, credits_balance. Unreadable input is never charged; failures are refunded.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| profile_tableA | Profile a table: what each column really contains and what is wrong with it, without changing it. Returns the detected encoding/delimiter/header, per-column type, nulls, distinct values, min/max, number locale, date order, currency, examples and notes (leading-zero IDs, formula-injection cells, ambiguous dates or numbers, mixed separators), table issues (ragged rows, NUL bytes, duplicate headers, title rows), exact duplicate rows, the first 50 flagged cells and a suggested schema for validate_schema. |
| clean_tableA | Return a clean, typed copy of a table, with a report of every change and every value left unconverted. Text: NUL/control/zero-width characters removed, mojibake repaired (Café -> Café), Unicode NFC, spaces
collapsed and trimmed. Numbers: plain decimals (1.250,50 € -> 1250.50; (45) -> -45; 1.250,50- -> -1250.50).
Dates: ISO 8601. Booleans: true/false. Emails: domain lowercased. Phones: E.164. IBAN: compact uppercase.
Values that do not fit the column type are kept as they were (on_invalid='null' empties them) and listed
in Args:
output_format: csv (default) | tsv | json | jsonl | xlsx (typed cells; returned only as content_base64).
header_style: keep | snake (Fecha de alta -> fecha_de_alta). columns: keep only these columns, in order.
dedupe: none | exact | ignore_case, over all columns or |
| validate_schemaA | Check every row of a table against a schema, after the same parsing clean_table applies. schema: {"columns": {"id": {"type": "integer", "required": true, "unique": true},
"email": {"type": "email", "required": true},
"amount": {"type": "decimal", "min": 0, "max": 100000},
"signup": {"type": "date", "min": "2020-01-01"},
"status": {"enum": ["active", "churned"]},
"sku": {"type": "text", "pattern": "[A-Z]{3}-\d{4}", "max_length": 8}},
"strict_columns": false}
Rules: type, required, unique (case-insensitive), min/max (numbers and dates), min_length/max_length, enum
(case-insensitive), pattern (full match; nested quantifiers are refused). Column names match case-insensitively.
strict_columns flags columns that are not in the schema. Errors carry the source row number; |
| normalize_valuesB | Normalize a list of up to 10,000 values of one kind, e.g. amounts, dates or phone numbers from a document. kind: auto (inferred like a table column) | number | integer | decimal | date | datetime | boolean | email | url | phone | iban | text. name: optional column name, used as a hint (e.g. 'phone', 'fecha'). Returns one result per input, in order: {"input", "output", "valid"} and "reason" when it could not be converted. Output types: numbers as plain decimal strings, dates ISO 8601, phones E.164. |
| pricingA | Credit price of each tool and where to buy credits. Free. |
| credits_balanceB | Remaining credits on your KeyFlint license. Free. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| dataclean-card | Interactive result card (MCP Apps). |
TDQS
Scored across 6 tools
Each tool has an explicit, distinct role in a pipeline: profile (read-only diagnosis), clean (transform), validate (schema check), normalize (single-column values), plus two billing/metadata tools. The one soft boundary is clean_table vs normalize_values, which both perform type coercion and could be confused for bulk conversions, but the descriptions make the table-vs-list scope clear.
Four of six names follow a clean verb_noun snake_case pattern (profile_table, clean_table, validate_schema, normalize_values). The two metadata tools (pricing, credits_balance) are noun phrases, a minor deviation but still snake_case and readable, so the convention is predictable overall.
Six tools is well-scoped for a CSV/table cleaning server, and each core operation (profile, clean, validate, normalize) earns its place. Two of the six are billing/metadata (pricing, credits_balance), which is slightly more meta surface than needed but not disruptive.
The surface covers the full inspect→clean→validate→convert lifecycle with multiple input/output formats, and profile_table even feeds a suggested schema into validate_schema. Minor gaps remain: no cell-level edit or repair operation, no fuzzy/approximate dedupe, and no multi-table join or schema persistence, but these are outside the apparent core scope.