Skip to main content
Glama

MCP Arabic Toolkit 🌍

License: MIT CI Python 3.9+ MCP Protocol

A high-performance Model Context Protocol (MCP) server providing Arabic Natural Language Processing (NLP), text normalization, diacritics stripping, dialect detection, and token efficiency analysis for AI agents.

Developed by Tarek Mohamed (@seotarek)


✨ Features

  • ⚡ Model Context Protocol (MCP) Compatible: Plug directly into Claude Desktop, Cursor, and any MCP client.

  • 🧹 Advanced Arabic Normalization: Unify complex Alef variants, Hamza, Yaa, Taa Marbuta, and strip Tatweel.

  • 🎯 Tashkeel Stripping: Remove diacritics (Harakat) accurately with zero distortion to core roots.

  • 🗣️ Arabic Dialect Classification: Heuristic and marker-based identification across Egyptian (EGY), Levantine (LEV), Gulf (GLF), Maghrebi (MAG), and Modern Standard Arabic (MSA).

  • 📊 Token & Prompt Efficiency Metrics: Calculate character-to-word and token compression statistics to optimize LLM prompt budgets for Arabic workloads.


Related MCP server: flexorch-mcp

🛠️ MCP Tools Exposed

Tool Name

Description

arabic_normalize_text

Normalizes Arabic letters, unifies orthographic variants, and strips elongation.

arabic_strip_diacritics

Strips all Tashkeel / Harakat from the input text.

arabic_detect_dialect

Identifies regional dialect with confidence scores.

arabic_token_metrics

Measures Arabic prompt density, word counts, and estimated token ratios.


🚀 Quickstart & Installation

Option A: Direct Run via uvx (No installation needed)

uvx mcp-arabic-toolkit

Or configure Claude Desktop / Cursor directly:

{
  "mcpServers": {
    "arabic-toolkit": {
      "command": "uvx",
      "args": ["mcp-arabic-toolkit"]
    }
  }
}

Option B: Local Clone & Development

git clone https://github.com/seotarek/mcp-arabic-toolkit.git
cd mcp-arabic-toolkit
pip install -e .

🧪 Testing

Run the automated test suite:

python -m unittest discover tests

📜 License

This project is open source and available under the MIT License.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    MCP server exposing Arabic text utilities: normalisation, tashkeel stripping, transliteration, heuristic dialect detection, and token counting.
    5
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables Claude and other MCP-compatible agents to process documents, extract structured data, detect PII, and export LLM-ready datasets through natural language tool calls.
    8
    40 PyPI
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides Arabic UI/UX design tools as an MCP server, offering RTL conversion, Arabic typography validation, cultural palettes, and anti-AI-slop auditing for AI-assisted design workflows.
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Enables dependable Arabic text normalization and search preparation for RAG and deduplication, with typed outputs, stable fingerprints, and experimental dialect, sentiment, and diacritization tools.
    2
    MIT