home / mcp / moroccan law mcp server

Moroccan Law MCP Server

Provides a Morocco-specific law database with full-text search, article-level retrieval, and currency checks for cybersecurity compliance via MCP.

Installation
Add the following to your MCP client configuration file.

Configuration

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

Moroccan Law MCP provides a dedicated MCP server that offers full-content search, precise article-level retrieval, citation validation, and currency verification for Moroccan legislation, enabling secure, scalable access for compliance workflows.

How to use

You can access the Moroccan Law MCP server either through a remote MCP URL or by running the server locally. Use the remote URL when you want a hosted, ready-to-use endpoint. Use the local option when you prefer to run the server on your own infrastructure for development or private deployments.

How to install

Prerequisites you need before installing:

  • • Ensure Node.js is installed (recommended LTS version).
  • • npm is included with Node.js.

Option A: Run the MCP locally using npm and npx

npx @ansvar/moroccan-law-mcp

Option B: Connect to the remote MCP URL using an MCP client

claude mcp add moroccan-law --transport http https://moroccan-law-mcp.vercel.app/mcp

Available tools

full_text_search

Provides full-text search across legislation provisions using BM25 ranking to surface relevant results quickly.

article_retrieval

Supports article-level retrieval to fetch specific legal provisions with precise references.

citation_validation

Validates citations to prevent hallucinated or incorrect references in outputs.

currency_check

Verifies whether laws are still in force and checks for changes in status over time.