arabic-text-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@arabic-text-mcp Remove the diacritics from this Arabic text: الْعَرَبِيَّةُ لُغَةٌ جَمِيلَةٌ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
arabic-text-mcp
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).
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 |
| Strips tashkeel and tatweel; optionally unifies alef (أإآٱ→ا), yaa (ى→ي), taa marbuta (ة→ه), hamza carriers (ؤئ) |
| Removes harakat, shadda, sukun and the dagger alef (ٰ) only |
| Western ↔ Eastern Arabic-Indic digits; Persian digits (۰-۹) folded in, since real text mixes them |
| Lossless Buckwalter transliteration |
| Splits on |
| 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.
Related MCP server: MCP Arabic Toolkit
Install & use
pip install arabic-text-mcp
# Claude Code
claude mcp add arabic-text -- arabic-text-mcpAny MCP client: {"command": "arabic-text-mcp"} (stdio), or python -m arabic_text_mcp.
Tests
pip install -e ".[test]"
pytest testsIncludes 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.
Available Tools
7 toolsconvert_digitsA
Convert between Western (0-9) and Eastern Arabic-Indic (٠-٩) digits; Persian digits are folded in. to is 'western' or 'eastern'.
Inputs: text (required), to. Returns: result
from_buckwalterA
Transliterate Buckwalter ASCII back to Arabic.
Inputs: text (required). Returns: result
normalizeA
Normalize Arabic for search/matching: strips diacritics and tatweel, optionally unifies alef/yaa/taa-marbuta/hamza carriers.
Inputs: text (required), yaa, alef, taa_marbuta, +1 more. Returns: result
script_statsB
Count Arabic/Latin letters, diacritics and words; arabic_ratio is Arabic letters over all letters.
Inputs: text (required). Returns: object
split_sentencesA
Split Arabic text into sentences on . ! ? ؟ ؛ and newlines.
Inputs: text (required). Returns: result
strip_diacriticsA
Remove tashkeel (harakat, shadda, sukun, dagger alef) and keep letters as-is.
Inputs: text (required). Returns: result
to_buckwalterA
Transliterate Arabic to Buckwalter ASCII (lossless, reversible).
Inputs: text (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have clearly distinct operations (digit conversion, Buckwalter transliteration, sentence splitting, stats). The only real overlap is between normalize and strip_diacritics, though descriptions clarify that normalize optionally unifies letter variants and strips tatweel while strip_diacritics is narrower.
All tool names use snake_case, and most follow a verb_noun or directional-verb pattern. However, names like normalize and script_stats break the otherwise predictable verb-object convention used by strip_diacritics, convert_digits, split_sentences, and to/from_buckwalter.
Seven tools is well-scoped for an Arabic text processing utility. Each tool covers a distinct common operation, and there are no obviously redundant or filler tools.
The surface covers key normalization, diacritic removal, digit conversion, transliteration in both directions, sentence splitting, and statistics. Minor gaps remain, such as explicit tatweel removal or tokenization, but core workflows are covered.
Maintenance
Related MCP Connectors
Pay-per-call Arabic text, audio and document utilities over x402. USDC on Base, no API key.
Amounts in words (Arabic cheque grammar), number formatting, Arabic text tools, date parsing.
Text and Unicode utilities for agents: homoglyphs, scripts, slugify, entropy, dates. Paid via x402.
Exact text tools for AI agents: unified diff, patch apply, regex testing, grapheme counting.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server exposing Arabic text utilities: normalisation, tashkeel stripping, transliteration, heuristic dialect detection, and token counting.5MIT
- AlicenseBqualityCmaintenanceEnables AI agents to normalize Arabic text, strip diacritics, classify regional dialects, and analyze prompt token efficiency. Exposes these capabilities as MCP tools that plug into Claude Desktop, Cursor, and other MCP clients.4MIT
- AlicenseBqualityCmaintenanceEnables dependable Arabic text normalization and search preparation for RAG and deduplication, with typed outputs, stable fingerprints, and experimental dialect, sentiment, and diacritization tools.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible assistants to perform deterministic local Unicode lowercase, uppercase, and inverse-case conversion on plain text without network requests or a language model.MIT