leginova-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Écoute en mode HTTP (HTTP mode listen host) | 127.0.0.1 |
| PORT | No | Écoute en mode HTTP (HTTP mode listen port) | 3000 |
| LEGINOVA_RETRIES | No | Nouvelles tentatives sur erreur transitoire (429, 5xx, réseau) | 2 |
| LEGINOVA_BASE_URL | No | Site interrogé (the Leginova site queried) | https://leginova.gouv.nc |
| LEGINOVA_CACHE_MB | No | Taille du cache mémoire (memory cache size) | 256 |
| MCP_ALLOWED_HOSTS | No | Noms d'hôte acceptés quand l'écoute n'est pas en boucle locale (obligatoire dans ce cas) | |
| LEGINOVA_MAX_PDF_MB | No | Taille maximale d'un PDF téléchargé pour extraction (maximum size of a downloaded PDF for extraction) | 80 |
| LEGINOVA_TIMEOUT_MS | No | Délai maximal par requête (maximum timeout per request) | 30000 |
| LEGINOVA_USER_AGENT | No | User-Agent envoyé | leginova-mcp/<version> (...) |
| MCP_ALLOWED_ORIGINS | No | Origines navigateur acceptées (browser origins accepted) | MCP_ALLOWED_HOSTS |
| LEGINOVA_CACHE_TTL_S | No | Durée de vie du cache (cache TTL) | 3600 |
| LEGINOVA_MAX_CONCURRENCY | No | Requêtes simultanées vers Leginova (concurrent requests to Leginova) | 4 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| leginova_searchA | Full-text search across the official law of New Caledonia on leginova.gouv.nc: Journal officiel (JONC) acts, consolidated texts (lois du pays, délibérations, arrêtés...), codes, case law and Congress debates. Write queries in French. Words are AND-ed by default; "double quotes" search an exact phrase; OU / SAUF (or OR / NOT) combine terms. Each result carries its official URL (cite it) and a |
| leginova_advanced_searchA | Structured search mirroring leginova.gouv.nc/recherche-avancee. Pick a |
| leginova_suggestA | Autocomplete over titles: turns a partial name ("code du travail", "loi du pays 2021-2", "télétravail") into documents with their ids and slugs. Cheaper than a search when the target is known by name. |
| leginova_list_codesA | Lists the 31 consolidated codes published on Leginova with the slug every other code tool expects, the filing authority of each code (Etat, Nouvelle-Calédonie, Province) and the date of the published version. Titles alone mislead: "Code civil applicable en Nouvelle-Calédonie" is filed by New Caledonia, "Code de la consommation applicable en Nouvelle-Calédonie" by the State, next to a separate "Code de la consommation de Nouvelle-Calédonie". Codes can also be mixed: the Code de commerce applicable en Nouvelle-Calédonie, filed by New Caledonia, keeps State-law articles (L.) next to loi du pays articles (Lp.), so competence is read article by article from the prefix. The first call reads every code and takes a few seconds. |
| leginova_get_code_outlineA | Table of contents of a code (parts, books, titles, chapters, sections) with article counts and the section_slug / article_slug needed to read them. Start broad (depth 2), then zoom in with section_slug. |
| leginova_get_code_articleA | Returns one code article (text, amendment history, place in the code, previous/next articles, official URL). Give either article_slug (from search results or outlines) or article_number. article_number matching is prefix-tolerant: "L. 441-6", "Lp 441-6", "441-6" or "art. 1er" all resolve, and the result states how the match was made (match_status). "Lp." numbers articles adopted or localized by a New Caledonian loi du pays: the metropolitan "L. 441-6" is "Lp. 441-6" in the Code de commerce applicable en Nouvelle-Calédonie. The same number can also exist under several prefixes as distinct articles; the result lists them. Without code_slug, every code is searched. A not_found status is never proof that no legal basis exists: relay the notice. |
| leginova_read_code_sectionA | Full text of a code section (chapter, section...) with all its articles, in reading order. Long sections are returned in chunks: pass back |
| leginova_get_texte_consolideA | Reads a consolidated text (loi du pays, délibération, arrêté... in its current version with all amendments applied). mode "outline" returns metadata, the table of articles and the amendment history; mode "full" returns the text itself, chunked by max_chars (pass back |
| leginova_get_jurisprudenceA | Reads a decision published on Leginova (Conseil d'État, Cour de cassation, Cour d'appel de Nouméa, Tribunal administratif, Conseil constitutionnel...): metadata plus the full text extracted from the official PDF, by page range. |
| leginova_get_joncA | Opens an issue of the Journal officiel de la Nouvelle-Calédonie (JONC). Numbers like "2026-00020" are items of the new electronic JONC and return the full act directly; plain numbers like "10068" are classic issues and return their table of contents (acts by section, legal publications, associations), each with the id to pass to leginova_get_jonc_item. The issue date is the JONC publication date of every act it contains. leginova_browse lists the issues of a year. |
| leginova_get_jonc_itemA | Reads one item published in the JONC: an act (arrêté, délibération, loi du pays, State law...), a legal publication or an association notice. Returns published_in_jonc_on (date of publication in the JONC) and the filing authority with every act. Recent acts come as structured text. For many older acts Leginova holds metadata only: with pdf_text "auto" the text is then extracted from the official PDF. |
| leginova_get_debatA | Reads the record of a sitting of the Congrès de la Nouvelle-Calédonie ("compte rendu des débats", numbers like "DR-2026-00005"), extracted from the official PDF by page range. These PDFs run to hundreds of pages and the first access downloads up to 60 MB (a few seconds): read them page range by page range. |
| leginova_browseA | Lists a collection chronologically, like the site map: without |
| leginova_get_catalogueA | Identifiers accepted by leginova_advanced_search: codes, themes, issuing authorities, collectivities, act types, courts, decision types, section types and condition scopes. Filter by |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| legal_research | Finds, reads and cites the applicable texts, codes and decisions on Leginova |
| analyze_consolidated_text | Summary, structure, amendment history and implementing texts of one consolidated text |
| code_article_check | Verifies that an article reference exists in a New Caledonian code and returns its current text |
| jonc_watch | Summarizes what was published in the JONC over a period, optionally on a topic |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| guide | Workflow, citation rules, article-number prefixes (L./Lp.) and sources of New Caledonian law |
| codes | The 31 codes with their slugs |
TDQS
Scored across 14 tools
The tools target distinct resources and workflows, but there is some overlap between leginova_search, leginova_advanced_search, and leginova_suggest, and between the code retrieval tools. Descriptions clarify intended use, so misselection is possible but manageable.
Nearly all tools use a consistent leginova_ prefix with snake_case naming. Minor deviations include mixed retrieval verbs (get vs read) and the adjective-first leginova_advanced_search, but the pattern remains readable and predictable.
With 14 tools, the server is well-scoped for legal research across codes, texts, JONC, jurisprudence, and debates. Each tool appears to cover a distinct retrieval or navigation need.
The surface covers search, advanced search, autocomplete, code browsing, article and section reading, consolidated texts, jurisprudence, JONC issues and items, debates, chronological browsing, and catalogue identifiers. This provides complete lifecycle coverage for the legal research domain without obvious dead ends.