Text Find Replace

Text REST API MCP

Find and replace text and return the new text with the match and replacement counts. Supports case-insensitive search, whole-word matching, JavaScript regular expressions (with $1 capture groups in the replacement), and replace-first or replace-all.

This page documents the HTTP endpoint POST /api/tools/text-find-replace/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/text-find-replace/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/text-find-replace/execute \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello world",
    "find": "world",
    "replace": "there"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/text-find-replace

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
text string yes The input text.
find string yes The text (or regex pattern when use_regex is true) to find.
replace string no The replacement text. Default: empty string (delete matches). Default: "".
case_sensitive boolean no Match case exactly. Default: false. Default: false.
whole_word boolean no Match whole words only. Default: false. Default: false.
use_regex boolean no Treat find as a regular expression. Default: false. Default: false.
replace_all boolean no Replace every match (true) or only the first (false). Default: true. Default: true.

Example arguments (verified)

{
  "text": "Hello world",
  "find": "world",
  "replace": "there"
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:text_find_replace after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Text Find Replace →

More Text tools