# Text Diff — MCP tool `findutils:text_diff`

Line-by-line diff of two strings using LCS. Returns structured chunks (equal / added / removed) plus a unified-diff-style text block and tallies.

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

## 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": "text_diff",
      "arguments": {
        "a": "foo\nbar",
        "b": "foo\nbaz"
      }
    }
  }'
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `a` | string | yes | Original text. |
| `b` | string | yes | Changed text. |

Example arguments (verified):

```json
{
  "a": "foo\nbar",
  "b": "foo\nbaz"
}
```

## Also a REST endpoint

```bash
curl -X POST https://api.findutils.com/api/tools/text-diff/execute \
  -H "Content-Type: application/json" \
  -d '{
    "a": "foo\nbar",
    "b": "foo\nbaz"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/text-diff
```

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