# Json Escaper — MCP tool `findutils:json_escaper`

Returns the text with JSON string escapes applied (mode "escape") or removed (mode "unescape"). Escapes backslashes, double quotes, newlines, carriage returns, tabs, form feeds and backspaces so the text can sit inside a JSON string literal.

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

## 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": "json_escaper",
      "arguments": {
        "text": "He said \"hi\"\nbye",
        "mode": "escape"
      }
    }
  }'
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `text` | string | yes | The text to escape or unescape. |
| `mode` | string (escape \| unescape) | no | Direction: "escape" (default) adds JSON escapes; "unescape" removes them. Default: `"escape"`. |

Example arguments (verified):

```json
{
  "text": "He said \"hi\"\nbye",
  "mode": "escape"
}
```

## Also a REST endpoint

```bash
curl -X POST https://api.findutils.com/api/tools/json-escaper/execute \
  -H "Content-Type: application/json" \
  -d '{
    "text": "He said \"hi\"\nbye",
    "mode": "escape"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/json-escaper
```

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