csv_to_json
Pack: csv · Endpoint: https://gateway.pipeworx.io/csv/mcp
Parse RFC 4180 CSV into JSON (keyless, offline). With header true (default) the first row becomes object keys; otherwise rows are returned as arrays. Handles quoted fields, escaped quotes, and embedded commas/newlines. Set delimiter for TSV etc.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
csv | string | yes | The CSV text. |
header | boolean | no | Treat the first row as a header (default true). |
delimiter | string | no | Field delimiter (default ”,”). |
Example call
Arguments
{
"csv": "name,age,city\nAlice,30,New York\nBob,25,Los Angeles",
"header": true
}
curl
curl -X POST https://gateway.pipeworx.io/csv/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"csv_to_json","arguments":{"csv":"name,age,city\nAlice,30,New York\nBob,25,Los Angeles","header":true}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('csv_to_json', {
"csv": "name,age,city\nAlice,30,New York\nBob,25,Los Angeles",
"header": true
});
More examples
{
"csv": "product\tprice\tquantity\nWidget\t9.99\t100\nGadget\t19.99\t50",
"delimiter": "\t"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"csv": {
"url": "https://gateway.pipeworx.io/csv/mcp"
}
}
}
See Getting Started for client-specific install steps.