Package Exports
- csv-toolkit-mcp
- csv-toolkit-mcp/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (csv-toolkit-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
csv-toolkit-mcp
CSV Toolkit MCP server. Read, write, filter, and analyze CSV data.
No external dependencies. Pure string processing.
Install
npm install -g csv-toolkit-mcpUsage
Claude Desktop / Cursor / OpenCode
Add to your MCP config:
{
"mcpServers": {
"csv-toolkit": {
"command": "npx",
"args": ["-y", "csv-toolkit-mcp"]
}
}
}Tools
read_csv — Read CSV
Parse a CSV string into a JSON array of objects.
Input:
{
"csv_string": "name,age,city\nAlice,30,Taipei\nBob,25,Kaohsiung"
}Output:
{
"row_count": 2,
"data": [
{ "name": "Alice", "age": "30", "city": "Taipei" },
{ "name": "Bob", "age": "25", "city": "Kaohsiung" }
]
}write_csv — Write CSV
Convert a JSON array of objects to a CSV string.
Input:
{
"data": [
{ "name": "Alice", "age": 30 },
{ "name": "Bob", "age": 25 }
]
}Output:
name,age
Alice,30
Bob,25filter_csv — Filter CSV
Filter CSV rows by column, operator, and value.
Input:
{
"csv_string": "name,age\nAlice,30\nBob,25\nCharlie,35",
"column": "age",
"operator": ">",
"value": "26"
}Output:
{
"original_count": 3,
"filtered_count": 2,
"column": "age",
"operator": ">",
"value": "26",
"data": [
{ "name": "Alice", "age": "30" },
{ "name": "Charlie", "age": "35" }
]
}Supported operators: =, !=, >, <, >=, <=, contains, starts_with, ends_with, regex
stats_csv — CSV Statistics
Calculate statistics for a numeric column.
Input:
{
"csv_string": "name,age\nAlice,30\nBob,25\nCharlie,35",
"column": "age"
}Output:
{
"column": "age",
"count": 3,
"sum": 90,
"average": 30,
"median": 30,
"min": 25,
"max": 35,
"range": 10
}Design
| Feature | Why |
|---|---|
| Zero runtime deps | Only @modelcontextprotocol/sdk and zod |
| Pure string processing | No CSV parsing library needed |
| Multiple operators | 10 comparison operators for filtering |
| Full statistics | sum, average, median, min, max, range |
License
MIT