@ansvar/russian-law-mcp
v0.1.0
Published
Production-grade Russian legal research MCP server with comprehensive federal legislation coverage and EU/international law cross-references
Maintainers
Readme
Russian Law MCP Server
Russian federal legislation, AI-readable.
Query 12,393 Russian federal laws -- from the Civil Code and Criminal Code to the Personal Data Law and Communications Law -- directly from Claude, Cursor, or any MCP-compatible client. 79,178 provisions, full-text searchable.
If you're building legal tech, compliance tools, or doing Russian legal research, this is your verified reference database.
Built by Ansvar Systems -- Stockholm, Sweden
Why This Exists
Russian legal research requires navigating pravo.gov.ru, ConsultantPlus, and multiple government portals. Whether you're:
- A lawyer validating citations in a contract or brief
- A compliance officer checking if a federal law is still in force
- A legal tech developer building tools on Russian law
- A researcher analyzing Russian regulatory frameworks
...you shouldn't need to manually navigate government portals and PDF documents. Ask Claude. Get the exact provision. With context.
This MCP server makes Russian federal law searchable, cross-referenceable, and AI-readable.
Quick Start
Use Remotely (No Install Needed)
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://russian-law-mcp.fly.dev/mcp
| Client | How to Connect |
|--------|---------------|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add russian-law --transport http https://russian-law-mcp.fly.dev/mcp |
| Claude Desktop | Add to config (see below) |
| GitHub Copilot | Add to VS Code settings (see below) |
Claude Desktop -- add to claude_desktop_config.json:
{
"mcpServers": {
"russian-law": {
"type": "url",
"url": "https://russian-law-mcp.fly.dev/mcp"
}
}
}GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"russian-law": {
"type": "http",
"url": "https://russian-law-mcp.fly.dev/mcp"
}
}
}Use Locally (npm)
npx @ansvar/russian-law-mcpClaude Desktop -- add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"russian-law": {
"command": "npx",
"args": ["-y", "@ansvar/russian-law-mcp"]
}
}
}Cursor / VS Code:
{
"mcp.servers": {
"russian-law": {
"command": "npx",
"args": ["-y", "@ansvar/russian-law-mcp"]
}
}
}Example Queries
Once connected, just ask naturally:
- "What does Federal Law 152-FZ say about personal data processing consent?"
- "Is Article 1259 of the Civil Code still in force?"
- "Find provisions about kriticheskaya informatsionnaya infrastruktura in Russian law"
- "What are the penalties for data breaches under KoAP RF?"
- "Search for provisions about electronic signatures in Russian legislation"
- "Validate the citation: Federalnyy zakon ot 27.07.2006 No. 152-FZ"
What's Included
| Category | Count | Details | |----------|-------|---------| | Federal Laws | 12,132 | All federal laws from 1991-2023 | | Federal Constitutional Laws | 193 | All FKZ documents | | Codes | 43 | Civil, Criminal, Labor, Tax, Administrative, etc. | | Constitution | 1 | Full text (142 articles) | | Total Provisions | 79,178 | Article-level, full-text searchable (FTS5) | | Database Size | ~530 MB | SQLite + FTS5, Cyrillic optimized |
100% coverage of ingestable Russian federal legislation. Every provision is sourced from pravo.gov.ru via the RusLawOD academic dataset. Zero LLM-generated content.
Available Tools (13)
Core Legal Research Tools (6)
| Tool | Description |
|------|-------------|
| search_legislation | FTS5 search on 79,178 provisions with BM25 ranking |
| get_provision | Retrieve specific provision by document ID + article/section |
| validate_citation | Validate citation against database (zero-hallucination check) |
| build_legal_stance | Aggregate citations from statutes for a legal question |
| format_citation | Format citations per Russian conventions (full/short/pinpoint) |
| check_currency | Check if statute is in force, amended, or repealed |
EU/International Law Integration Tools (5)
| Tool | Description |
|------|-------------|
| get_eu_basis | Get EU/international legal basis for Russian statute |
| get_russian_implementations | Find Russian laws implementing EU instrument |
| search_eu_implementations | Search EU documents with Russian implementation info |
| get_provision_eu_basis | Get EU law references for specific provision |
| validate_eu_compliance | Check implementation status |
Metadata Tools (2)
| Tool | Description |
|------|-------------|
| list_sources | Data provenance metadata and coverage information |
| about | Server metadata, dataset statistics, and freshness |
Data Sources & Freshness
All content is sourced from authoritative Russian legal databases:
- pravo.gov.ru -- Official Internet Portal for Legal Information (Administration of the President of the Russian Federation)
- RusLawOD -- Academic open dataset of 304,382 Russian legal documents
Copyright Status
Per Article 1259, Paragraph 6 of the Civil Code of the Russian Federation, federal laws, codes, presidential decrees, and other official documents are not copyrightable. All legislative text in this database is in the public domain.
Security
This project uses multiple layers of automated security scanning:
| Scanner | What It Does | Schedule | |---------|-------------|----------| | CodeQL | Static analysis for security vulnerabilities | Weekly + PRs | | Semgrep | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push | | Gitleaks | Secret detection across git history | Every push | | Trivy | CVE scanning on filesystem and npm dependencies | Daily | | Docker Security | Container image scanning + SBOM generation | Weekly | | Socket.dev | Supply chain attack detection | PRs | | OSSF Scorecard | OpenSSF best practices scoring | Weekly |
See SECURITY.md for the full policy and vulnerability reporting.
Open Law
This server is part of Ansvar Open Law -- free, structured access to legislation from 70+ jurisdictions worldwide via the Model Context Protocol.
Browse all jurisdictions -> ansvar.eu/open-law
Ansvar MCP Network
Ansvar Open Law is part of the broader Ansvar MCP Network -- 95+ servers covering global legislation, EU/US compliance frameworks, and cybersecurity standards.
| Category | Coverage | |----------|----------| | Legislation | 70+ jurisdictions worldwide | | EU Compliance | 49 regulations, 2,693 articles | | US Compliance | 15 federal & state regulations | | Security Frameworks | 261 frameworks, 1,451 controls |
Explore the full network -> ansvar.ai/mcp
Important Disclaimers
Legal Advice
THIS TOOL IS NOT LEGAL ADVICE
Statute text is sourced from official pravo.gov.ru publications. However:
- This is a research tool, not a substitute for professional legal counsel
- Verify critical citations against primary sources
- Regional legislation and court practice are not included
- For professional use, cross-check with ConsultantPlus or Garant
Before using professionally, read: DISCLAIMER.md | PRIVACY.md
Client Confidentiality
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See PRIVACY.md for attorney-client privilege (advokatskaya tayna) guidance.
Documentation
- Coverage -- Full list of 12,393 ingested laws
- Coverage Limitations -- What's missing and workarounds
- Data Sources -- Source provenance and authority levels
- Security Policy -- Vulnerability reporting and scanning details
- Disclaimer -- Legal disclaimers and professional use notices
- Privacy -- Client confidentiality and data handling
- EU AI Act Compliance -- AI Act classification and compliance
Development
Setup
git clone https://github.com/Ansvar-Systems/Russian-Law-MCP
cd Russian-Law-MCP
npm install
npm run build
npm testBranch Strategy
feature-branch -> PR to dev -> verify on dev -> PR to main -> deployNever push directly to main. All changes go through dev first.
Running Locally
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP InspectorRebuilding the Database
python3 scripts/ingest-ruslawod.py # Ingest from RusLawOD dataset
npm run build:db # Build SQLite from seed files
npm test # Verify everything worksContributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority areas:
- Historical statute versions (amendment tracking)
- Regional legislation integration
- Court practice integration
- Expanding EU cross-references
Citation
If you use this MCP server in academic research:
@software{russian_law_mcp_2026,
author = {Ansvar Systems AB},
title = {Russian Law MCP Server: Federal Legislation Research Tool},
year = {2026},
url = {https://github.com/Ansvar-Systems/Russian-Law-MCP},
note = {12,393 Russian federal laws with 79,178 provisions and full-text search}
}License
Apache License 2.0. See LICENSE for details.
Data Licenses
- Federal Legislation: Not copyrightable per Article 1259 Civil Code (public domain)
- RusLawOD Dataset: CC BY-NC 4.0 (compilation; law texts themselves are public domain)
About Ansvar Systems
We build AI-accelerated compliance and legal research tools. This MCP server makes Russian federal legislation searchable and AI-readable -- because navigating pravo.gov.ru shouldn't require hours of manual effort.
ansvar.eu -- Stockholm, Sweden
