arabic-text-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Use
pip install -r requirements.txt
# Claude Code
claude mcp add arabic-text -- python /path/to/server.pyOr in any MCP client config: {"command": "python", "args": ["/path/to/server.py"]} (stdio).
Tests
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
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