🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ansvar/russian-law-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ansvar/russian-law-mcp

Production-grade Russian legal research MCP server with comprehensive federal legislation coverage and EU/international law cross-references

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
99
-10%
Maintainers
1
Weekly downloads
 
Created
Source

Russian Law MCP Server

Russian federal legislation, AI-readable.

npm version MCP Registry License GitHub stars CI Daily Data Check

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

ClientHow to Connect
Claude.aiSettings > Connectors > Add Integration > paste URL
Claude Codeclaude mcp add russian-law --transport http https://russian-law-mcp.fly.dev/mcp
Claude DesktopAdd to config (see below)
GitHub CopilotAdd 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-mcp

Claude 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

CategoryCountDetails
Federal Laws12,132All federal laws from 1991-2023
Federal Constitutional Laws193All FKZ documents
Codes43Civil, Criminal, Labor, Tax, Administrative, etc.
Constitution1Full text (142 articles)
Total Provisions79,178Article-level, full-text searchable (FTS5)
Database Size~530 MBSQLite + 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)

ToolDescription
search_legislationFTS5 search on 79,178 provisions with BM25 ranking
get_provisionRetrieve specific provision by document ID + article/section
validate_citationValidate citation against database (zero-hallucination check)
build_legal_stanceAggregate citations from statutes for a legal question
format_citationFormat citations per Russian conventions (full/short/pinpoint)
check_currencyCheck if statute is in force, amended, or repealed

EU/International Law Integration Tools (5)

ToolDescription
get_eu_basisGet EU/international legal basis for Russian statute
get_russian_implementationsFind Russian laws implementing EU instrument
search_eu_implementationsSearch EU documents with Russian implementation info
get_provision_eu_basisGet EU law references for specific provision
validate_eu_complianceCheck implementation status

Metadata Tools (2)

ToolDescription
list_sourcesData provenance metadata and coverage information
aboutServer 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

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:

ScannerWhat It DoesSchedule
CodeQLStatic analysis for security vulnerabilitiesWeekly + PRs
SemgrepSAST scanning (OWASP top 10, secrets, TypeScript)Every push
GitleaksSecret detection across git historyEvery push
TrivyCVE scanning on filesystem and npm dependenciesDaily
Docker SecurityContainer image scanning + SBOM generationWeekly
Socket.devSupply chain attack detectionPRs
OSSF ScorecardOpenSSF best practices scoringWeekly

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.

CategoryCoverage
Legislation70+ jurisdictions worldwide
EU Compliance49 regulations, 2,693 articles
US Compliance15 federal & state regulations
Security Frameworks261 frameworks, 1,451 controls

Explore the full network -> ansvar.ai/mcp

Important Disclaimers

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

Development

Setup

git clone https://github.com/Ansvar-Systems/Russian-Law-MCP
cd Russian-Law-MCP
npm install
npm run build
npm test

Branch Strategy

feature-branch -> PR to dev -> verify on dev -> PR to main -> deploy

Never 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 Inspector

Rebuilding the Database

python3 scripts/ingest-ruslawod.py   # Ingest from RusLawOD dataset
npm run build:db                     # Build SQLite from seed files
npm test                             # Verify everything works

Contributing

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

Built with care in Stockholm, Sweden

Keywords

law

FAQs

Package last updated on 27 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts