|
| 1 | +## TextToolkit MCP Server |
| 2 | + |
| 3 | +A Model Context Protocol (MCP) server that provides text transformation, formatting, and analysis tools for AI workflows. |
| 4 | + |
| 5 | +**About this MCP Server:** For details on connecting and using this MCP server, see the official Model Context Protocol documentation at [mcp.apify.com](https://mcp.apify.com). |
| 6 | + |
| 7 | +## Connection URL |
| 8 | +MCP clients can connect to this server at: |
| 9 | + |
| 10 | +```text |
| 11 | +https://mcp-servers--formatter-mcp-server.apify.actor/mcp |
| 12 | +``` |
| 13 | + |
| 14 | +## Client Configuration |
| 15 | +To connect to this MCP server, use the following configuration in your MCP client: |
| 16 | + |
| 17 | +```json |
| 18 | +{ |
| 19 | + "mcpServers": { |
| 20 | + "text-toolkit": { |
| 21 | + "url": "https://mcp-servers--formatter-mcp-server.apify.actor/mcp", |
| 22 | + "headers": { |
| 23 | + "Authorization": "Bearer YOUR_APIFY_TOKEN" |
| 24 | + } |
| 25 | + } |
| 26 | + } |
| 27 | +} |
| 28 | +``` |
| 29 | + |
| 30 | +**Note:** Replace `YOUR_APIFY_TOKEN` with your Apify API token. You can find your token in the [Apify Console](https://console.apify.com/account/integrations). |
| 31 | + |
| 32 | +## 🚩 Claim this MCP server |
| 33 | +All credits to the original authors of [https://github.com/Cicatriiz/text-toolkit](https://github.com/Cicatriiz/text-toolkit) |
| 34 | +To claim this server, please write to [[email protected]](mailto:[email protected]). |
| 35 | + |
| 36 | +## Features |
| 37 | + |
| 38 | +- Transform, format, and analyze text |
| 39 | +- Case conversions (camelCase, snake_case, etc.) |
| 40 | +- String encoding/decoding (Base64, URL, HTML) |
| 41 | +- JSON, XML, SQL, HTML formatting |
| 42 | +- Text analysis (character, word, line count, readability) |
| 43 | +- String manipulation (trim, substring, replace, split, join) |
| 44 | +- UUID generation and validation |
| 45 | +- Hash generation (MD5, SHA, HMAC) |
| 46 | +- Lorem Ipsum generation |
| 47 | +- Regex pattern testing and manipulation |
| 48 | + |
| 49 | +## Available Tools |
| 50 | + |
| 51 | +This server provides the following tools: |
| 52 | + |
| 53 | +- `case_to_camel`: Convert text to camelCase |
| 54 | +- `case_to_pascal`: Convert text to PascalCase |
| 55 | +- `case_to_snake`: Convert text to snake_case |
| 56 | +- `case_to_kebab`: Convert text to kebab-case |
| 57 | +- `case_to_constant`: Convert text to CONSTANT_CASE |
| 58 | +- `case_to_dot`: Convert text to dot.case |
| 59 | +- `case_to_no`: Convert text to no case |
| 60 | +- `case_to_pascal_snake`: Convert text to Pascal_Snake_Case |
| 61 | +- `case_to_path`: Convert text to path/case |
| 62 | +- `case_to_sentence`: Convert text to Sentence case |
| 63 | +- `case_to_train`: Convert text to Train-Case |
| 64 | +- `case_to_capital`: Convert text to Capital Case |
| 65 | +- `encode_base64`: Encode text to Base64 |
| 66 | +- `decode_base64`: Decode Base64 to text |
| 67 | +- `encode_url`: Encode text for URLs |
| 68 | +- `decode_url`: Decode URL-encoded text |
| 69 | +- `encode_html`: Encode HTML entities |
| 70 | +- `decode_html`: Decode HTML entities |
| 71 | +- `format_json`: Format and beautify JSON |
| 72 | +- `format_xml`: Format and beautify XML |
| 73 | +- `format_sql`: Format and beautify SQL |
| 74 | +- `format_html`: Format and beautify HTML |
| 75 | +- `count_characters`: Count characters in text |
| 76 | +- `count_words`: Count words in text |
| 77 | +- `count_lines`: Count lines in text |
| 78 | +- `analyze_readability`: Calculate readability metrics |
| 79 | +- `string_trim`: Trim whitespace from text |
| 80 | +- `string_substring`: Extract a substring |
| 81 | +- `string_replace`: Replace text |
| 82 | +- `string_split`: Split text into an array |
| 83 | +- `string_join`: Join an array into text |
| 84 | +- `generate_uuid`: Generate a UUID |
| 85 | +- `validate_uuid`: Validate a UUID |
| 86 | +- `generate_md5`: Generate MD5 hash |
| 87 | +- `generate_sha1`: Generate SHA-1 hash |
| 88 | +- `generate_sha256`: Generate SHA-256 hash |
| 89 | +- `generate_sha512`: Generate SHA-512 hash |
| 90 | +- `generate_hmac`: Generate HMAC hash |
| 91 | +- `generate_lorem_ipsum`: Generate lorem ipsum text |
| 92 | +- `regex_test`: Test a regex pattern against text |
| 93 | +- `regex_replace`: Replace text using a regex pattern |
| 94 | +- `regex_extract`: Extract matches using a regex pattern |
| 95 | +- `regex_split`: Split text using a regex pattern |
| 96 | + |
| 97 | +## Tool Details |
| 98 | + |
| 99 | +### Example: case_to_camel |
| 100 | +Converts text to camelCase. |
| 101 | + |
| 102 | +Parameters: |
| 103 | +- `text`: The text to transform |
| 104 | +- `delimiter` (optional): The character to use between words |
| 105 | +- `locale` (optional): Locale for case conversion |
| 106 | +- `mergeAmbiguousCharacters` (optional): Whether to merge ambiguous characters |
| 107 | + |
| 108 | +Example: |
| 109 | +```json |
| 110 | +{ |
| 111 | + "text": "hello world test" |
| 112 | +} |
| 113 | +``` |
| 114 | +Response: |
| 115 | +```json |
| 116 | +{ |
| 117 | + "result": "helloWorldTest" |
| 118 | +} |
| 119 | +``` |
| 120 | + |
| 121 | +### Example: format_json |
| 122 | +Formats and beautifies JSON. |
| 123 | + |
| 124 | +Parameters: |
| 125 | +- `text`: The JSON text to format |
| 126 | +- `indent_size` (optional): Number of spaces for indentation (1-8). Defaults to 2. |
| 127 | + |
| 128 | +Example: |
| 129 | +```json |
| 130 | +{ |
| 131 | + "text": "{\"name\":\"John\",\"age\":30,\"city\":\"New York\"}", |
| 132 | + "indent_size": 4 |
| 133 | +} |
| 134 | +``` |
| 135 | +Response: |
| 136 | +```json |
| 137 | +{ |
| 138 | + "result": "{\n \"name\": \"John\",\n \"age\": 30,\n \"city\": \"New York\"\n}" |
| 139 | +} |
| 140 | +``` |
| 141 | + |
| 142 | +## References |
| 143 | +To learn more about Apify and Actors, take a look at the following resources: |
| 144 | +- [Apify SDK for JavaScript documentation](https://docs.apify.com/sdk/js) |
| 145 | +- [Apify SDK for Python documentation](https://docs.apify.com/sdk/python) |
| 146 | +- [Apify Platform documentation](https://docs.apify.com/platform) |
| 147 | +- [Apify MCP Server](https://docs.apify.com/platform/integrations/mcp) |
| 148 | +- [Webinar: Building and Monetizing MCP Servers on Apify](https://www.youtube.com/watch?v=w3AH3jIrXXo) |
| 149 | +- [Join our developer community on Discord](https://discord.com/invite/jyEM2PRvMU) |
0 commit comments