Skip to main content
Glama
droit-francais-mcp

droit-francais-mcp

by jbesan
README.md
# Droit Français & Européen MCP (`droit-francais-mcp`)

Fork enrichi de [jmtanguy/DroitFrancaisMCP](https://github.com/jmtanguy/DroitFrancaisMCP) (licence MIT) permettant à un assistant IA compatible MCP (**Claude Desktop**, **Antigravity**, **GPT Work**) d'interroger en direct et **100 % en local via `uvx`** :

* **Légifrance** (API officielle PISTE) : codes consolidés, lois, décrets, JORF, conventions collectives (KALI).
* **Judilibre** (API officielle PISTE) : jurisprudence de la Cour de cassation, cours d'appel, tribunaux judiciaires et CPH.
* **EUR-Lex** (API publique UE CELLAR / SPARQL, **sans clé ni inscription**) : règlements, directives, décisions, arrêts CJUE et consultation d'articles précis par identifiant CELEX.

---

## Prérequis (unique)

Installer **`uv`** (aucun Node.js ni installation manuelle de Python requise) :

* **Windows (PowerShell, sans droits admin)** :
  ```powershell
  irm https://astral.sh/uv/install.ps1 | iex
  ```
* **macOS / Linux** :
  ```bash
  curl -LsSf https://astral.sh/uv/install.sh | sh
  ```

---

## Outils MCP exposés

| Outil | Source | Clé requise |
| :--- | :--- | :--- |
| `rechercher_legifrance` / `consulter_legifrance` | Légifrance (PISTE Production) | `PISTE_CLIENT_ID` + `PISTE_CLIENT_SECRET` |
| `obtenir_taxonomie_judilibre` / `rechercher_jurisprudence_judilibre` / `consulter_decision_judilibre` | Judilibre (PISTE Production) | `PISTE_CLIENT_ID` + `PISTE_CLIENT_SECRET` |
| `rechercher_eurlex` / `consulter_eurlex` | EUR-Lex (CELLAR / SPARQL UE) | **Aucune** |

---

## Configuration rapide (remplacer `jbesan` par votre identifiant GitHub)

### Claude Desktop (`claude_desktop_config.json`) et Antigravity (`mcp_config.json`)

```json
{
  "mcpServers": {
    "droit-francais": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/jbesan/droit-francais-eurlex-mcp",
        "droit-francais-mcp"
      ],
      "env": {
        "PISTE_CLIENT_ID": "<votre_client_id_piste>",
        "PISTE_CLIENT_SECRET": "<votre_client_secret_piste>"
      }
    }
  }
}
```

### GPT Work / Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.droit_francais]
command = "uvx"
args = [
  "--from",
  "git+https://github.com/jbesan/droit-francais-eurlex-mcp",
  "droit-francais-mcp"
]

[mcp_servers.droit_francais.env]
PISTE_CLIENT_ID = "<votre_client_id_piste>"
PISTE_CLIENT_SECRET = "<votre_client_secret_piste>"
```

---

## Mise à jour

Pour forcer la récupération d'une nouvelle version publiée sur GitHub :

```bash
uvx --refresh --from git+https://github.com/jbesan/droit-francais-eurlex-mcp droit-francais-mcp --help
```

## Licence & Crédits

* Licence **MIT** — voir [LICENSE](LICENSE).
* Basé sur le travail original de **Jean-Michel Tanguy** (`jmtanguy/DroitFrancaisMCP`).
* Ne jamais committer de fichier `.env` ou d'identifiants `PISTE_CLIENT_ID` / `PISTE_CLIENT_SECRET` dans ce dépôt.