Claude and ChatGPT finally know Moroccan law: connect them to Haqia in two minutes
Haqia's free MCP connector gives Claude and ChatGPT access to over 10,000 official Moroccan legal texts. Benefits, uses and setup.
Checked against the official texts on November 16, 2026

You already use Claude or ChatGPT every day to draft a letter, summarise a file or prepare for a meeting. But the moment a question touches on Moroccan law, doubt creeps in: is the assistant citing the right article? Is it answering for Morocco or for France? Is the text it mentions still in force?
Haqia offers a simple answer: a free MCP connector that plugs your assistant directly into the official texts of Moroccan law. Your assistant keeps its way with words. It gains a reliable Moroccan legal library, consulted live, with the exact reference for every article.

What is the MCP?
The Model Context Protocol (MCP) is an open standard launched in late 2024 by Anthropic, the maker of Claude, and since adopted by OpenAI for ChatGPT. It is often compared to a USB port for artificial intelligence: a common format that lets any assistant plug into an external data source.
In practice, when you ask a question, the assistant can call on 'tools' provided by the connector. Haqia's offers six:
- search: search the official texts, in Arabic and in French;
- fetch: read the full text of an article or a law, with its source;
- search_articles: a search filtered by language and by type of text (law, circular, decision…);
- get_article: a specific article from a code, with its version in the other language;
- list_codes: the list of the main codes and their identifiers;
- latest_updates: the latest texts picked up by Haqia's legal monitoring.
The assistant chooses the useful tool itself, reads the result, then answers you based on the official text.
Answers for Morocco, not for France
This is the most common failing of general-purpose assistants. In our benchmark of 190 questions, GPT-5.5, ChatGPT's engine, mentioned France or French law in 42 of its 100 answers to our main series when the question did not specify the country. Cooling-off period, share capital of a public limited company, time limit for claiming wages: the figures change, and the error goes unnoticed.
With the connector, the assistant no longer guesses: it reads the applicable Moroccan text. It knows that a Moroccan employee has two years to claim their wages (article 395 of the Labour Code), not three as in France.
The exact article, verifiable in one click
A legal answer is only as good as its source. With every search, Haqia sends the assistant the title of the text, the article number, its full content and the address of its page on haqia.ma. So you can check for yourself, in one click, what the law actually says.

In this example, the question concerns an employee made redundant after eight years' service. The connector finds article 53 of the Labour Code, which sets the severance pay at 96 hours' wages per year for the first five years, then 144 hours from the sixth to the tenth year. The assistant can then do the calculation, citing the text.

Over 10,000 official texts, kept up to date
The connector searches the same database as the Haqia site:
- the laws, dahirs, decrees and codes published on the Adala portal of the Ministry of Justice, in their consolidated versions;
- over 2,000 decisions of the Constitutional Court;
- circulars and regulatory texts (Bank Al-Maghrib, Competition Council…);
- Moroccan legal journals and studies.
This database is updated by daily legal monitoring. When a text changes, your assistant sees it, without waiting for a model to be retrained.
Arabic and French, side by side
Moroccan texts often exist in both languages. The connector searches in Arabic and French alike, and the get_article tool returns the article's version in the other language where it exists. You can ask your question in French and get the reference for the official Arabic version, or the other way round. This is invaluable for a lawyer pleading in Arabic from a file drafted in French.
Who is it for?

- Lawyers and legal professionals: find an article, compare the two language versions, prepare a note citing the texts.
- Businesses and HR: check a notice period, an allowance, a reporting obligation without leaving your usual work tool.
- Law students: revise from the official texts rather than from an AI's approximate recollections.
- Developers and legaltechs: plug Moroccan law into an agent or an application, with Claude Code, Cursor or any MCP-compatible client.
- Citizens and Moroccans abroad: understand your rights with an assistant you already know, keeping the source in front of you.
Setting up the connector in two minutes
The address is the same everywhere: https://haqia.ma/mcp. No account, no key, no payment.
- In Claude: open the settings, go to 'Connectors', choose 'Add a custom connector', name it 'Haqia', paste the address, with no authentication. Then enable it in a conversation.
- In ChatGPT: open the settings, go to the apps and connectors section. Depending on your plan, adding a custom connector requires enabling developer mode. Create the 'Haqia' connector with the same address.
- With Claude Code: a single command is enough, claude mcp add --transport http haqia https://haqia.ma/mcp.
The full step-by-step guide, with the list of tools and sample questions, is on the Haqia AI connector page.

Privacy: a read-only connector

The Haqia connector is designed to know as little about you as possible:
- it is read-only: it consults the texts, writes nothing and acts on nothing;
- it receives only the search sent by the assistant, never your entire conversation;
- it reads no data from your Claude or ChatGPT account;
- it does not store the content of searches;
- it is limited to 60 requests per minute per address, to stay fast and available to everyone.
The limits to know about
The connector significantly improves your assistant's reliability, but it does not make it infallible. The assistant can still misread a text or draw too quick a conclusion: always check the article cited via the link provided. The information remains general. Only publication in the Bulletin officiel is authoritative, and a serious case deserves a lawyer's advice.
And if you use neither Claude nor ChatGPT, nothing changes: the Haqia assistant answers directly on the site, in French, Arabic and Darija, with the same texts.
Ask the assistant« What is the amount of severance pay in Morocco? »Sourced answerIn short
Connecting Claude or ChatGPT to Haqia gives your usual assistant what it lacks for Moroccan law: the official texts, up to date, in Arabic and French, with the exact reference for every article. It's free, it takes two minutes, and you always keep the source in front of you. Head to the connector page to install it.
Frequently asked questions
What is an MCP connector?
The Model Context Protocol (MCP) is an open standard that lets an assistant like Claude or ChatGPT plug into an external data source. The Haqia connector gives it access to the official texts of Moroccan law.
Is the Haqia connector free?
Yes. Simply add the address https://haqia.ma/mcp in your assistant, with no account or key. Use is limited to 60 requests per minute per address.
Do I need a paid subscription to Claude or ChatGPT?
That depends on each provider's plan and how it evolves. Claude lets you add a custom connector in its settings. ChatGPT requires, depending on the plan, enabling developer mode.
Does Haqia see my conversations?
No. The connector receives only the search sent by the assistant, reads no data from your account and does not store the content of searches. It works in read-only mode.
Which texts does the connector cover?
Over 10,000 official texts: laws, dahirs, decrees and codes from the Adala portal, Constitutional Court decisions, regulatory circulars and legal journals, in Arabic and French, kept up to date by daily monitoring.
Do the answers have legal force?
No. They are general legal information. Only publication in the Bulletin officiel is authoritative. Always check the article cited via the link provided and consult a lawyer for a specific case.
Official sources
- Model Context Protocol specification (modelcontextprotocol.io)
- Adala portal of the Ministry of Justice (consolidated versions of texts)
- Bulletin officiel of the Kingdom of Morocco
- Labour Code (law no. 65-99), art. 53, cited as an example
- Haqia benchmark: 190 Moroccan law questions put to five assistants (November 2026)
General information, up to date as of the date shown. For a specific situation, ask the assistant or consult a professional.
