Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Arabic Text

FreeNot checked

Deterministic Arabic text tools (normalization, diacritics, digits, Buckwalter) as an MCP server

GitHubEmbed

About

Deterministic Arabic text tools (normalization, diacritics, digits, Buckwalter) as an MCP server

README

A small MCP server that gives any agent deterministic Arabic text tools — no model calls, no network, no state. Useful because LLMs are unreliable at exact character-level work (stripping diacritics, unifying alef forms, converting digits).

tests

TL;DR — Seven deterministic Arabic text tools for any MCP client; tested end-to-end through a real stdio MCP session.

Tools

Tool What it does
normalize Strips tashkeel and tatweel; optionally unifies alef (أإآٱ→ا), yaa (ى→ي), taa marbuta (ة→ه), hamza carriers (ؤئ)
strip_diacritics Removes harakat, shadda, sukun and the dagger alef (ٰ) only
convert_digits Western ↔ Eastern Arabic-Indic digits; Persian digits (۰-۹) folded in, since real text mixes them
to_buckwalter / from_buckwalter Lossless Buckwalter transliteration
split_sentences Splits on . ! ? ؟ ؛ and newlines
script_stats Arabic/Latin letter counts, diacritics, words, Arabic ratio

Design choice: taa_marbuta normalization is off by default — it merges مدرسة/مدرسه but also conflates distinct words, so it must be requested.

Install & use

pip install arabic-text-mcp

# Claude Code
claude mcp add arabic-text -- arabic-text-mcp

Any MCP client: {"command": "arabic-text-mcp"} (stdio), or python -m arabic_text_mcp.

Tests

pip install -e ".[test]"
pytest tests

Includes an end-to-end test that spawns the server as a real process and calls a tool through an MCP client over stdio. Test cases come from real text (Uthmani-script basmala, tatweel-stretched headlines, mixed Eastern/Persian digits, a Wikipedia line mixing LTR and RTL).

Built on mcp 2.x (MCPServer, formerly FastMCP).

Scope

Intentionally excludes dialect identification and diacritization: those need models and honest accuracy numbers, not rules. Planned as separate, evaluated modules.

from github.com/alialrikabi313/arabic-text-mcp

Install Arabic Text in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install arabic-text

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add arabic-text -- uvx arabic-text-mcp

Step-by-step: how to install Arabic Text

FAQ

Is Arabic Text MCP free?

Yes, Arabic Text MCP is free — one-click install via Unyly at no cost.

Does Arabic Text need an API key?

No, Arabic Text runs without API keys or environment variables.

Is Arabic Text hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Arabic Text in Claude Desktop, Claude Code or Cursor?

Open Arabic Text on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Arabic Text with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs