# Line Sort — MCP tool `findutils:line_sort`

Sort lines alphabetically, numerically, or by length. Ascending or descending, case-sensitive or not.

- Category: text
- 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/line-sort/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/mcp/line-sort/
- Same tool on the other surface: https://findutils.com/api/line-sort/

## 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": "line_sort",
      "arguments": {
        "text": "banana\napple\ncherry"
      }
    }
  }'
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `text` | string | yes | Newline-separated input. |
| `order` | string (asc \| desc) | no | Sort direction. Default: `"asc"`. |
| `mode` | string (alpha \| numeric \| length) | no | Comparison mode. Default: `"alpha"`. |
| `case_sensitive` | boolean | no | Case-sensitive comparison. Defaults to false. Default: `false`. |

Example arguments (verified):

```json
{
  "text": "banana\napple\ncherry"
}
```

## Also a REST endpoint

```bash
curl -X POST https://api.findutils.com/api/tools/line-sort/execute \
  -H "Content-Type: application/json" \
  -d '{
    "text": "banana\napple\ncherry"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/line-sort
```

Full REST reference: https://findutils.com/api/line-sort/ · 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
