CSV Editor MCP Server for AI Data Manipulation
Transform AI workflows with an MCP server that enables Claude, ChatGPT, and other assistants to manipulate CSV data via simple commands.
Overview
CSV Editor is an MCP (Model Context Protocol) server that lets AI assistants (Claude, ChatGPT, and others that speak MCP) directly manipulate tabular data. Instead of having an assistant return instructions that you must translate into spreadsheet operations, CSV Editor exposes a collection of programmatic CSV/dataframe tools that the assistant can call as operations. This makes data cleaning, transformation, validation, profiling, and export workflows safe, auditable, and repeatable.
Designed for developers who want to integrate data-aware assistants into their tooling, the server supports large files through chunked processing, session-based isolation for multiple users, auto-save strategies, and full undo/redo history. The project source and examples are available on GitHub: https://github.com/santoshray02/csv-editor.
Features
- MCP-native server: expose data operations to any MCP-compatible assistant.
- 40+ tools for CSV and tabular operations (load, filter, group, join, pivot, export).
- Multi-format IO: CSV, JSON, Excel, Parquet, HTML, Markdown.
- Data cleaning utilities: remove duplicates, type coercion, missing value imputation.
- Analysis utilities: descriptive statistics, correlation, outlier detection, profiling.
- Validation: schema checks, pattern validation, quality scoring.
- Session management: multi-user isolated sessions with snapshots.
- History and recovery: full undo/redo with snapshot diffs.
- Auto-save strategies: configurable automatic persistence and export.
- Performance: streaming/chunked processing for GB+ datasets via Pandas-backed operations.
Key differentiators (quick comparison)
| Capability | CSV Editor (MCP) | Traditional tools |
|---|---|---|
| AI integration | Native MCP operations callable by assistants | Manual file handoff or plugin scripts |
| History | Full undo/redo, snapshots per session | Typically none or limited |
| Multi-user sessions | Isolated sessions per user | Single-user files |
| Auto-save | Configurable automatic strategies | Manual saves required |
| Large files | Chunked/stream processing | Memory-limited on large files |
| Validation & scoring | Built-in schema & quality checks | External tools required |
Installation / Configuration
Install and run locally or install via Smithery for direct integration with some assistant clients.
Install with Smithery (for Claude Desktop integrations)
Quick local run (recommended fast path)
# Optional: install uv runtime if not present
|
# Clone and run
Example Claude Desktop MCP configuration (macOS)
Other clients (Continue, Cline, Windsurf, Zed) should be configured using an MCP client config file. See the repository’s MCP_CONFIG.md for step-by-step examples.
Available Tools
CSV Editor exposes a collection of tools grouped by purpose. The assistant can call these tools via MCP messages to perform deterministic operations.
Examples of tool categories:
- IO: load_csv, load_csv_from_url, export_csv, export_parquet, export_json
- Cleaning: remove_duplicates, fill_missing_values, change_column_type
- Transformation: filter_rows, add_computed_column, group_by_aggregate, join_tables
- Analysis: get_statistics, get_correlation_matrix, detect_outliers, profile_table
- Validation: validate_schema, check_data_quality, find_anomalies
- Session & History: snapshot, undo, redo, list_sessions
Common tool examples (semantic summary)
| Command | What it does |
|---|---|
| load_csv(“file.csv”) | Load CSV into a new session and return session id |
| filter_rows(condition) | Filter rows matching conditions, stored as a new snapshot |
| get_statistics(columns=[…]) | Return descriptive stats for selected columns |
| export_csv(format=“excel”, file_path=“out.xlsx”) | Export session to specified format |
Note: The server keeps a history of operations as snapshots — operations are non-destructive until exported or persisted by the configured auto-save strategy.
Use Cases
Data analyst workflow
# (Assistant-driven sequence)
=
ETL pipeline (assistant coordinates multi-step transform)
Data quality and validation
=
# quality_report includes missing %, duplicates, outliers, overall score
Available Resources
- Source code and issues: https://github.com/santoshray02/csv-editor
- MCP reference and client examples: see MCP_CONFIG.md in the repo
- Runtime: Python 3.8+ with Pandas; uses FastMCP for MCP handling
If you’re integrating this with an assistant, configure a dedicated MCP server entry in your assistant client and experiment with small datasets to learn the tool names and snapshot behavior before processing large production data.