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.
Advanced string manipulation tools for AI agents, served over the Model Context Protocol (MCP).
Analyze text to get detailed metrics:
Transform text with various operations:
Compare two strings and see the differences:
Simple template engine:
{{variables}} with values from a JSON data object{{#if var}}...{{#else}}...{{/if}}{{#each arr}}...{{this}}...{{@index}}...{{/each}}{{user.name}}Generate URL-friendly slugs:
cafe from cafe)-)npm install
npm run build
Add to your claude_desktop_config.json:
{
"mcpServers": {
"string-tools": {
"command": "node",
"args": ["D:/products/mcp-servers/mcp-string-tools/dist/index.js"]
}
}
}
MIT