Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
@rog0x/mcp-string-toolsclaude mcp add string -- npx -y @rog0x/mcp-string-tools@1.0.2
{
"mcpServers": {
"string": {
"command": "npx",
"args": [
"-y",
"@rog0x/mcp-string-tools@1.0.2"
]
}
}
}
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
@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
npm install
npm run build
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"string-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-string-tools/dist/index.js"]
}
}
}
License
MIT
Frequently asked questions
What is io.github.rog0x/string?
String analyzer, diff, templates for AI agents
How do I install io.github.rog0x/string?
It runs on your machine. In Claude Code: claude mcp add string -- npx -y @rog0x/mcp-string-tools@1.0.2. For other clients, paste the JSON configuration from this page into their MCP settings.
Does io.github.rog0x/string need an API key?
Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.
Is io.github.rog0x/string open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains io.github.rog0x/string?
It is published by rog0x. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.