
String
io.github.rog0xPublished by GitHub account rog0xv1.0.2Updated Oct 27, 2026
String analyzer, diff, templates for AI agents
Overview
Local MCP server that gives an assistant text tools: string analysis, transforms, diffs, template rendering and slug generation.
- What you can do
- Analyze text: character, word, sentence and paragraph counts, reading time, Flesch-Kincaid level, unique and common words, longest word
- Transform text: remove duplicate lines, collapse whitespace, extract emails, URLs and phone numbers, mask sensitive data, truncate, wrap
- Compare two strings with character, word or line diffs showing additions, deletions and unchanged segments
- Render templates with variable substitution, conditionals, loops and nested property access
- Generate URL-friendly slugs with transliteration, configurable separator, optional max length and lowercase
- When to use it
- Useful when an assistant needs to measure, clean up, compare or reformat text locally, for example checking readability, deduplicating lines, masking emails and card numbers before sharing, diffing two versions of a string, or producing slugs for URLs.
- Requirements
- Runs as a local stdio process on the desktop; install the npm package and build it, then point the client at the built entry file with node. No accounts, API keys or environment variables are declared.
Installation
In SourceWeft
- Open String in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
diff_strings
Compare two strings and see the differences:
- character mode - Character-by-character diff
- word mode - Word-by-word diff (default)
- line mode - Line-by-line diff
- Shows additions, deletions, and unchanged segments with positions
render_template
Simple template engine:
- Replace
{{variables}}with values from a JSON data object - Conditionals:
{{#if var}}...{{#else}}...{{/if}} - Loops:
{{#each arr}}...{{this}}...{{@index}}...{{/each}} - Nested property access:
{{user.name}}
generate_slug
Generate URL-friendly slugs:
- Transliterates accented characters (e.g.,
cafefromcafe) - Removes special characters
- Configurable separator (default:
-) - Optional max length with clean truncation
- Optional lowercase toggle
Setup
Usage with Claude Desktop
Add to your claude_desktop_config.json:
License
MIT
Source: README.md at commit 29a699e
Tools
0Version history
1- v1.0.2LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.