MCP Hub
Back to servers

vietnamese-law-mcp

Vietnamese legislation via MCP — full-text search across statutes and provisions

Registry
Updated
Feb 22, 2026

Quick Install

npx -y @ansvar/vietnamese-law-mcp

Vietnamese Law MCP

npm License CI MCP Registry OpenSSF Scorecard

A Model Context Protocol (MCP) server providing comprehensive access to Vietnamese legislation, including the Cybersecurity Law 2018, Personal Data Protection Decree 2023, Law on Information Technology 2006, Enterprise Law 2020, Law on E-Transactions 2023, and Law on Protection of Consumer Rights 2023 with full-text search.

Deployment Tier

SMALL -- Single tier, bundled SQLite database shipped with the npm package.

Estimated database size: ~60-130 MB (full corpus of Vietnamese national legislation with selected English translations)

Key Legislation Covered

LawNumberYearSignificance
Cybersecurity LawNo. 24/2018/QH142018Data localization requirements, cybersecurity framework, content regulation
Personal Data Protection DecreeDecree 13/2023/ND-CP2023Vietnam's primary PDP regulation (decree, not standalone law); GDPR-influenced
Law on Information TechnologyNo. 67/2006/QH112006IT activities, electronic government, digital development
Enterprise LawNo. 59/2020/QH142020Establishment, organization, and operation of enterprises
Law on E-TransactionsNo. 20/2023/QH152023Electronic transactions, digital signatures, trust services (replaces 2005 version)
Law on Protection of Consumer Rights20232023Consumer protection in e-commerce, unfair practices (replaces 2010 version)
2013 Constitution-2013Supreme law; Article 21 recognizes right to privacy

Regulatory Context

  • Cybersecurity Authority: Ministry of Public Security (MPS) -- primary authority for cybersecurity enforcement
  • IT/Telecoms Regulator: Ministry of Information and Communications (MIC)
  • Vietnam does NOT have a standalone comprehensive data protection law; Decree 13/2023/ND-CP is the primary personal data protection regulation issued as a government decree
  • The Cybersecurity Law 2018 includes data localization requirements for domestic and foreign service providers operating in Vietnam
  • Cross-border data transfer restrictions under the Cybersecurity Law and Decree 13/2023 require impact assessments and government registration
  • Vietnamese (tieng Viet) is the legally binding language; English translations are unofficial
  • Vietnam uses a civil law system based on socialist legal traditions with French and Soviet influences
  • Vietnam is an ASEAN member and participates in ASEAN digital governance frameworks
  • Vietnamese legislation numbering includes type, number, year, and issuing body (e.g., 24/2018/QH14)

Data Sources

SourceAuthorityMethodUpdate FrequencyLicenseCoverage
Thu Vien Phap Luat (thuvienphapluat.vn)LawNetHTML ScrapeWeeklyOpen AccessLaws, Decrees, Circulars, English translations
Official Gazette (vanban.chinhphu.vn)Government of VietnamHTML ScrapeWeeklyGovernment Open DataOfficial text of Laws, Decrees, Decisions, Circulars

Full provenance metadata: sources.yml

Installation

npm install -g @ansvar/vietnamese-law-mcp

Usage

As stdio MCP server

vietnamese-law-mcp

In Claude Desktop / MCP client configuration

{
  "mcpServers": {
    "vietnamese-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/vietnamese-law-mcp"]
    }
  }
}

Available Tools

ToolDescription
get_provisionRetrieve a specific article (dieu) from a Vietnamese law or decree
search_legislationFull-text search across all Vietnamese legislation in Vietnamese and English
get_provision_eu_basisCross-reference lookup for international framework relationships (GDPR, ASEAN, etc.)

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run contract tests
npm run test:contract

# Run all validation
npm run validate

# Build database from sources
npm run build:db

# Start server
npm start

Contract Tests

This MCP includes 12 golden contract tests covering:

  • 4 article retrieval tests (Cybersecurity Law Art 2, Decree 13/2023 Art 2, Enterprise Law Art 1, E-Transactions Law Art 1)
  • 3 search tests (du lieu ca nhan, an ninh mang, giao dich dien tu)
  • 2 citation roundtrip tests (official thuvienphapluat.vn/vanban.chinhphu.vn URL patterns)
  • 1 cross-reference test (Decree 13/2023 to GDPR)
  • 2 negative tests (non-existent law, malformed article)

Run with: npm run test:contract

Vietnamese Legislation Numbering

Vietnam uses a specific numbering format that includes the document type, number, year, and issuing body:

FormatExampleMeaning
Law (Luat)No. 24/2018/QH14Law No. 24, Year 2018, 14th National Assembly
Decree (Nghi dinh)13/2023/ND-CPDecree No. 13, Year 2023, Government (Chinh Phu)
Circular (Thong tu)XX/YYYY/TT-BCACircular from Ministry of Public Security
Decision (Quyet dinh)XX/YYYY/QD-TTgDecision of the Prime Minister

Security

See SECURITY.md for vulnerability disclosure policy.

Report data errors: Open an issue

License

Apache-2.0 -- see LICENSE


Built by Ansvar Systems -- Cybersecurity compliance through AI-powered analysis.

Reviews

No reviews yet

Sign in to write a review