rtl-fixer

The rtl-fixer MCP server detects and corrects right-to-left (RTL) text rendering issues in HTML, CSS, and plain text inputs. It adjusts direction attributes, bidirectional overrides, and layout properties for languages like Arabic and Hebrew. Web developers and frontend engineers use it to ensure consistent display in multilingual applications.

rtl
bidi
i18n
|

Overview

The rtl-fixer MCP server processes content to resolve common RTL rendering problems, such as incorrect text direction, misaligned layouts, and bidirectional (BiDi) algorithm failures. It accepts text, HTML snippets, or CSS as input and outputs corrected versions ready for web deployment.

Key Capabilities

  • RTL direction detection and dir attribute insertion in HTML elements.
  • Bidirectional text isolation using Unicode control characters (e.g., LRI, RLI).
  • CSS logical property mapping (e.g., margin-inline-start for RTL flips).
  • Layout fix for mixed LTR/RTL content in responsive designs.

These functions handle server-side corrections without client-side JavaScript dependencies.

Use Cases

  1. Multilingual Website Builds: Input HTML from CMS, apply rtl-fixer to flip layouts for Arabic versions before serving.
  2. Email Template Processing: Correct RTL issues in newsletters mixing English and Hebrew text.
  3. Static Site Generation: Integrate into build pipelines (e.g., Gatsby, Next.js) to auto-fix RTL pages.
  4. Content Localization Tools: Pair with translation APIs to post-process RTL language outputs.

Who This Is For

Frontend developers working on i18n projects, localization engineers managing BiDi text, and teams building apps for RTL-dominant markets like Middle East and South Asia.

PlaygroundUpdated Apr 8, 2026