Taiwanese legislation via MCP — full-text search across statutes and provisions
Taiwanese legislation via MCP — full-text search across statutes and provisions
Valid MCP server (3 strong, 3 medium validity signals). 1 known CVE in dependencies (0 critical, 1 high severity) Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (200/203 approved).
5 files analyzed · 2 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-taiwanese-law-mcp": {
"args": [
"-y",
"@ansvar/taiwanese-law-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
The Laws & Regulations Database alternative for the AI age.
Query 11,747 Taiwanese laws -- from 個人資料保護法 (Personal Data Protection Act) and 刑法 (Criminal Code) to 民法 (Civil Code), 公司法 (Company Act), and more -- directly from Claude, Cursor, or any MCP-compatible client.
If you're building legal tech, compliance tools, or doing Taiwanese legal research, this is your verified reference database.
Built by Ansvar Systems -- Stockholm, Sweden
Taiwanese legal research means navigating the Laws & Regulations Database (law.moj.gov.tw), the Judicial Yuan database, and scattered ministry publications. 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 Taiwanese law searchable, cross-referenceable, and AI-readable.
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://mcp.ansvar.eu/law-tw/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add taiwanese-law --transport http https://mcp.ansvar.eu/law-tw/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": {
"taiwanese-law": {
"type": "url",
"url": "https://mcp.ansvar.eu/law-tw/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"taiwanese-law": {
"type": "http",
"url": "https://mcp.ansvar.eu/law-tw/mcp"
}
}
}
npx @ansvar/taiwanese-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": {
"taiwanese-law": {
"command": "npx",
"args": ["-y", "@ansvar/taiwanese-law-mcp"]
}
}
}
Cursor / VS Code:
{
"mcp.servers": {
"taiwanese-law": {
"command": "npx",
"args": ["-y", "@ansvar/taiwanese-law-mcp"]
}
}
}
Once connected, just ask naturally (in Traditional Chinese or English):
| Category | Count | Details |
|---|---|---|
| Laws | 11,747 laws | Comprehensive Taiwanese legislation from law.moj.gov.tw |
| Provisions | 221,082 sections | Full-text searchable with FTS5 |
| Preparatory Works | 67,682 documents | Legislative yuan records and explanatory materials |
| Database Size | Optimized SQLite | Portable, pre-built |
| Daily Updates | Automated | Freshness checks against official sources |
Verified data only -- every citation is validated against official sources (Ministry of Justice, Taiwan). Zero LLM-generated content.
Verbatim Source Text (No LLM Processing):
Smart Context Management:
Technical Architecture:
law.moj.gov.tw --> Parse --> SQLite --> FTS5 snippet() --> MCP response
^ ^
Provision parser Verbatim database query
| Traditional Approach | This MCP Server |
|---|---|
| Search law.moj.gov.tw by law name | Search by plain Chinese: "個人資料 同意" |
| Navigate multi-chapter laws manually | Get the exact provision with context |
| Manual cross-referencing between laws | build_legal_stance aggregates across sources |
| "這部法律還有效嗎?" -> check manually | check_currency tool -> answer in seconds |
| Find international alignment -> dig through WTO/APEC | get_eu_basis -> linked frameworks instantly |
| No API, no integration | MCP protocol -> AI-native |
Traditional: Search MOJ database -> Download PDF -> Ctrl+F -> Cross-reference between codes -> Check Judicial Yuan for rulings -> Repeat
This MCP: "個人資料保護法第十五條如何與GDPR的合法性基礎比較?" -> Done.
| Tool | Description |
|---|---|
search_legislation | FTS5 full-text search across 221,082 provisions with BM25 ranking |
get_provision | Retrieve specific provision by law identifier + article number |
check_currency | Check if a law is in force, amended, or repealed |
validate_citation | Validate citation against database -- zero-hallucination check |
build_legal_stance | Aggregate citations from multiple laws for a legal topic |
format_citation | Format citations per Taiwanese legal conventions |
list_sources | List all available laws with metadata, coverage scope, and data provenance |
about | Server info, capabilities, dataset statistics, and coverage summary |
| Tool | Description |
|---|---|
get_eu_basis | Get international frameworks (WTO, APEC CBPR, GDPR-aligned) that a Taiwanese law aligns with |
get_taiwanese_implementations | Find Taiwanese laws aligning with a specific international framework |
search_eu_implementations | Search international documents with Taiwanese alignment counts |
get_provision_eu_basis | Get international law references for a specific provision |
validate_eu_compliance | Check alignment status of Taiwanese laws against international frameworks |
Taiwan is not an EU member state or WTO member under its own name (it participates as "Chinese Taipei"). International alignment for Taiwanese law is anchored in:
The international alignment tools allow you to explore these relationships -- identifying where Taiwanese provisions correspond to international standards.
Note: International cross-references reflect alignment and framework relationships, not direct transposition. Taiwan adopts its own legislative approach and the tools identify analogous provisions rather than formal implementing legislation.
All content is sourced from authoritative Taiwanese legal databases:
| Field | Value |
|---|---|
| Authority | Ministry of Justice, Taiwan (法務部) |
| Retrieval method | Official MOJ API and database ingestion |
| Language | Traditional Chinese |
| Coverage | 11,747 laws across all legal domains |
| Last ingested | 2026-02-25 |
A daily GitHub Actions workflow monitors official sources for changes:
| Source | Check | Method |
|---|---|---|
| Law amendments | MOJ database comparison | All 11,747 laws checked |
| New laws | MOJ publications (90-day window) | Diffed against database |
| Preparatory works | Legislative Yuan records | New materials detected |
Verified data only -- every citation is validated against official sources. Zero LLM-generated content.
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 the Laws & Regulations Database (Ministry of Justice, Taiwan). However:
- This is a research tool, not a substitute for professional legal counsel
- Court case coverage is not included -- do not rely solely on this for case law research
- Verify critical citations against primary sources for court filings
- International cross-references reflect alignment relationships, not formal transposition
- Administrative regulations (行政規則) may have partial coverage; check official sources for subsidiary legislation
Before using professionally, read: DISCLAIMER.md | SECURITY.md
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See PRIVACY.md for guidance on professional use in accordance with 台灣律師聯合會 (Taiwan Bar Association) standards.
git clone https://github.com/Ansvar-Systems/Taiwanese-law-mcp
cd Taiwanese-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 laws from MOJ database
npm run build:db # Rebuild SQLite database
npm run check-updates # Check for amendments and new laws
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 US federal and state compliance laws -- HIPAA, CCPA, SOX, GLBA, FERPA, and more. npx @ansvar/us-regulations-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 Australia, Brazil, Canada, Colombia, Denmark, Finland, France, Germany, Ireland, Italy, Japan, Netherlands, Norway, Serbia, Slovenia, South Korea, Sweden, UK, and more.
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority areas:
If you use this MCP server in academic research:
@software{taiwanese_law_mcp_2026,
author = {Ansvar Systems AB},
title = {Taiwanese Law MCP Server: AI-Powered Legal Research Tool},
year = {2026},
url = {https://github.com/Ansvar-Systems/Taiwanese-law-mcp},
note = {11,747 Taiwanese laws with 221,082 provisions and 67,682 preparatory works}
}
Apache License 2.0. See LICENSE for details.
We build AI-accelerated compliance and legal research tools for the global market. This MCP server started as our internal reference tool -- turns out everyone building compliance tools has the same research frustrations.
So we're open-sourcing it. Navigating 11,747 Taiwanese laws 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.