Vietnamese legislation via MCP — full-text search across statutes and provisions
Vietnamese legislation via MCP — full-text search across statutes and provisions
Valid MCP server (2 strong, 2 medium validity signals). 2 known CVEs in dependencies (1 critical, 1 high severity) Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (149/150 approved).
4 files analyzed · 3 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"eu-ansvar-vietnamese-law-mcp": {
"args": [
"-y",
"@ansvar/vietnamese-law-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
The Cổng thông tin pháp luật (thuvienphapluat.vn) alternative for the AI age.
Query 93 Vietnamese statutes -- from the Luật An ninh mạng (Cybersecurity Law) and Nghị định về bảo vệ dữ liệu cá nhân to Bộ luật Hình sự, Bộ luật Dân sự, Luật Giao dịch điện tử, and more -- directly from Claude, Cursor, or any MCP-compatible client.
If you're building legal tech, compliance tools, or doing Vietnamese legal research, this is your verified reference database.
Built by Ansvar Systems -- Stockholm, Sweden
Vietnamese legal research means navigating thuvienphapluat.vn and luatvietnam.vn, parsing Bộ luật, Luật, Nghị định, Thông tư, and Quyết định across multiple ministries, and manually tracking amendments from the National Assembly and Government. Whether you're:
...you shouldn't need dozens of browser tabs and manual cross-referencing. Ask Claude. Get the exact provision. With context.
This MCP server makes Vietnamese law searchable, cross-referenceable, and AI-readable.
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://mcp.ansvar.eu/law-vn/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add vietnamese-law --transport http https://mcp.ansvar.eu/law-vn/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": {
"vietnamese-law": {
"type": "url",
"url": "https://mcp.ansvar.eu/law-vn/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"vietnamese-law": {
"type": "http",
"url": "https://mcp.ansvar.eu/law-vn/mcp"
}
}
}
npx @ansvar/vietnamese-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": {
"vietnamese-law": {
"command": "npx",
"args": ["-y", "@ansvar/vietnamese-law-mcp"]
}
}
}
Cursor / VS Code:
{
"mcp.servers": {
"vietnamese-law": {
"command": "npx",
"args": ["-y", "@ansvar/vietnamese-law-mcp"]
}
}
}
Once connected, just ask naturally -- in Vietnamese or English:
| Category | Count | Details |
|---|---|---|
| Statutes | 93 statutes | Curated Vietnamese legislation (key compliance laws) |
| Provisions | 3,226 sections | Full-text searchable with FTS5 |
| Database Size | ~14 MB | Optimized SQLite, portable |
| Daily Updates | Automated | Freshness checks against thuvienphapluat.vn |
| Law | Coverage |
|---|---|
| Hiến pháp 2013 | Constitution |
| Bộ luật Hình sự 2015 (sửa đổi 2017) | Criminal Code |
| Bộ luật Dân sự 2015 | Civil Code |
| Luật An ninh mạng 2018 | Cybersecurity Law |
| Nghị định 13/2023/NĐ-CP | Personal Data Protection Decree |
| Luật Giao dịch điện tử 2023 | E-Transactions Law |
| Luật Doanh nghiệp 2020 | Enterprise Law |
| Luật Bảo vệ quyền lợi người tiêu dùng 2023 | Consumer Rights Law |
Verified data only -- every citation is validated against official sources (thuvienphapluat.vn). Zero LLM-generated content.
Verbatim Source Text (No LLM Processing):
Smart Context Management:
Technical Architecture:
thuvienphapluat.vn → Parse → SQLite → FTS5 snippet() → MCP response
↑ ↑
Provision parser Verbatim database query
| Traditional Approach | This MCP Server |
|---|---|
| Search thuvienphapluat by tên văn bản | Search by plain Vietnamese: "bảo vệ dữ liệu cá nhân" |
| Navigate multi-điều statutes manually | Get the exact provision with context |
| Manual cross-referencing between luật and nghị định | build_legal_stance aggregates across sources |
| "Luật này còn hiệu lực không?" → manual check | check_currency tool → answer in seconds |
| No API, no integration | MCP protocol → AI-native |
Traditional: Search thuvienphapluat → Download PDF → Ctrl+F → Cross-reference with nghị định → Repeat
This MCP: "Điều nào trong Nghị định 13/2023 quy định về đồng ý của chủ thể dữ liệu?" → Done.
| Tool | Description |
|---|---|
search_legislation | FTS5 search on 3,226 provisions with BM25 ranking |
get_provision | Retrieve specific provision by luật/nghị định identifier + điều/khoản |
validate_citation | Validate citation against database (zero-hallucination check) |
build_legal_stance | Aggregate citations from statutes and regulations |
format_citation | Format citations per Vietnamese conventions (full/short/pinpoint) |
check_currency | Check if statute is in force, amended, or repealed |
list_sources | List all available statutes with metadata and data provenance |
about | Server info, capabilities, dataset statistics, and coverage summary |
| Tool | Description |
|---|---|
get_eu_basis | Get international frameworks that a Vietnamese statute aligns with |
get_vietnamese_implementations | Find Vietnamese laws aligning with international frameworks |
search_eu_implementations | Search international documents with Vietnamese alignment counts |
get_provision_eu_basis | Get international law references for a specific provision |
validate_eu_compliance | Check alignment status of Vietnamese statutes against international standards |
Vietnam is not an EU member state, but Vietnamese law increasingly references and aligns with international frameworks, particularly in data protection, cybersecurity, and e-commerce.
Vietnam is a member of ASEAN and participates in regional legal harmonisation:
| ASEAN Framework | Vietnamese Alignment |
|---|---|
| ASEAN Digital Masterplan 2025 | Luật An ninh mạng 2018, Nghị định 13/2023 |
| ASEAN Cross-Border Data Flows | Under development |
| ASEAN Framework on Personal Data Protection | Nghị định 13/2023 |
| WTO Agreement | Vietnamese Implementation |
|---|---|
| TRIPS | Luật Sở hữu trí tuệ (amended 2022) |
| GATS (e-commerce) | Luật Giao dịch điện tử 2023 |
| TBT Agreement | Various technical standards legislation |
Vietnam has no EU adequacy decision. However, the international bridge tools allow you to explore comparative alignment:
Note: These tools identify comparative alignment, not legal equivalence. Vietnamese law operates under a civil law system with distinct legislative hierarchy (Luật > Nghị định > Thông tư > Quyết định).
All content is sourced from authoritative Vietnamese legal databases:
| Field | Value |
|---|---|
| Authority | Văn phòng Chính phủ / Quốc hội |
| Retrieval method | HTML parse from thuvienphapluat.vn |
| Language | Vietnamese |
| Coverage | 93 core statutes (curated compliance-focused set) |
| Last ingested | 2026-02-25 |
A daily GitHub Actions workflow monitors all data sources:
| Source | Check | Method |
|---|---|---|
| Statute amendments | Source date comparison | All 93 statutes checked |
| New statutes | thuvienphapluat.vn recent publications | Diffed against database |
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 |
| Socket.dev | Supply chain attack detection | PRs |
| Dependabot | Automated dependency updates | Weekly |
See SECURITY.md for the full policy and vulnerability reporting.
THIS TOOL IS NOT LEGAL ADVICE
Statute text is sourced from thuvienphapluat.vn. However:
- This is a research tool, not a substitute for professional legal counsel
- Coverage is limited to 93 curated statutes -- not all Vietnamese legislation is included
- Court case coverage is not included -- do not rely on this for case law research
- Verify critical citations against primary sources for filings
- Ministerial guidance (Thông tư) is only partially covered -- check relevant ministry websites for complete guidance
- Amendment tracking -- Vietnamese law is frequently amended; always verify the current version
Before using professionally, read: DISCLAIMER.md | PRIVACY.md
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See PRIVACY.md for Liên đoàn Luật sư Việt Nam compliance guidance.
git clone https://github.com/Ansvar-Systems/vietnamese-law-mcp
cd vietnamese-law-mcp
npm install
npm run build
npm test
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
npm run ingest # Ingest statutes from thuvienphapluat.vn
npm run build:db # Rebuild SQLite database
npm run drift:detect # Run drift detection
npm run check-updates # Check for amendments and new statutes
npm run census # Generate coverage census report
This server is part of Ansvar's Compliance Suite -- MCP servers that work together for end-to-end compliance coverage:
Query 49 EU regulations directly from Claude -- GDPR, AI Act, DORA, NIS2, MiFID II, eIDAS, and more. Full regulatory text with article-level search. npx @ansvar/eu-regulations-mcp
Query 93 Vietnamese statutes directly from Claude -- An ninh mạng, BLDS, BLHS, Giao dịch điện tử, and more. npx @ansvar/vietnamese-law-mcp
Query US federal compliance laws -- HIPAA, CCPA, SOX, GLBA, FERPA, and more. npx @ansvar/us-law-mcp
Query 261 security frameworks -- ISO 27001, NIST CSF, SOC 2, CIS Controls, SCF, and more. npx @ansvar/security-controls-mcp
70+ national law MCPs covering Austria, Belgium, Brazil, Canada, China, Denmark, France, Germany, Indonesia, Japan, South Korea, Malaysia, Netherlands, Norway, Philippines, Singapore, Sweden, Thailand, UK, and more.
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority areas:
If you use this MCP server in academic research:
@software{vietnamese_law_mcp_2026,
author = {Ansvar Systems AB},
title = {Vietnamese Law MCP Server: Production-Grade Legal Research Tool},
year = {2026},
url = {https://github.com/Ansvar-Systems/vietnamese-law-mcp},
note = {93 Vietnamese statutes with 3,226 provisions covering cybersecurity, data protection, and commercial law}
}
Apache License 2.0. See LICENSE for details.
We build AI-accelerated compliance and legal research tools for the global market. This MCP server helps organisations operating in Vietnam navigate the country's rapidly evolving digital and data protection legislation.
So we're open-sourcing it. Navigating 93 statutes across Luật, Nghị định, and Thông tư shouldn't require a law degree.
ansvar.eu -- Stockholm, Sweden
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.