# Sql To Csv — MCP tool `findutils:sql_to_csv`

Read rows out of SQL INSERT statements and return CSV, one file per table. Parses a mysqldump, pg_dump or SQLite dump as text — nothing is executed against a database. Column names come from the INSERT column list, then from a CREATE TABLE in the same input, then from positions. NULL becomes an empty cell. Dump noise such as SET, LOCK TABLES and comments is ignored, and an INSERT ... SELECT with no literal VALUES is reported rather than guessed at.

- Category: data
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/sql-to-csv/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/mcp/sql-to-csv/
- Same tool on the other surface: https://findutils.com/api/sql-to-csv/

## Connect

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Claude Desktop (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "findutils": {
      "url": "https://mcp.findutils.com/"
    }
  }
}
```

## Call the tool (verified example)

```bash
curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "sql_to_csv",
      "arguments": {
        "sql": "INSERT INTO people (id, name) VALUES (1, '\''Ada'\''), (2, '\''Doe, John'\'');"
      }
    }
  }'
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `sql` | string | yes | SQL dump text containing INSERT statements. |
| `table` | string | no | Return only this table. Default: every table found. |
| `delimiter` | string | no | Output field separator. Default: a comma. Default: `","`. |
| `max_rows` | integer | no | Stop after this many rows per table. Default 50000, maximum 200000. Default: `50000`. |

Example arguments (verified):

```json
{
  "sql": "INSERT INTO people (id, name) VALUES (1, 'Ada'), (2, 'Doe, John');"
}
```

## Also a REST endpoint

```bash
curl -X POST https://api.findutils.com/api/tools/sql-to-csv/execute \
  -H "Content-Type: application/json" \
  -d '{
    "sql": "INSERT INTO people (id, name) VALUES (1, '\''Ada'\''), (2, '\''Doe, John'\'');"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/sql-to-csv
```

Full REST reference: https://findutils.com/api/sql-to-csv/ · OpenAPI 3.1 spec: https://findutils.com/api/openapi.json

---
Full catalog: POST https://mcp.findutils.com/ with method `tools/list` · https://findutils.com/mcp/ · https://findutils.com/llms.txt
