csv_to_json
Pack: csv · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/csv_to_json for the schema, then POST the same URL with its arguments for the data.
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 — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the csv pack
{
"mcpServers": {
"csv": {
"url": "https://gateway.pipeworx.io/csv/mcp"
}
}
}
See Getting Started for client-specific install steps.