Textops MCP
Official5 toolsby nexus-api-lab
Exact text tools for AI agents: unified diff, patch apply, regex testing, grapheme counting.
Text processing tools: unified diff, patch application, regex testing, grapheme counting.
Captured live from the server via tools/list.
diff
Compute an exact line-based unified diff between two texts. Use instead of writing diffs yourself — LLM-authored diffs have wrong line numbers and miscounted hunks.
Parameters (3)
- old_textstringrequired
Original text.
- new_textstringrequired
Modified text.
- contextinteger
Context lines per hunk (default 3).
apply_patch
Apply a unified diff to a text, with context verification and small-offset fuzzing. Reports per-hunk success so failures are explicit rather than silent.
Parameters (2)
- textstringrequired
Text to patch.
- patchstringrequired
Unified diff (with @@ hunk headers).
regex_test
Execute a JavaScript regular expression against a text and return real matches with indices and capture groups. Use instead of predicting regex behavior — LLM regex predictions are unreliable.
Parameters (3)
- patternstringrequired
Regex pattern WITHOUT surrounding slashes.
- flagsstring
Regex flags, e.g. "gi". Include "g" to find all matches.
- textstringrequired
Text to search.
text_stats
Count text length EXACTLY: graphemes (user-perceived characters, correct for emoji/CJK/combining marks), words, lines, Unicode code points, UTF-16 units, UTF-8 bytes. Use whenever "how many characters" matters.
Parameters (2)
- textstringrequired
Text to measure.
- word_localestring
BCP-47 locale for word segmentation (affects e.g. Japanese/Thai). Default "en".
canonical_json
Validate JSON and return it canonicalized (recursively sorted object keys) in compact and pretty forms. Useful for stable comparison and exact validation with error details.
Parameters (1)
- jsonstringrequired
JSON text to validate and canonicalize.
README not available yet.
Install
Remote endpoint
Streamable HTTPHosted server - connect over the network, no local install.
https://textops-mcp.dokasukadon.workers.dev/mcpclaude_desktop_config.json
{
"mcpServers": {
"textops-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://textops-mcp.dokasukadon.workers.dev/mcp"
]
}
}
}Desktop config is stdio-only; this bridges via mcp-remote. Native remote: Settings > Connectors.