MCP · AI assistants

Connect LexGit to Claude, Cursor or VS Code.

The corpus exposes a read-only MCP server. Your assistant can open an article, find the version applicable on a date, compare two states, follow links between texts and leave with a citation that points to the official publication.

Endpoint https://app.lexgit.fr/mcp
Streamable HTTP Read-only No account
Tools

What the assistant can ask for 16

ToolUse
lg_list_documentsList texts: jurisdiction, type, volumes, official link and LexGit URL.
lg_document_infoText metadata: dates, status, source, licence, official identifier.
lg_document_treeText tree (sections and articles) up to a given depth.
lg_articleExact article text, latest or explicit version, with dates and provenance.
lg_article_at_dateVersion applicable on a given date (YYYY-MM-DD).
lg_versionsAll versions of an article with dates, status and link.
lg_diffExact diff between two versions, ranges in code points.
lg_searchFull-text search across the corpus or one text, with dates and status.
lg_search_nodesSearch by article number or heading within a text.
lg_citeReady-to-copy citation: reference, official source and permanent link.
lg_relationsSource-declared and automatically detected links, with origin and status.
lg_annotationsV2 AST annotations of a version: cues, subjects, actions, time markers — candidates.
lg_rule_candidatesV2 rule candidates and their review status.
lg_graph_edgesV2 graph edges from an entity, with origin and resolution.
lg_sourcesCorpus sources: publisher, licence, URI, number of texts.
lg_releasesRetrieval history: source, date, volumes, errors.
Setup

Setup, in one minute

Claude Code

One command:

claude mcp add --transport http lexgit https://app.lexgit.fr/mcp
Claude Desktop

Claude Desktop: Settings → Connectors → Add custom connector, then paste the server URL. Or add the JSON block below.

{
  "mcpServers": {
    "lexgit": {
      "type": "http",
      "url": "https://app.lexgit.fr/mcp"
    }
  }
}
Cursor

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "lexgit": { "url": "https://app.lexgit.fr/mcp" }
  }
}
VS Code

In .vscode/mcp.json:

{
  "servers": {
    "lexgit": {
      "type": "http",
      "url": "https://app.lexgit.fr/mcp"
    }
  }
}

The server also runs over stdio for local use: python -m app.mcp_server

In practice

Example requests

  • Which version of article 1103 of the French Civil Code applied on 1 January 2015?
  • Compare article 1103 between 1804 and today and show the words added.
  • Find the GDPR articles about consent and give me the official links.
  • Give me a ready-to-paste citation for article 1 of the GDPR.
Limits

What the server does not do

  • No writes: the server never changes texts or versions.
  • No legal conclusion: V2 outputs are candidates, never verdicts.
  • No account required: the endpoint is public and rate-limited per IP.
  • The official publication remains authoritative; every response says so.

Rate and data

60 requests per minute per anonymous IP. No prompt content is stored; only standard HTTP logs are kept.

Data remains under its sources’ licences: Licence Ouverte 2.0 (DILA), CC BY 4.0 and the SCL licence (Legilux), CC BY 4.0 (EUR-Lex).

See licences →