Give coding agents right-to-left awareness: lint, normalise Arabic, detect direction.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server that gives a coding agent right-to-left awareness.
Ask an agent for a card component and you get ml-4 text-left β correct English, broken Arabic. The agent has no way to check itself, because nothing in its toolbox knows what RTL is. This gives it four tools that do.
Point your MCP client at the package. Nothing to install first β npx fetches it.
Claude Code
Any client that reads an mcpServers block (Claude Desktop, Cursor, Windsurf, Zed):
| Tool | What the agent gets |
|---|---|
lint_rtl_code | Pass a snippet and a filename; get every physical CSS property, directional Tailwind utility and dir problem, each with its logical replacement. Powered by rtl-lint. |
lint_rtl_path | The same check across a file or a whole directory on disk. |
normalize_arabic | Fold the spellings users type interchangeably into one key β strips diacritics and tatweel, unifies the alef forms. For search and matching, not for display. |
detect_direction | Whether a string is rtl, ltr, mixed or neutral, and what to set dir to. |
Both lint tools accept baseDir: "rtl" for an Arabic-first app β see below.
normalize_arabic mattersΩ
ΩΨΩΩ
ΩΩΨ― and Ω
ΨΩ
Ψ― are the same name and different strings. So are Ψ£ΨΩ
Ψ― and Ψ§ΨΩ
Ψ―. A user who types their name without diacritics will not find their own record, and the bug reads like a broken database rather than a text problem.
The two folds that change meaning β Ω β Ω and Ψ© β Ω β are off by default. They widen fuzzy search and corrupt anything you display.
baseDir: "rtl" for an Arabic-first appWhich logical side a physical one maps to depends on the document's base direction. In ltr, left is the start; in rtl, left is the end. So text-right in an English-first app becomes text-end, and in an app rooted at <html dir="rtl"> it becomes text-start β the opposite edge. Take the default on an Arabic app and the agent mirrors a working layout.
Utilities the author already scoped, like ltr:left-3 rtl:right-3, are left alone entirely.
detect_direction is not just a regexArabic-Indic digits (Ω’Ω Ω’Ω¦) live inside the Arabic Unicode block, so the obvious implementation calls them RTL. Under the bidirectional algorithm they are class AN, not AL β they never set the direction of a paragraph. Only strong letters vote here, so Ω’Ω Ω’Ω¦ comes back neutral and inherits its container's direction, which is what the spec says should happen.
MCP over stdio is JSON-RPC 2.0, one message per line. The reference SDK brings seventeen transitive dependencies β Express, Hono, CORS, JOSE β none of which a stdio server uses. So the protocol layer here is written directly, and the only runtime dependency is rtl-lint.
That trade is only safe if conformance is proven rather than assumed. The test suite drives this server with the official SDK's client over a real stdio pipe. If the hand-written layer ever drifts from the specification, the reference implementation stops talking to it and CI goes red.
Protocol revisions understood: 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05. The server negotiates whichever one the client asks for.
The Arabic helpers work standalone, no MCP involved:
Node.js 20 or newer. (Node 18 reached end of life in April 2025.)
MIT Β© Khalel Hawary
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/rtl-awareness-for-coding-agents)<a href="https://allmcps.com/mcp/rtl-awareness-for-coding-agents"><img src="https://allmcps.com/api/badge/rtl-awareness-for-coding-agents?style=directory" alt="RTL awareness for coding agents on AllMCPs" /></a>