rog0x avatar

String

rog0x/mcp-string-tools

This gives Claude five focused string operations: analyze_string returns readability metrics like Flesch-Kincaid scores and word frequency, transform_string handles extraction and masking of emails, URLs, and phone numbers plus whitespace cleanup, diff_strings compares text at character, word, or line level, render_template processes mustache-style variables with conditionals and loops, and generate_slug creates URL-friendly identifiers with transliteration. Reach for this when you need text analysis beyond basic manipulation, especially for content processing pipelines where you want readability assessment, structured diffs, or template rendering without pulling in separate libraries for each task.

tools
5
transport
STDIO
last updated
Mar 22, 2026

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

analyze_stringAnalyze text to get detailed metrics including character, word, sentence, and paragraph counts, reading time, and reading level.

Analyze text to get detailed metrics including character, word, sentence, and paragraph counts, reading time, and reading level.

No parameter schema in public metadata yet.

transform_stringTransform text with various operations such as removing duplicate lines, extracting emails, URLs, and phone numbers, masking sensitive data, truncating, and wrapping text.

Transform text with various operations such as removing duplicate lines, extracting emails, URLs, and phone numbers, masking sensitive data, truncating, and wrapping text.

No parameter schema in public metadata yet.

diff_stringsCompare two strings and show additions, deletions, and unchanged segments in character, word, or line mode.

Compare two strings and show additions, deletions, and unchanged segments in character, word, or line mode.

No parameter schema in public metadata yet.

render_templateSimple template engine that replaces variables and supports conditionals and loops using a JSON data object.

Simple template engine that replaces variables and supports conditionals and loops using a JSON data object.

No parameter schema in public metadata yet.

generate_slugGenerate URL-friendly slugs with transliteration, configurable separator, optional max length, and optional lowercase toggle.

Generate URL-friendly slugs with transliteration, configurable separator, optional max length, and optional lowercase toggle.

No parameter schema in public metadata yet.

Sponsors

Readme

@rog0x/mcp-string-tools

Advanced string manipulation tools for AI agents, served over the Model Context Protocol (MCP).

Tools

analyze_string

Analyze text to get detailed metrics:

  • Character count (with and without spaces)
  • Word, sentence, and paragraph counts
  • Estimated reading time
  • Flesch-Kincaid reading level score and grade
  • Unique word count and most common words
  • Longest word

transform_string

Transform text with various operations:

  • remove_duplicate_lines - Remove duplicate lines from text
  • remove_extra_whitespace - Collapse extra whitespace and blank lines
  • extract_emails - Extract all email addresses from text
  • extract_urls - Extract all URLs from text
  • extract_phone_numbers - Extract phone numbers from text
  • mask_sensitive_data - Mask emails, phone numbers, and credit card numbers
  • truncate - Truncate text with ellipsis at word boundaries
  • wrap_text - Wrap text at a specified column width

View the full README on GitHub

Details

Repository
github.com/rog0x/mcp-string-tools
Package
@rog0x/mcp-string-tools
Transport
STDIO
Registry
MCP registry, active

More from rog0x