data-cleaner-agent
Click on "Install 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., "@data-cleaner-agentClean up this messy CSV and standardize the dates and country names."
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.
data-cleaner-agent
Clean a messy CSV with an agentic workflow. An LLM decides which cleaning steps the data needs, and tested Python functions do the actual work. The model plans the cleanup, it never touches your data values, so nothing gets hallucinated or silently rewritten.
Works offline out of the box (no API key). Can be driven by an LLM, and other AI agents can call it as an MCP tool.
Before / after
Full Name , Country, Signup Date, Amount Paid full_name country signup_date amount_paid
Alice ,Netherlands,2023-01-05,"€1.200,50" Alice Netherlands 2023-01-05 1200.5
Bob,nederland,05/01/2023,"$900" ─────▶ Bob Netherlands 2023-01-05 900.0
Alice ,NL,2023-01-05,"€1.200,50" Carol Germany 2023-02-10 1000.0
Carol , Germany ,2023-02-10,1000 Dan Belgium 2023-03-01 750.0
Dan,belgie,2023/03/01,"€ 750,00"In one pass it fixed the headers, trimmed whitespace, parsed three different date formats to ISO,
turned €1.200,50 / $900 / € 750,00 into numbers, standardized the country names, and dropped the
duplicate Alice row.
Related MCP server: mcp-csv-analyst
Install & run
pip install agentic-csv-cleaner
clean-csv messy.csv cleaned.csv # clean a file
clean-csv messy.csv # or just print the resultNo API key needed. The default planner is a set of offline heuristics.
The idea
An "agentic workflow" is just software with a few parts:
look at the data -> planner picks the steps -> run the steps -> report
(rules, or an LLM) (tested code)The decision that makes it safe to trust:
The planner decides which tool runs on which column. The tools do the transformation. A language model is good at judgment ("this column looks like money") and bad at being a reliable calculator. So the LLM only ever picks operations from a fixed set. It never reads a value and writes back a "cleaned" one, which is where LLM data-cleaning usually goes wrong.
Two planners, one loop
Planner | What it is | Needs |
| Offline heuristics from a quick data profile. The default. | nothing |
| Sends the profile + tool list to an LLM, gets back a JSON plan. |
|
Both return the same list of steps, so the loop is identical. You swap the brain, not the plumbing.
Use it from other code or agents
from cleaner.api import clean_csv_text
result = clean_csv_text(open("messy.csv").read())
print(result["cleaned_csv"])
print(result["steps"])As an MCP tool
Other AI agents (Claude Desktop, or any MCP client) can call the cleaner as a tool, so they can clean a CSV properly instead of reformatting it token by token in the prompt:
pip install "agentic-csv-cleaner[mcp]"
python -m cleaner.mcp_serverThis exposes one tool, clean_csv, that takes CSV text and returns the cleaned CSV plus the steps.
What's in the box
cleaner/tools.py holds the transformations: snake_case_headers, strip_whitespace,
coerce_numeric, standardize_dates, standardize_categorical, drop_duplicate_rows.
Take standardize_dates. 2023-01-05 (year first, month in the middle) and 05/01/2023 (day first)
need opposite parsing rules, and one global setting corrupts one or the other, so the tool decides per
value. Mixed dates are genuinely ambiguous, and this handles them explicitly instead of guessing.
Tests
python -m unittest discover -s testsLicense
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that provides AI assistants with structured, type-safe access to tabular datasets from CSV files. It enables users to list, describe, and query data using filters and projections with support for hot reloading.
- AlicenseAquality-maintenanceAn MCP server that enables AI assistants to load, query, and analyze local CSV files using tools for filtering, aggregation, and grouping. It provides capabilities to describe schemas, calculate statistics, and sample data directly from CSV files.6
- Flicense-qualityDmaintenanceA local MCP server for analyzing CSV files from your filesystem, particularly suited for chatbot conversation logs. Allows listing, reading, filtering, merging, and statistical analysis of CSV data via natural language.
- Flicense-qualityDmaintenanceAn MCP server for dataset exploration and analysis, enabling LLM clients to perform summary, correlation, distribution, missing value analysis, data cleaning, and statistical tests directly on CSV files.
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wesseltl/data-cleaner-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server