@dennisk2025/text-unicode-escape
v1.0.0
Published
Converts input text into a Unicode escape sequence representation (e.g., A -> \u0041) and decodes it back. Useful for encoding, debugging, or understanding Unicode code points.
Readme
text-unicode-escape MCP Server
Converts input text into a Unicode escape sequence representation (e.g., A -> \u0041), and can decode a string of Unicode escapes back to normal text. Useful for encoding, debugging, or understanding Unicode code points.
Installation
Via npm:
npm install @dennisk2025/text-unicode-escapeor directly run with npx:
npx @dennisk2025/text-unicode-escapeAdding to Claude Desktop
Add this block to your Claude Desktop config file:
{
"mcpServers": {
"unicodeescape": {
"command": "npx",
"args": ["@dennisk2025/text-unicode-escape"]
}
}
}Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Available Tools
to_unicode_escape
- Description: Transforms a string into its Unicode escape sequence, showing each character as its hexadecimal Unicode code point (e.g., 👋 -> \u1F44B).
- Input:
text(string, required): The text to convert to Unicode escape sequences.
- Output (JSON object):
unicode_escaped: The resulting escape sequence string.
from_unicode_escape
- Description: Converts Unicode escape sequences back into normal text (e.g., \u0041\u1F44B -> A👋).
- Input:
unicode_escaped_text(string, required): String containing Unicode escape sequences to decode.
- Output (JSON object):
text: The decoded string.
Usage Examples
Example: Encode text to Unicode escapes
Tool: to_unicode_escape
Params:
{
"text": "Hello 👋"
}Response:
{
"unicode_escaped": "\\u0048\\u0065\\u006C\\u006C\\u006F\\u0020\\u1F44B"
}Example: Decode Unicode escapes back to text
Tool: from_unicode_escape
Params:
{
"unicode_escaped_text": "\\u1F50A\\u0021"
}Response:
{
"text": "🔊!"
}License
MIT
