
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@ansvar/vietnamese-law-mcp
Advanced tools
Comprehensive Vietnamese law database: 93 laws covering Constitution, Civil/Penal Codes, Cybersecurity Law, Personal Data Protection, Enterprise Law, E-Transactions, and 80+ more statutes with full-text search
The thuvienphapluat.vn alternative for the AI age.
Query 93 Vietnamese laws -- from the Cybersecurity Law and Personal Data Protection to the Civil Code, Penal Code, and Enterprise Law -- 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
Vietnamese legal research is scattered across thuvienphapluat.vn, vbpl.vn, vanban.chinhphu.vn, and luatvietnam.vn. Whether you're:
...you shouldn't need to navigate multiple portals in Vietnamese. 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://vietnamese-law-mcp.vercel.app/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add vietnamese-law --transport http https://vietnamese-law-mcp.vercel.app/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://vietnamese-law-mcp.vercel.app/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"vietnamese-law": {
"type": "http",
"url": "https://vietnamese-law-mcp.vercel.app/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"]
}
}
}
| Category | Count | Details |
|---|---|---|
| Laws | 93 documents | Constitution, 6 Codes, 85 Laws, 1 key Decree |
| Provisions | 3,226 articles | Full-text searchable with FTS5 (unicode61 tokenizer) |
| Definitions | 104 terms | Extracted from interpretation articles |
| Database Size | ~14 MB | Optimized SQLite, portable |
| Category | Key Laws | Articles |
|---|---|---|
| Constitution | Hien phap 2013 | 120 |
| Civil Law | Civil Code 2015 (689 arts), Civil Procedure Code 2015 (511 arts) | 1,196 |
| Criminal Law | Penal Code 2015 (287 arts incl. cybercrime), Criminal Procedure Code 2015 (503 arts) | 790 |
| Cybersecurity & ICT | Cybersecurity Law 2018, Network Security 2015, IT Law 2006, E-Transactions 2023, Data Law 2024, PDP Law 2025 | 238 |
| Labour | Labour Code 2019 (220 arts), Employment 2013, Occupational Safety 2015 | 249 |
| Commerce & Enterprise | Enterprise Law 2020, Investment 2020, Competition 2018, Consumer Rights 2023, Securities 2019 | 69 |
| Finance & Tax | Tax Administration 2019, VAT 2024, CIT 2008, PIT 2007, AML 2022, Credit Institutions 2024 | 30 |
| Land & Construction | Land Law 2024, Housing 2023, Construction 2014, Real Estate 2023 | 162 |
| Other | Anti-Corruption, IP Law, Press Law, Education, Transport, Defence, and 30+ more | 491 |
Verified data only -- all text is sourced from official thuvienphapluat.vn and vbpl.vn databases. Zero LLM-generated content.
Once connected, just ask naturally:
| Tool | Description |
|---|---|
search_legislation | FTS5 search on 3,226 provisions with BM25 ranking (Vietnamese + English) |
get_provision | Retrieve specific article by law ID + article number |
build_legal_stance | Aggregate citations from multiple laws |
format_citation | Format citations per Vietnamese conventions |
check_currency | Check if law is in force, amended, or repealed |
validate_citation | Validate citation against database (zero-hallucination check) |
get_eu_basis | Get EU/international framework references |
get_provision_eu_basis | Get EU law references for specific provision |
| Source | Authority | Method | License |
|---|---|---|---|
| Thu Vien Phap Luat | LawNet | HTML scrape | Open Access |
| VBPL | Ministry of Justice | Cross-reference | Government Open Data |
Full provenance metadata:
sources.yml
git clone https://github.com/Ansvar-Systems/vietnamese-law-mcp
cd vietnamese-law-mcp
npm install
npm run build
npm test
npm run census # Generate full law census (data/census.json)
npm run ingest # Fetch + parse all laws from census
npm run ingest -- --resume # Resume interrupted ingestion
npm run ingest -- --limit 5 # Test with 5 laws
npm run ingest -- --skip-fetch # Reparse cached HTML
npm run build:db # Build SQLite database from seeds
npm run check-updates # Check for legislative changes
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
12 golden contract tests covering:
npm run test:contract
| Format | Example | Meaning |
|---|---|---|
| Law (Luat) | 24/2018/QH14 | Law No. 24, Year 2018, 14th National Assembly |
| Decree (Nghi dinh) | 13/2023/ND-CP | Decree No. 13, Year 2023, Government |
| Circular (Thong tu) | XX/YYYY/TT-BCA | Circular from Ministry of Public Security |
| Decision (Quyet dinh) | XX/YYYY/QD-TTg | Decision of the Prime Minister |
| Code (Bo luat) | 91/2015/QH13 | Civil Code No. 91, Year 2015, 13th National Assembly |
THIS TOOL IS NOT LEGAL ADVICE
Text is sourced from official Vietnamese legal databases. However:
- This is a research tool, not a substitute for professional legal counsel
- Vietnamese is the legally binding language; English content is unofficial
- Verify critical citations against primary sources for court filings
- Some laws with newer URL patterns have metadata only (no article text)
Before using professionally, read: DISCLAIMER.md | PRIVACY.md
Query 49 EU regulations -- GDPR, AI Act, DORA, NIS2, and more. npx @ansvar/eu-regulations-mcp
Query US federal and state compliance laws -- HIPAA, CCPA, SOX, and more. npx @ansvar/us-regulations-mcp
Query 261 security frameworks and 1,451 SCF controls. npx @ansvar/security-controls-mcp
See SECURITY.md for vulnerability disclosure policy.
Report data errors: Open an issue
Apache License 2.0. See LICENSE for details.
We build AI-accelerated compliance and legal research tools. This MCP server makes Vietnamese law searchable and AI-readable -- because navigating 93 laws across multiple Vietnamese-language portals shouldn't require a law degree.
Built with care by Ansvar Systems
FAQs
Comprehensive Vietnamese law database: 93 laws covering Constitution, Civil/Penal Codes, Cybersecurity Law, Personal Data Protection, Enterprise Law, E-Transactions, and 80+ more statutes with full-text search
The npm package @ansvar/vietnamese-law-mcp receives a total of 43 weekly downloads. As such, @ansvar/vietnamese-law-mcp popularity was classified as not popular.
We found that @ansvar/vietnamese-law-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.