home / mcp / egyptian law mcp server

Egyptian Law MCP Server

Provides MCP-backed access to Egyptian cybersecurity laws with full-text search, article retrieval, and currency checks.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-egyptian-law-mcp": {
      "url": "https://egyptian-law-mcp.vercel.app/mcp"
    }
  }
}

Egyptian Law MCP provides access to an organized, MCP-based database of Egyptian cybersecurity legislation. It enables powerful search, precise article retrieval, citation validation, and currency checks so you can verify which laws are currently in force and locate relevant provisions efficiently.

How to use

You can connect to Egyptian Law MCP using either the remote HTTP endpoint or by running a local MCP client. The remote endpoint is hosted at a public MCP URL and lets you query the database over the network. The local option runs the MCP server on your machine, invoked via a package runner. Use whichever method fits your workflow to search provisions, retrieve specific articles, validate citations, and confirm currency of laws.

How to install

Prerequisites: you should have Node.js and npm installed on your system. If you plan to run a local MCP client, ensure your environment can execute npm or npx commands.

Remote HTTP usage requires no local installation beyond a client capable of making MCP requests. Use the remote URL shown in the quick start to connect.

If you prefer a local setup, install and run the MCP client using the following command from your shell. This uses npx to execute the MCP client provided by the project.

claude mcp add egyptian-law --transport http https://egyptian-law-mcp.vercel.app/mcp
npx @ansvar/egyptian-law-mcp

Data sources and scope

Real legislation is ingested from Egypt's official Public Laws Portal. The corpus includes currently discoverable law detail pages, their status (All, Active, Amended, Repealed), and downloadable PDFs attached to detail pages.

A snapshot as of February 22, 2026 includes a small set of law detail pages and 14 downloadable PDFs. OCR is used to extract text from PDFs, with a fallback for image-based documents. OCR output is derived from source texts and is not altered to fabricate legal content.

What you can do with the MCP

Full-text search across provisions using an efficient indexing method. Retrieve specific articles at the provision level. Validate citations to avoid referencing non-existent provisions. Check whether laws are currently in force.

Notes on licensing

The MCP data and tooling are licensed under Apache-2.0.

Data sources and corpus status

Data comes from Egypt’s Public Laws Portal and includes multiple detail pages and PDFs. The system uses a structured ingestion pipeline to convert PDFs to searchable text and applies OCR where needed. No legal text is fabricated during OCR or extraction.

Available tools

full_text_search

Allows you to search across the entire corpus with ranking and relevance ordering to quickly locate provisions.

article_retrieval

Retrieves exact articles or provisions by reference, enabling precise lookup of legal text.

citation_validation

Checks citations to prevent referencing non-existent or outdated provisions.

currency_checks

Verifies whether laws remain in force and identifies status changes like amendments or repeals.