Law7 MCP - Up-to-date Legal Documents For AI Assistants
Law7 MCP Server and Core Engine -- Open up-to-date legal database for AI assistants
星數
18
工具
—
可用率
—
Current state and vocabulary. What this repository actually contains today, measured against the live database, is in docs/SCOPE.md; the words the project uses in a specific sense are in docs/GLOSSARY.md. Numbers elsewhere in this README are updated by re-measuring, and SCOPE.md wins if they disagree.
Without Law7
AI assistants rely on outdated training data for laws:
LLMs use training data from years ago
Hallucinated legal articles that don't exist
Generic answers without specific legal citations
Unable to track legal changes or amendments
With Law7
Law7 MCP pulls up-to-date, version-specific legal documents directly from official government sources and places them into your AI conversation.
Ask questions like:
What are the notice periods for terminating an employment contract in Russia?
What changes were made to the Russian Labor Code in 2025?
Law7 fetches current legal documents right into your AI's context. No tab-switching, no hallucinated articles, no outdated legal information.
Legal Disclaimer
IMPORTANT: This project provides text information from open sources only. See DISCLAIMER.md for full details.
NOT for official use in court or government bodies
NO guarantee of accuracy, completeness, or timeliness
Always consult qualified lawyers for legal matters
AGPL-3.0 licensed - modifications must be shared
Installation
Claude Desktop
# Build the server
npm run build
# Add to Claude Desktop
claude mcp add law7 --node \path\to\folder\law7\dist\index.js
Step 1: Build and Test the Server
npm run build
npm start
Step 2: Add to Claude Desktop
Option A - Via config file (C:\Users\<user>\AppData\Roaming\Claude\claude_desktop_config.json):
Country adapter pattern for adding new jurisdictions
Delta updates and change tracking
Quick Start (Development)
Note: Default ports are PostgreSQL 5433, Qdrant 6333 (to avoid conflicts with other projects).
Redis was removed 2026-09-14; add back when a cache is actually implemented.
Option A: Restore from Backup (Recommended - ~5 minutes)
Skip the data sync and use the pre-built database:
# 1. Download backup (218 MB)
# https://drive.google.com/file/d/1DPLpFpuwUZbLZEGo2TxnCAcLRdb2V1aD/view?usp=sharing
# 2. Start Docker services
cd docker
docker-compose up -d
# 3. Restore backup (place .tar.gz in docker/backups/ directory)
./restore.sh law7_backup_20260211_014519
# 4. Start MCP server
npm install && npm run build && npm start
Option B: Fresh Installation (from official sources)
1. Start Docker Services
cd docker
docker-compose up -d
2. Run Initial Data Sync (Python)
# Using uv
uv run python scripts/sync/initial_sync.py
AGPL-3.0 with an additional permission under section 7 - see LICENSE for the full license text and LICENSE-EXCEPTION.md for the additional permission (linking exception).
This means:
Source code is freely available
Any modifications must be shared under the same license
If you run a modified version on a server and provide services to users, you must make the source code available to those users
L
Law7
mikhashev·18 顆星·
Law7 MCP Server and Core Engine -- Open up-to-date legal database for AI assistants