Csv To Sql

Data REST API MCP

Convert CSV text into SQL INSERT statements, optionally preceded by a CREATE TABLE. The first row is the header and becomes the column list. Column types are inferred from the first 50 data rows as integer, numeric, boolean, or text, and identifiers are quoted for the chosen dialect (Postgres, MySQL, or SQLite). Empty cells become NULL by default. Nothing is executed against a database.

This page documents the HTTP endpoint POST /api/tools/csv-to-sql/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/csv-to-sql/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/csv-to-sql/execute \
  -H "Content-Type: application/json" \
  -d '{
    "csv": "id,name\n1,Ada\n2,\"Doe, John\"",
    "table": "people",
    "dialect": "postgres"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/csv-to-sql

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
csv string yes CSV text with a header row.
table string no Target table name. Default: "my_table". Default: "my_table".
dialect string (postgres | mysql | sqlite) no Identifier quoting and type names. Default: postgres. Default: "postgres".
create_table boolean no Emit a CREATE TABLE before the inserts. Default: true. Default: true.
null_empty boolean no Write an empty cell as NULL rather than an empty string. Default: true. Default: true.
batch boolean no Emit one multi-row INSERT instead of one statement per row. Default: false. Default: false.

Example arguments (verified)

{
  "csv": "id,name\n1,Ada\n2,\"Doe, John\"",
  "table": "people",
  "dialect": "postgres"
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:csv_to_sql after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Csv To Sql →

More Data tools