Whitespace Clean

Text REST API MCP

Clean whitespace in text: trim, collapse runs of spaces, remove blank lines, normalize newlines.

This page documents the MCP tool findutils:whitespace_clean. See the REST reference →

View as Markdown

Call it over MCP

Tool name findutils:whitespace_clean · no API keys · 120 requests/min per IP

Claude Code

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

Claude Desktop — claude_desktop_config.json

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

Raw JSON-RPC (any MCP client) — verified example

curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "whitespace_clean",
      "arguments": {
        "text": "  hello   world  "
      }
    }
  }'

Input schema

Argument Type Required Description
text string yes Text to clean.
trim boolean no Trim leading/trailing whitespace. Defaults to true. Default: true.
collapse_spaces boolean no Collapse runs of non-newline whitespace to single space. Defaults to true. Default: true.
remove_blank_lines boolean no Drop lines that are only whitespace. Defaults to false. Default: false.
normalize_newlines boolean no Convert CRLF/CR to LF. Defaults to true. Default: true.

Example arguments (verified)

{
  "text": "  hello   world  "
}

Also a REST endpoint

The same tool answers plain HTTP at POST /api/tools/whitespace-clean/execute — no key, 60 requests/min.

Open the REST reference for Whitespace Clean →

More Text tools