• CLEANED
  • SAVED
  • VALIDATED
  • REVIEW

How to prevent SMS segment bloat with your AI

Connect this MCP to your AI client once. From then on, your agent can clean up text to avoid extra messaging charges.

Ask AI about this page

Short answer

How do I stop my AI from bloating SMS segments?

The AI uses the sanitize_gsm7 tool to convert smart quotes and non-GSM characters into standard 7-bit ASCII. This keeps your messages in a single segment. You'll see the specific outcomes below.

The results.

Where your cleaned text lands.

The AI handles the character conversion so you don't have to manually check every draft.

CLEANED

Single segment text

The AI runs the sanitization tool on your draft. You get a string of pure 7-bit ASCII ready for your gateway.

SAVED

Lower messaging costs

By removing complex characters, the AI prevents carriers from splitting one message into multiple parts. You avoid those extra charges.

VALIDATED

GSM-7 compliance

The AI identifies smart quotes and special symbols. It replaces them with safe, standard alternatives automatically.

REVIEW

Human final check

The AI presents the sanitized version to you. You decide if the character replacements still fit your needs.

The workflow

What your AI does when a draft arrives.

The AI acts as a filter between your writing and the SMS gateway.

  1. Identify bloat

    Your AI scans your message for any characters that fall outside the GSM-7 alphabet, like curly quotes or accented letters.

    sanitize_gsm7
  2. Convert characters

    The tool swaps out problematic symbols for their closest ASCII equivalents to keep the character count low.

    sanitize_gsm7
  3. Verify segment count

    The AI confirms the new string fits within the single-segment limit before suggesting the final version.

    sanitize_gsm7
  4. Present clean text

    The AI shows you the sanitized text so you can verify the meaning hasn't changed too much.

    sanitize_gsm7

Try it

Copy these to start.

Use these prompts to trigger the sanitization process.

Starting points

Replace the bracketed text with your actual message or data source.

Unidecode & Emoji Regex Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_62Hkg8tkVyvv4L9qSbqQlax2IvyrZ64gBaZsZNQn/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Unidecode & Emoji Regex capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "sms-gsm-7-sanitizer-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_62Hkg8tkVyvv4L9qSbqQlax2IvyrZ64gBaZsZNQn/mcp"
    }
  }
}
Copy into chat04
  • Sanitize this message for SMS: [Paste message here]

  • Check this draft from my Google Sheet for GSM-7 compliance: [Paste text]

  • Clean up these customer notifications so they don't bloat my SMS segments: [Paste list]

  • Rewrite this email draft into a single-segment SMS using only 7-bit ASCII: [Paste email]

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect SMS GSM-7 Sanitizer once, then ask.

Click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start cleaning text immediately.

Connect SMS GSM-7 Sanitizer to your AI

FAQ

How this task behaves.

  • 01

    Will the AI delete my emojis?

    Yes. Since emojis are not part of the GSM-7 character set, the tool replaces them with text equivalents or removes them to prevent segment bloat.

  • 02

    Can the AI send the SMS for me?

    No. This MCP only sanitizes the text. You still need to use your own messaging provider to actually send the messages.

  • 03

    Does it change the meaning of my message?

    It only changes the character encoding. It swaps smart quotes for straight quotes and accented letters for standard ones, but it does not rewrite your actual words.

  • 04

    Can it fix my entire database of contacts?

    No. The tool processes the text you provide in the chat. It does not have the capability to reach out and modify your external databases or contact lists directly.

  • 05

    What happens if I have a very long message?

    The tool will still sanitize the characters, but if the message is naturally longer than 160 characters, it will still be sent as multiple segments by your carrier.

  • More questions about SMS GSM-7 Sanitizer? The Connector page answers them. See everything the SMS GSM-7 Sanitizer Connector can do

Connect Unidecode & Emoji Regex to Claude, Cursor, ChatGPT & more