MDM MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MDM MCP Create a dataset for job applicants with name, phone, experience, and stage."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MDM MCP - Master Data Management for Conversational Agents
A backend-only master data management system exposed as a Model Context Protocol (MCP) server. Non-technical users describe what they want to track in plain language; an AI agent (OpenCode, Claude Code, or any MCP client) creates the schema, captures records, and answers questions through 16 well-documented tools - no GUI, no spreadsheet skills, no SQL. The agent is the interface; the data lives in clean local JSON.
User ("track my job applicants") → Agent → MCP tools → JSON storage
↑ you are here (server + skill)1. Quickstart (60 seconds, Docker only)
bash setup.sh # builds image, smoke-tests the MCP handshake, writes client configs
bash demo/demo.sh # optional: 30-second scripted walkthrough of the product
opencode # OpenCode: server already registered via opencode.json
# or
claude # Claude Code: approve the "master-data" project server when promptedThen simply talk:
"I want to track candidates for the Java developer role - name, phone, experience, and which stage they're in." "Add Rahul Sharma, 9876543210, 5 years, applied yesterday." "Who applied in the last week with more than 3 years experience?" "How many candidates are in each stage?"
Requirements: Docker + (OpenCode or Claude Code). Nothing else - no Python, no
venv, no database server, no ports. Data persists in the Docker volume mdm-data
(reset anytime: docker volume rm mdm-data).
uv venv --python 3.12 .venv
uv pip install -e . --python .venv/bin/python
.venv/bin/mdm-mcp # stdio MCP server; data in ./data (override with MDM_DATA_DIR)Point opencode.json / .mcp.json at .venv/bin/mdm-mcp instead of docker run.
Related MCP server: agent-crm
2. The problem
People without spreadsheet experience waste significant time maintaining records in Excel/Google Sheets: column discipline, filters, formulas, and data types all demand training. Existing tools assume the user drives a GUI; AI agents remove that assumption.
Solution: expose a form-like data backend to an agent. The agent acts as a data clerk - proposes a schema (like building a Google Form), captures records from conversation, validates them instantly, and answers questions - while the server enforces types, safety gates, and context limits.
Three personas anchor the design (used as acceptance scenarios, not features):
Persona | What they exercise |
Hiring partner | Dataset per JD, enum stages, 100s of applicants, typo-tolerant fuzzy name search, bulk CSV import |
Business owner | Inventory/vendors/payments/employees, numeric + date validation, combined filters, bulk edits, totals |
Individual | Health logs, investments, schedules - date-heavy, low volume, high frequency |
User mental model: Workspace → Datasets → Columns (typed) → Rows.
3. Tool catalog (16 tools)
Datasets & columns - create_dataset, list_datasets, describe_dataset,
add_column, update_column, remove_column, delete_dataset
Rows - add_rows, get_row, update_rows, delete_rows, validate_rows,
search_rows, summarize_dataset
Files - import_rows, export_rows
Column types: string, text, boolean, integer, float, phone, date, enum with
Google-Forms-style constraints: required, default, min_value/max_value,
pattern, enum options.
4. Engineering for user-friendliness
This section is the heart of the assessment: the server is designed so that whatever the user says, the agent can fulfil safely.
Agent-coaching server instructions + skill file - the server ships
instructionsand a skill (.opencode/skills/master-data-management/,.claude/skills/...) teaching the agent to: propose schemas before creating, convert "yesterday" to an ISO date, null-fill unmentioned fields, answer with tables, and confirm before destructive actions.Plain-language validation - every failure is a sentence a human can act on:
Column 'phone' must be a valid Indian mobile number (10 digits, optional +91 or 0 prefix). Column 'stage' must be one of: Applied, Screened, Rejected.Per-column checks report all problems in a row, not just the first.
Lenient inputs -
"5"becomes the number 5,"true"becomes a boolean, numeric row ids (2vs"2") both work; empty CSV cells become nulls.Typo-tolerant search -
search_rows(fuzzy=true, query="Rahual")finds "Rahul Sharma" (rapidfuzz, similarity-scored).Safety gates, no undo needed - delete/bulk-edit/schema-changing tools return a preview +
requires_confirmation: true; execution needs explicitconfirm/dry_run=false.Agent-context protection - server-enforced:
limitdefault 20 / max 100 withtotal+next_offseton every list, column projection, batch cap 100 rows, sample caps, aggregate-only summaries. The conversation never drowns in rows.Structured results -
{"ok": true, ...}/{"ok": false, "error": "<reason>"}so the agent converses about failures instead of crashing.
5. Architecture
mdm_mcp/
├── models/ Pydantic: ColumnSpec, DatasetSchema, ColumnUpdate, FilterCondition
├── storage/ JsonRepository (interface): dir-per-dataset, schema.json + rows.json,
│ atomic temp-file writes, MDM_DATA_DIR override
├── validation/ RowValidator: pydantic TypeAdapter coercion per column + constraint
│ checks → plain-language issues; ONE engine reused by 4 tools
├── search/ FilterEngine: {column, op, value} DSL (11 ops) + rapidfuzz fuzzy
│ scoring; reused by search, bulk update/delete, export
├── services/ dataset_service, row_service, file_service (all business logic)
├── tools/ Thin FastMCP registrations: docstrings + Pydantic-typed args ARE
│ the generated tool documentation (JSON schema)
└── server.py FastMCP server (stdio) + agent instructionsKey decisions (full rationale in openspec/changes/archive/2026-08-30-mcp-master-data-management/design.md):
Local JSON over a database - zero infrastructure, human-inspectable files, single-user localhost scope; storage sits behind a repository interface so MongoDB can slot in without touching tools.
Pydantic dynamic validation - one validator instance per dataset reused by add/update/import/validate; pydantic gives type coercion and error localization for free.
One FilterEngine, four consumers - search, bulk update, bulk delete, export share identical filter semantics.
Official
mcpSDK (FastMCP) - tool JSON schemas derive automatically from typed signatures + docstrings, so documentation debt is structurally impossible.
6. Spec-driven development (OpenSpec)
The project was built with an artifact-driven workflow (openspec/), where code starts
only after behavior contracts exist. All artifacts are preserved in
openspec/changes/archive/2026-08-30-mcp-master-data-management/:
Artifact | Contents |
| Problem, personas, mental model, tool surface, deferred scope |
| 4 capability specs - |
| Decisions with rejected alternatives, risks/trade-offs (JSON rewrite cost, no locking, coercion surprises) |
| 24 phase-ordered tasks, each with its own verification step |
Rules followed throughout: no implementation without a spec covering it;
openspec validate green before any commit; implementation verified against the
spec scenarios (e.g. the "Rahual finds Rahul" and "100-row batch cap" scenarios are
literal pytest cases).
7. Phase-wise delivery (one commit per phase)
Phase | Commit | Delivered |
Planning |
| All OpenSpec artifacts, validated |
1 - Foundation |
| Models, atomic JSON storage, validator, create/list/describe/add/get, 47 tests |
2 - Schema & updates |
| Column lifecycle, preview→confirm deletions, partial updates, dry-run validation |
3 - Search & bulk |
| Filter DSL, fuzzy search, summaries, bulk-by-filter, CSV/JSON import/export |
4 - Polish |
| Docstring audit (automated), README, 3 persona walkthrough suites |
Hardening |
| Console-script cwd fix, numeric ids, richer agent instructions |
Packaging |
| Docker one-command setup + 30-second demo |
8. Testing strategy (127 tests)
Layer | What it proves |
Unit ( | Every column type, constraint, rejection message, filter op, atomic-write behavior |
Service integration ( | Full workflows incl. pagination, confirm gates, import/export roundtrips |
Persona walkthroughs ( | The 3 personas as end-to-end scenarios: recruiter funnel, business-owner restock + totals, individual health log |
MCP wire tests ( | Tool registration (16), schema descriptiveness, docstring audit, structured results, destructive tools default to preview |
Manual/automated E2E | MCP Inspector over real stdio; scripted Docker client session (create → validate → persist across two container runs); live OpenCode agent conversations incl. a bad-phone recovery flow |
9. Example interaction
User: add my friend Aman Gupta to the invitees, his phone is 123
Agent: ⚙ master-data_add_rows {..., "phone": "123"}
Server: {"ok": true, "added": 0, "rejected": 1,
"results": [{"row": 0, "status": "rejected",
"errors": ["Column 'phone' must be a valid Indian mobile number
(10 digits, optional +91 or 0 prefix)."]}]}
Agent: Aman wasn't added yet - the phone column requires a valid Indian mobile
number, so "123" was rejected. Do you have his full number?10. Project layout
├── Dockerfile, setup.sh, .dockerignore one-command Docker packaging
├── demo/ 30-second scripted demo (inside Docker)
├── mdm_mcp/ the server (see Architecture)
├── tests/ 127 tests, 4 layers
├── .opencode/skills/, .claude/skills/ agent skill: SKILL.md (operating manual)
│ + reference.md (full tool API reference)
├── opencode.json, .mcp.json client configs (generated by setup.sh)
├── openspec/ spec-driven development artifacts (archive)
└── README.md this fileStack: Python 3.12, official MCP SDK (FastMCP, stdio), Pydantic v2, rapidfuzz,
stdlib csv/json. Dependencies kept deliberately minimal.
11. Installing the agent skill on another machine
The skill is a self-contained folder (SKILL.md operating manual + reference.md
full tool API reference). Copy it into either client's skills directory:
# Claude Code - project-level (auto-detected in that project)
mkdir -p /path/to/project/.claude/skills
cp -r .claude/skills/master-data-management /path/to/project/.claude/skills/
# Claude Code - personal (all projects)
cp -r .claude/skills/master-data-management ~/.claude/skills/
# OpenCode - project-level
mkdir -p /path/to/project/.opencode/skills
cp -r .opencode/skills/master-data-management /path/to/project/.opencode/skills/
# OpenCode - global
cp -r .opencode/skills/master-data-management ~/.config/opencode/skills/Then start a conversation with the server attached (opencode.json / .mcp.json
from setup.sh, or claude mcp add master-data -- docker run -i --rm -v mdm-data:/data mdm-mcp:latest).
Auto vs manual invocation: skills load automatically when a request is
data-related; they are not listed in the / menu (that menu shows commands, a
separate mechanism). For explicit invocation, both clients also ship a
/master-data <request> project command (.opencode/command/, .claude/commands/)
that loads the skill guidance on demand.
12. Restarting & resuming (your data never goes anywhere)
There is no long-running server to babysit. The MCP client (OpenCode / Claude Code)
starts the container automatically each session and stops it when done (--rm) - that
is by design. Your data lives outside the container and survives everything:
What closed | How to resume |
Terminal / OpenCode / Claude Code session | Just relaunch |
Docker Desktop | Start it, then relaunch your client. Same behavior. |
Machine reboot | Same - relaunch the client. Nothing else to do. |
Local (non-Docker) run | Re-run |
Where your data is:
Docker setup → Docker volume
mdm-data→/data/<dataset>/schema.json+rows.json(inspect:docker run --rm -v mdm-data:/data alpine sh -c "ls /data && cat /data/<dataset>/rows.json")Local setup →
./data/<dataset>/(plain JSON, human-readable)
Quick resume check - open your client and ask "what am I tracking?" (list_datasets),
or verify from the shell:
docker run --rm -v mdm-data:/data alpine ls /data # Docker setup
ls ./data # local setupMaintenance one-liners:
bash setup.sh # rebuild/re-verify/re-generate client configs (safe, cached)
bash scripts/resume_check.sh # prove persistence: write in one session, read in a new one
docker volume rm mdm-data # wipe all data and start fresh
docker rmi mdm-mcp:latest # remove the image (setup.sh rebuilds it)Note: local runs store data in ./data, Docker runs in the volume - these are two
different stores. Pick one mode and stay with it; switching modes does not lose data,
it just looks at the other location.
13. Evaluation checklist
bash setup.sh→ handshake smoke test passesbash demo/demo.sh→ import with rejects, fuzzy match, dry-run bulk edit, summaryStart
opencode(orclaude) in this folder and hold a natural conversationTry a mistake on purpose (bad phone, unknown person) - observe recovery UX
Inspect
data/(ordocker run --rm -v mdm-data:/data alpine cat /data/<dataset>/rows.json)the storage is readable JSON
.venv/bin/python -m pytest(local setup) - 127 tests green
Available Tools
16 toolsadd_columnA
Add a new typed column to an existing dataset.
Existing rows are backfilled with the column's default value, or null when no default is set. Use this when the user wants to start tracking something new in an existing dataset ("also note each candidate's expected salary").
Args: dataset: Exact dataset name, e.g. "Candidates". column: The new column definition (same shape as in create_dataset).
Returns: {"ok": true, "dataset", "column", "type", "backfilled_rows": } on success, {"ok": false, "error": ""} when the column already exists or the definition is invalid (e.g. enum without options).
Example: add_column(dataset="Candidates", column={"name": "expected_salary", "type": "float", "min_value": 0})
Inputs: column (required), dataset (required). Returns: object
add_rowsA
Add one or more rows to a dataset with per-row validation.
Use this to capture records the user dictates in conversation. Each row is an object mapping column names to values; every row is validated against the dataset schema and valid rows are saved while invalid rows are reported back with plain-language reasons. At most 100 rows per call - split larger batches.
Check describe_dataset first so column names, types, and constraints match exactly.
Args: dataset: Exact dataset name, e.g. "Candidates". rows: List of row objects, e.g. [{"name": "Asha", "phone": "9876543210"}].
Returns: {"ok": true, "dataset", "added": , "rejected": , "results": [{"row": , "status": "added", "row_id": ""} | {"row": , "status": "rejected", "errors": ["..."]}]} Relay every rejected row's errors to the user in plain language.
Example: add_rows(dataset="Candidates", rows=[ {"name": "Asha Verma", "phone": "9876543210", "stage": "Applied", "applied_on": "2026-08-30"} ])
Inputs: rows (required), dataset (required). Returns: object
create_datasetA
Create a new dataset (a table) with user-defined typed columns.
Use this whenever the user wants to start tracking something new - candidates, inventory, payments, a health log. Columns behave like spreadsheet headers with Google-Forms-style validation. Always propose the column list to the user and get their confirmation before calling this tool.
Args: name: Unique dataset name, e.g. "Candidates" (case-insensitive uniqueness). columns: One or more column definitions. description: Optional short description of what this dataset tracks.
Column types: string, text, boolean, integer, float, phone, date, enum. Column attributes: required, default, min_value/max_value (numeric columns), pattern (string/text columns), options (enum columns, at least one value).
Returns: {"ok": true, "dataset": "", "columns": [{"name", "type"}]} on success, {"ok": false, "error": ""} on failure.
Example: create_dataset(name="Candidates", description="Applicants for the Java JD", columns=[ {"name": "name", "type": "string", "required": true}, {"name": "phone", "type": "phone"}, {"name": "experience", "type": "float", "min_value": 0}, {"name": "stage", "type": "enum", "options": ["Applied", "Screened", "Rejected"]}, {"name": "applied_on", "type": "date"} ])
Inputs: name (required), columns (required), description. Returns: object
delete_datasetA
Delete an entire dataset and all of its rows after explicit confirmation.
Destructive: without confirm=true the tool only returns a preview (row count, column count). Call it with confirm=false first, tell the user what will be lost, and only re-invoke with confirm=true after they agree.
Args: name: Exact dataset name to delete. confirm: Must be true to actually delete (default false = preview only).
Returns: {"ok": true, "deleted": "", "rows_removed": } after confirmation, {"ok": true, "requires_confirmation": true, "preview": {...}} without.
Example: delete_dataset(name="Old JD", confirm=false)
Inputs: name (required), confirm. Returns: object
delete_rowsA
Delete rows by explicit ids, or in bulk for every row matching a filter.
Destructive: without confirm=true the tool only returns a preview listing the rows that would be deleted. Call it with confirm=false first, tell the user what will be lost, and only re-invoke with confirm=true after they agree.
Args: dataset: Exact dataset name, e.g. "Candidates". row_ids: Explicit row ids to delete, e.g. ["4"]. Mutually exclusive with conditions. conditions: Filter selecting rows to delete, e.g. [{"column": "experience", "op": "lt", "value": 2}]. confirm: Must be true to actually delete (default false = preview only).
Returns: {"ok": true, "dataset", "deleted": , "row_ids": [...], "not_found": [...]} after confirmation, {"ok": true, "requires_confirmation": true, "preview": {...}} without.
Example: delete_rows(dataset="Candidates", conditions=[{"column": "stage", "op": "eq", "value": "Rejected"}])
Inputs: dataset (required), confirm, row_ids, conditions. Returns: object
describe_datasetA
Show a dataset's full column definitions (types and constraints) and row count.
Use this before adding or searching rows so you know the exact column names, types, and constraints. Optionally include a few sample rows (capped at 5) to see what the data looks like.
Args: name: Exact dataset name, e.g. "Candidates". sample_rows: Optional number of first rows to include, 0-5 (default 0).
Returns: {"ok": true, "dataset", "description", "row_count", "columns": [{"name", "type", "required", "default?", "options?", ...}], "samples": [{"id", ...}]} on success, {"ok": false, "error": ""} when the dataset does not exist.
Example: describe_dataset(name="Candidates", sample_rows=3)
Inputs: name (required), sample_rows. Returns: object
export_rowsA
Export rows (optionally filtered and projected) to a CSV or JSON file.
Use this when the user wants their data back in a spreadsheet-friendly form. Filters use the same conditions syntax as search_rows. The id column is always included. Refuses to overwrite an existing file unless overwrite=true.
Args: dataset: Exact dataset name, e.g. "Candidates". file_path: Destination path for the .csv or .json file. format: "auto" (default, infers from extension), or force "csv"/"json". conditions: Optional filter, e.g. [{"column": "stage", "op": "eq", "value": "Applied"}]. columns: Optional column projection, e.g. ["name", "phone"]. overwrite: Allow replacing an existing file (default false).
Returns: {"ok": true, "dataset", "file": "", "format", "rows_exported": }.
Example: export_rows(dataset="Candidates", file_path="~/Documents/applied_august.csv", conditions=[{"column": "applied_on", "op": "between", "value": ["2026-08-01", "2026-08-31"]}])
Inputs: dataset (required), file_path (required), format, columns, +2 more. Returns: object
get_rowA
Fetch a single row by id, optionally limited to specific columns.
Use this when the user asks about one record ("show me row 12", "what is Asha's phone number?"). Ask for only the columns you need to keep the response small.
Args: dataset: Exact dataset name, e.g. "Candidates". row_id: The row id, e.g. "12". columns: Optional list of column names to project, e.g. ["name", "stage"].
Returns: {"ok": true, "dataset", "row": {"id", ...requested columns}} on success, {"ok": false, "error": ""} for unknown ids or columns.
Example: get_row(dataset="Candidates", row_id="12", columns=["name", "phone"])
Inputs: row_id (required), dataset (required), columns. Returns: object
import_rowsA
Import rows into a dataset from a CSV or JSON file, in two safe steps.
Step 1 (confirm=false, default): returns a mapping preview - how each file column maps to a dataset column, unmatched file columns, missing required dataset columns, and a small sample. Share the mapping with the user and let them confirm or adjust the file.
Step 2 (confirm=true): imports. Every row is validated against the dataset schema; valid rows are added and invalid rows are reported with plain-language reasons. CSV values are coerced automatically ("5" becomes the number 5, "true" becomes a boolean).
Args: dataset: Exact dataset name, e.g. "Candidates". file_path: Path to the .csv or .json file on this machine. format: "auto" (default, infers from extension), or force "csv"/"json". confirm: Must be true to actually import (default false = preview only). create_if_missing: When the dataset does not exist, create it first with one string column per file header, then import (default false).
Returns: Preview: {"ok": true, "requires_confirmation": true, "preview": {...}}. Commit: {"ok": true, "dataset", "added": , "rejected": , "rejected_rows": [{"row": , "errors": ["..."]}]}.
Example: import_rows(dataset="Candidates", file_path="~/Downloads/applicants.csv")
Inputs: dataset (required), file_path (required), format, confirm, +1 more. Returns: object
list_datasetsA
List all datasets with row counts and a name:type column summary.
Use this to discover what the user is already tracking before creating or querying a dataset. Results are paginated: use next_offset from the response to fetch the next page instead of raising the limit.
Args: limit: Page size (1-100, default 20). offset: Number of datasets to skip (default 0).
Returns: {"ok": true, "datasets": [{"name", "description", "row_count", "columns"}], "total": , "count": , "next_offset": }.
Example: list_datasets(limit=50)
Inputs: limit, offset. Returns: object
remove_columnA
Remove a column from a dataset after explicit confirmation.
Destructive: without confirm=true the tool only returns a preview of what would be dropped. Call it with confirm=false first, tell the user what will be lost, and only re-invoke with confirm=true after they agree.
Args: dataset: Exact dataset name, e.g. "Candidates". column: Column name to remove. confirm: Must be true to actually remove (default false = preview only).
Returns: {"ok": true, "dataset", "removed", "rows_updated"} after confirmation, {"ok": true, "requires_confirmation": true, "preview": {...}} without, {"ok": false, "error": ""} for unknown columns.
Example: remove_column(dataset="Candidates", column="temporary_note", confirm=false)
Inputs: column (required), dataset (required), confirm. Returns: object
search_rowsA
Search rows with exact filters, or typo-tolerant fuzzy matching, with sorting and pagination.
Two search modes:
Exact: pass conditions built from {column, op, value}. Ops: eq, ne, gt, gte, lt, lte, contains, in, between, is_empty, is_not_empty. Combine conditions to narrow further (AND).
Fuzzy: pass fuzzy=true plus a query string to match string/text columns tolerantly against typos and misspellings ("Rahual" finds "Rahul Sharma"). Results are ordered by similarity and carry an _score. Narrow with fuzzy_columns to search only specific text columns.
Results are always paginated: page with next_offset instead of raising the limit, and request only the columns you need via columns.
Args: dataset: Exact dataset name, e.g. "Candidates". conditions: Exact-mode filters, e.g. [{"column": "stage", "op": "eq", "value": "Applied"}]. fuzzy: Set true for typo-tolerant matching (requires query). query: Text to fuzzy-match, e.g. "Rahual". fuzzy_columns: Optional text columns to fuzzy-match against (default: all text columns). fuzzy_threshold: Minimum similarity score 1-100 (default 80). sort_by: Column to sort by (exact mode). sort_order: "asc" (default) or "desc". limit: Page size 1-100 (default 20). offset: Rows to skip for pagination (default 0). columns: Column projection, e.g. ["name", "stage"]; id is always included.
Returns: {"ok": true, "dataset", "rows": [{"id", ...columns, "_score"?}], "total": , "count": , "next_offset": }.
Example: search_rows(dataset="Candidates", conditions=[ {"column": "applied_on", "op": "between", "value": ["2026-08-01", "2026-08-31"]}, {"column": "stage", "op": "ne", "value": "Rejected"} ], sort_by="applied_on", sort_order="desc", columns=["name", "stage"]) search_rows(dataset="Candidates", fuzzy=true, query="Rahual", fuzzy_columns=["name"])
Inputs: dataset (required), fuzzy, limit, query, +7 more. Returns: object
summarize_datasetA
Summarize a dataset with aggregates instead of raw rows.
Use this when the user asks for totals or breakdowns ("how many candidates per stage?", "total inventory value?") - it returns row count, count/min/max/ avg/sum for every numeric column, and value breakdowns for every enum column, without ever dumping rows into the conversation.
Args: dataset: Exact dataset name, e.g. "Inventory".
Returns: {"ok": true, "dataset", "row_count": , "numeric": {"": {"count", "min", "max", "avg", "sum"} or {"count": 0}}, "enums": {"": {"": }}}.
Example: summarize_dataset(dataset="Inventory")
Inputs: dataset (required). Returns: object
update_columnA
Change a column's name, type, or constraints on an existing dataset.
Only the fields you explicitly provide are changed. After the change every stored row is revalidated: rows that no longer satisfy the new definition are reported with their row ids and errors, and their values are preserved so the user can decide how to fix them. Renaming a column moves the values under the new name in all rows.
Args: dataset: Exact dataset name, e.g. "Candidates". column: Current column name to change. changes: Fields to change, e.g. {"max_value": 10} or {"name": "full_name"}.
Returns: {"ok": true, "dataset", "column", "renamed_from": , "rows_checked": , "invalid_rows": {"<row_id>": [""]}} on success, {"ok": false, "error": ""} for unknown columns or invalid changes.
Example: update_column(dataset="Candidates", column="experience", changes={"max_value": 20})
Inputs: column (required), changes (required), dataset (required). Returns: object
update_rowsA
Update rows by explicit ids, or in bulk for every row matching a filter.
Only the provided columns change; everything else stays as-is. New values are validated together with the rest of each row, so an invalid change leaves that row untouched and is reported with plain-language errors.
Bulk mode (conditions): defaults to a dry-run preview. Review the preview with the user, then re-invoke with dry_run=false to apply. Never set dry_run=false on the first call when a filter may match many rows.
Args: dataset: Exact dataset name, e.g. "Candidates". values: Column values to set, e.g. {"stage": "Rejected"}. row_ids: Explicit row ids to update, e.g. ["3", "7"]. Mutually exclusive with conditions. conditions: Filter selecting rows to update, e.g. [{"column": "stage", "op": "eq", "value": "Screened"}]. dry_run: Bulk mode only - true (default) previews; false applies the update.
Returns: Id mode: {"ok": true, "dataset", "updated", "rejected", "not_found", "results": [...]}. Bulk mode dry-run: {"ok": true, "requires_confirmation": true, "preview": {...}}. Bulk mode applied: {"ok": true, "dataset", "matched", "updated", "rejected", "results": [...]}.
Example: update_rows(dataset="Candidates", values={"stage": "Rejected"}, conditions=[{"column": "score", "op": "lt", "value": 3}], dry_run=true)
Inputs: values (required), dataset (required), dry_run, row_ids, +1 more. Returns: object
validate_rowsA
Validate rows against a dataset's schema without saving anything.
Use this to pre-check data before committing it - e.g. when the user pastes a list of records and wants to know what would be rejected and why. Valid rows come back normalized (types coerced, defaults filled) so you can show the user exactly what would be stored.
Args: dataset: Exact dataset name, e.g. "Candidates". rows: List of row objects to check (max 100 per call).
Returns: {"ok": true, "dataset", "total": , "valid": , "invalid": , "results": [{"row": , "status": "valid", "normalized": {...}} | {"row": , "status": "invalid", "errors": ["..."]}]}.
Example: validate_rows(dataset="Candidates", rows=[{"name": "Asha", "phone": "9876543210"}])
Inputs: rows (required), dataset (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Every tool targets a distinct resource and action: dataset discovery, schema manipulation, row CRUD, search, validation, aggregation, and file import/export. Even similar operations like update_rows, delete_rows, and search_rows are clearly separated by intent and behavior.
All 16 tools follow a consistent verb_noun snake_case pattern (create_dataset, add_column, search_rows, export_rows, etc.). The few descriptive verbs like describe_dataset, summarize_dataset, and validate_rows still fit the same predictable convention.
At 16 tools, the server is slightly above the ideal 3-15 band, but the count is well-justified by the full CRUD surface for datasets, columns, and rows plus import/export. Each tool has a non-overlapping purpose and earns its place.
The surface covers dataset lifecycle, column management, row CRUD, search, validation, summarization, and file import/export. Minor gaps exist, such as no rename/update-dataset-metadata operation, but agents can work around these without dead ends.
Maintenance
Related MCP Connectors
An agent-native database over MCP: shared, validated, structured records in every AI chat.
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server that enables AI agents to read and write records in a live REST API generated from pasted data, with tools for listing, querying, inserting, updating, and deleting records.AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage CRM data including companies, contacts, prospects, pipelines, forecasts, and tasks via typed MCP tools, with local SQLite storage and a JSON CLI.MIT
- AlicenseNot gradedqualityCmaintenanceIt enables LLMs to query enterprise data such as sales orders, stock levels, and vendor information through structured MCP-compliant tools, using localized JSON databases for demonstration.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store, search, assemble, and manage local-first memories through seven MCP tools, including conversation turns, feedback, status, and dashboard access without cloud dependencies.AGPL 3.0