
Advanced MCP server providing comprehensive text transformation and formatting tools. TextToolkit
Advanced MCP server providing comprehensive text transformation and formatting tools. TextToolkit offers over 40 specialized utilities for case conversion, encoding/decoding, formatting, analysis, and text manipulation - all accessible directly within your AI assistant workflow.
A Text Transformation & Formatting MCP Server for the Cline Marketplace that provides developers with common text manipulation functions directly within their workflow.
Transform, format, and analyze text without leaving your AI assistant workflow.
| Tool | Description |
|---|---|
| case_to_camel | Convert text to camelCase |
| case_to_pascal | Convert text to PascalCase |
| case_to_snake | Convert text to snake_case |
| case_to_kebab | Convert text to kebab-case |
| case_to_constant | Convert text to CONSTANT_CASE |
| case_to_dot | Convert text to dot.case |
| case_to_no | Convert text to no case |
| case_to_pascal_snake | Convert text to Pascal_Snake_Case |
| case_to_path | Convert text to path/case |
| case_to_sentence | Convert text to Sentence case |
| case_to_train | Convert text to Train-Case |
| case_to_capital | Convert text to Capital Case |
| encode_base64 | Encode text to Base64 |
| decode_base64 | Decode Base64 to text |
| encode_url | Encode text for URLs |
| decode_url | Decode URL-encoded text |
| encode_html | Encode HTML entities |
| decode_html | Decode HTML entities |
| format_json | Format and beautify JSON |
| format_xml | Format and beautify XML |
| format_sql | Format and beautify SQL |
| format_html | Format and beautify HTML |
| count_characters | Count characters in text |
| count_words | Count words in text |
| count_lines | Count lines in text |
| analyze_readability | Calculate readability metrics |
| string_trim | Trim whitespace from text |
| string_substring | Extract a substring |
| string_replace | Replace text |
| string_split | Split text into an array |
| string_join | Join an array into text |
| generate_uuid | Generate a UUID |
| validate_uuid | Validate a UUID |
| generate_md5 | Generate MD5 hash |
| generate_sha1 | Generate SHA-1 hash |
| generate_sha256 | Generate SHA-256 hash |
| generate_sha512 | Generate SHA-512 hash |
| generate_hmac | Generate HMAC hash |
| generate_lorem_ipsum | Generate lorem ipsum text |
| regex_test | Test a regex pattern against text |
| regex_replace | Replace text using a regex pattern |
| regex_extract | Extract matches using a regex pattern |
| regex_split | Split text using a regex pattern |
To run the TextToolkit MCP server using Node.js npx, use the following command:
npx -y @cicatriz/text-toolkit@latestTo add this server to Cursor IDE:
.cursor/mcp.json file:{
"mcpServers": {
"text-toolkit": {
"command": "npx",
"args": [
"-y",
"@cicatriz/text-toolkit"
]
}
}
}See the Cursor documentation for more details.
To set up MCP with Cascade, navigate to Windsurf - Settings > Advanced Settings or Command Palette > Open Windsurf Settings Page.
Scroll down to the Cascade section and add the TextToolkit MCP server directly in mcp_config.json:
{
"mcpServers": {
"text-toolkit": {
"command": "npx",
"args": [
"-y",
"@cicatriz/text-toolkit"
]
}
}
}Add the following JSON manually to your cline_mcp_settings.json via Cline MCP Server setting:
{
"mcpServers": {
"text-toolkit": {
"command": "npx",
"args": [
"-y",
"@cicatriz/text-toolkit"
]
}
}
}Access the MCP settings by clicking Edit MCP Settings in Roo Code settings or using the Roo Code: Open MCP Config command in VS Code's command palette:
{
"mcpServers": {
"text-toolkit": {
"command": "npx",
"args": [
"-y",
"@cicatriz/text-toolkit"
]
}
}
}Add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"text-toolkit": {
"command": "npx",
"args": [
"-y",
"@cicatriz/text-toolkit"
]
}
}
}See the Claude Desktop documentation for more details.
You can also run it as CLI by running the following command:
npx -y @cicatriz/text-toolkit@latest# Install globally from npm
npm install -g @cicatriz/text-toolkit
# Run the server
text-toolkit# Clone the repository
git clone https://github.com/Cicatriiz/text-toolkit.git
cd text-toolkit
# Install dependencies
npm install
# Build the project
npm run build
# Run the server
node dist/index.js# Start in stdio mode (default)
text-toolkit
# Start in SSE mode on a specific port
text-toolkit --sse --port=8000
# Display version
text-toolkit --versionYou can test the TextToolkit MCP server using the MCP Inspector:
# Install the MCP Inspector
npm install -g @modelcontextprotocol/inspector
# Run the inspector against your server
mcp-inspector @cicatriz/text-toolkitThe repository includes example scripts demonstrating how to use the TextToolkit MCP server:
# Run the case transformation example
node examples/case-transform-example.jsThis example demonstrates how to:
Converts text to camelCase.
Parameters:
text: The text to transformdelimiter (optional): The character to use between wordslocale (optional): Locale for case conversionmergeAmbiguousCharacters (optional): Whether to merge ambiguous charactersExample:
{
"text": "hello world test"
}Response:
{
"result": "helloWorldTest"
}Converts text to PascalCase.
Parameters:
text: The text to transformdelimiter (optional): The character to use between wordslocale (optional): Locale for case conversionmergeAmbiguousCharacters (optional): Whether to merge ambiguous charactersExample:
{
"text": "hello world test"
}Response:
{
"result": "HelloWorldTest"
}Encodes text to Base64.
Parameters:
text: The text to encodeExample:
{
"text": "hello world"
}Response:
{
"result": "aGVsbG8gd29ybGQ="
}Decodes Base64 to text.
Parameters:
text: The Base64 string to decodeExample:
{
"text": "aGVsbG8gd29ybGQ="
}Response:
{
"result": "hello world"
}Formats and beautifies JSON.
Parameters:
text: The JSON text to formatindent_size (optional): Number of spaces for indentation (1-8). Defaults to 2.Example:
{
"text": "{\"name\":\"John\",\"age\":30,\"city\":\"New York\"}",
"indent_size": 4
}Response:
{
"result": "{\n \"name\": \"John\",\n \"age\": 30,\n \"city\": \"New York\"\n}"
}Counts characters in text.
Parameters:
text: The text to analyzeExample:
{
"text": "hello world"
}Response:
{
"total_characters": 11,
"characters_without_spaces": 10
}Replaces text.
Parameters:
text: The text to perform replacements onsearch: The string to search forreplace: The string to replace withreplace_all (optional): Whether to replace all occurrences. Defaults to true.Example:
{
"text": "hello world",
"search": "world",
"replace": "universe"
}Response:
{
"result": "hello universe"
}Generates a UUID.
Parameters:
version (optional): UUID version to generate (v1, v4, v5, nil). Defaults to v4.namespace (optional): Namespace for v5 UUID (required for v5)name (optional): Name for v5 UUID (required for v5)uppercase (optional): Whether to return the UUID in uppercase. Defaults to false.Example:
{
"version": "v4"
}Response:
{
"uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}Generates lorem ipsum text.
Parameters:
count (optional): Number of units to generate. Defaults to 5.units (optional): Type of units to generate (words, sentences, paragraphs). Defaults to sentences.paragraphLowerBound (optional): Minimum sentences per paragraph. Defaults to 3.paragraphUpperBound (optional): Maximum sentences per paragraph. Defaults to 7.sentenceLowerBound (optional): Minimum words per sentence. Defaults to 5.sentenceUpperBound (optional): Maximum words per sentence. Defaults to 15.format (optional): Output format (plain, html). Defaults to plain.Example:
{
"count": 2,
"units": "sentences"
}Response:
{
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut hendrerit ipsum in nulla euismod, vel ultrices nisi tincidunt."
}Tests a regex pattern against text.
Parameters:
text: The text to test against the patternpattern: The regex pattern to testflags (optional): Regex flags (e.g., 'g', 'i', 'gi'). Defaults to 'g'.Example:
{
"text": "hello world",
"pattern": "\\w+",
"flags": "g"
}Response:
{
"matches": ["hello", "world"],
"match_count": 2,
"is_match": true
}TextToolkit is built using the Model Context Protocol (MCP) specification, which allows it to integrate seamlessly with Claude Desktop and other MCP-compatible clients. The server is implemented in TypeScript and uses the following architecture:
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)TextToolkit includes comprehensive test scripts that can be used to verify the functionality of the MCP server. The test scripts can be used to test both stdio and SSE modes.
# Test stdio mode
node test-comprehensive.js
# Test SSE mode
node test-sse-comprehensive.jsTextToolkit processes all data locally and does not send any information to external servers. Your text data and queries remain private on your device.
MIT
Cicatriz
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add text-toolkit -- npx -y @cicatriz/text-toolkit{
"mcpServers": {
"text-toolkit": {
"args": [
"-y",
"@cicatriz/text-toolkit"
],
"command": "npx"
}
}
}code --add-mcp '{"name":"text-toolkit","args":["-y","@cicatriz/text-toolkit"],"command":"npx"}'[mcp_servers.text-toolkit]
command = "npx"
args = ["-y", "@cicatriz/text-toolkit"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/install-globally-from-npm to learn what the "Install globally from npm" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
npx -y @cicatriz/text-toolkit@latestThis server runs locally, so we can't read its tool list over the web yet.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/install-globally-from-npm)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "install-globally-from-npm" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.