home / mcp / french law mcp server

French Law MCP Server

Provides access to seeded French legal provisions with citation validation/formatting and EU cross-reference tools.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-french-law-mcp": {
      "url": "https://<your-vercel-domain>/mcp"
    }
  }
}

You can use the French Law MCP Server to query French legal provisions, validate and format citations, cross-reference EU regulations, and run contract tests with drift checks. It combines seeded Legifrance data, citation tools, and EU references to enable fast, reliable access for legal research and development workloads.

How to use

Connect your MCP client to the deployed or local server to perform searches, fetch provisions, and validate citations. Use the HTTP endpoint for remote deployments, or run a local stdio version for development and testing. You will access tools for searching legislation, retrieving provisions, validating and formatting citations, and checking currency and EU references.

How to install

Prerequisites: Node.js and npm installed on your system. You will also need a readable internet connection to fetch dependencies and seed data.

# Local development setup
npm install
npm run build
npm run dev

Additional sections

Deployment and runtime information: you can run the MCP locally during development or deploy to a hosting environment that serves the MCP via HTTP. For remote access, you can connect clients to a Vercel-hosted endpoint at the standard path /mcp. Health and version endpoints are available at /health and /version.

Data sources and seeds: the primary legal data comes from Legifrance open data (DILA) with EU references linked to EUR-Lex metadata. Seed files live under data/seed and the built database is data/database.db.

Development and testing commands cover a comprehensive workflow, including building the SQLite database from seeds, running unit and contract tests, and performing drift detection against upstream data.

Vercel deployment uses a Streamable MCP HTTP transport with api/mcp.ts handling requests and api/health.ts providing health and version endpoints. Runtime configuration is defined in vercel.json.

Operational notes: this tool is for legal research and should not be used as legal advice. Always verify critical citations against official publications.

Tools and endpoints overview

  • search_legislation
  • get_provision
  • validate_citation
  • format_citation
  • build_legal_stance
  • check_currency
  • get_eu_basis
  • get_french_implementations
  • search_eu_implementations
  • get_provision_eu_basis
  • validate_eu_compliance
  • about (enabled in stdio runtime with context)

Security and licensing

Only use the MCP endpoints and tools as intended for research and development. Do not rely on the MCP for legal advice. Ensure access and usage comply with your organization’s security practices and any applicable data-use restrictions.

Available tools

search_legislation

Query the seed Legifrance-based data to locate relevant laws, regulations, and provisions by keywords, dates, or article numbers.

get_provision

Retrieve the full text or metadata for a specific legal provision, including article references and cross-links.

validate_citation

Check the syntax and formatting of French legal citations to ensure they follow standard conventions.

format_citation

Produce a properly formatted citation string for a given article or provision.

build_legal_stance

Construct a structured stance or interpretation for a given legal provision, useful for analysis and comparison.

check_currency

Verify that cited provisions reflect current law by checking for updates or amendments.

get_eu_basis

Fetch EU directive or regulation basis related to a French provision for cross-referencing.

get_french_implementations

Retrieve information about French implementations of EU rules or directives.

search_eu_implementations

Query EU implementations and mappings to support cross-border comparisons.

get_provision_eu_basis

Obtain the EU basis for a specific French provision, linking national and EU texts.

validate_eu_compliance

Assess whether a French provision or its application complies with EU requirements.

about

Provide contextual information about the MCP server when running in certain runtimes.