Skip to main content
Glama
rog0x

@rog0x/mcp-string-tools

Official
by rog0x

@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., cafe from cafe)

  • Removes special characters

  • Configurable separator (default: -)

  • Optional max length with clean truncation

  • Optional lowercase toggle

Related MCP server: mcp-regex-tools

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Provides 14+ character-level text analysis tools that give LLMs the ability to accurately count letters, analyze individual characters, and work with text at the character level—overcoming tokenization limitations.
    14
    16
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides a suite of regex and text processing tools for AI agents, including pattern testing, extraction, and replacement with capture group support. It also enables various text transformations like case conversion, line sorting, and deduplication through the Model Context Protocol.
    54
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides string utility operations via the MCP protocol, with built-in EU AI Act compliance.
    13
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides a set of micro-tools (time calculation, regex, encoding, JSON diff, etc.) for LLM agents to handle deterministic, precision tasks that models often get wrong.
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rog0x/mcp-string-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server