mcpField
S
string

string

Local
github.com/rog0xDeveloper Tools0Updated 32w ago

About string

An MCP server for AI agents that analyzes, transforms, compares, and formats strings. It combines text metrics, extraction and masking operations, multi-level diffs, templates, and slug generation.

Key features

  1. 01Measure text length and readability
  2. 02Transform text and extract common data
  3. 03Mask sensitive values
  4. 04Compare strings by character, word, or line
  5. 05Render templates and generate slugs

Use cases

  1. 01Review text length and reading level
  2. 02Extract URLs or contact details from text
  3. 03Compare revisions of text
  4. 04Fill templates or create URL slugs

MCP support

Exposes string analysis, transformation, comparison, template rendering, and slug generation tools to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"rog0x-string": {
"command": "npx",
"args": [
"-y",
"@rog0x/mcp-string-tools"
]
}
}
}
Run commandnpx -y @rog0x/mcp-string-tools

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@rog0x/mcp-string-tools1.0.2

Tools

5

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
textstringYesThe text to analyze

Details

From the project 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., cafe from cafe)
  • 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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.