Taiwan Legal Database
台灣司法院判決 + 全國法規資料庫 MCP server · Query Taiwan legal data from any MCP AI agent
What is Taiwan Legal Database?
Taiwan Legal Database is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 台灣司法院判決 + 全國法規資料庫 mcp server · query taiwan legal data from any mcp ai agent
台灣司法院判決 + 全國法規資料庫 MCP server · Query Taiwan legal data from any MCP AI agent
This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 台灣司法院判決 + 全國法規資料庫 MCP server · Query Taiwan legal data from
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-taiwan-legal-dbConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Taiwan Legal Database
MCP Taiwan Legal DB is a Python MCP server that connects AI agents to two authoritative Taiwanese legal databases: the Judicial Yuan judgment database (judgment.judicial.gov.tw) and the National Regulations Database (law.moj.gov.tw). It exposes 8 tools for searching court decisions, retrieving full judgment text, querying law articles with amendment history, and tracing citation graphs between constitutional interpretations. Legal researchers, law students, and developers building Taiwanese legal applications use it to query over 11,700 regulations and decades of court decisions through natural language prompts.
Prerequisites
- Python 3.10+ installed
- pip or pipx for package installation
- An MCP-compatible client such as Claude Desktop or Claude CLI
- Optional: Playwright Chromium for WAF-bypass fallback (run 'playwright install chromium')
- No API keys required — the server queries public government databases directly
Install via pip or pipx
Install the package from PyPI. On Debian/Ubuntu/WSL use pipx to avoid PEP 668 externally-managed-environment errors.
pip install mcp-taiwan-legal-db
# OR on Debian/Ubuntu/WSL:
pipx install mcp-taiwan-legal-dbRegister globally with Claude CLI
The easiest way to use the server is to register it globally so it is available in all Claude Code sessions.
claude mcp add taiwan-legal-db mcp-taiwan-legal-db --scope userAdd to Claude Desktop manually
Edit the Claude Desktop config file. On macOS it is at ~/Library/Application Support/Claude/claude_desktop_config.json. Use the absolute path to your Python virtual environment's binary.
{
"mcpServers": {
"taiwan-legal-db": {
"command": "/Users/yourname/.local/share/pipx/venvs/mcp-taiwan-legal-db/bin/python",
"args": ["-m", "mcp_server.server"],
"cwd": "/path/to/mcp-taiwan-legal-db"
}
}
}Install Playwright Chromium (optional)
Some queries to judicial.gov.tw may be blocked by WAF protection. Installing Playwright enables the server to fall back to a browser-based approach when direct HTTP requests are blocked.
playwright install chromiumVerify the connection
Start your MCP client and ask a simple legal question in Chinese or English. The server maintains a local SQLite cache so repeated queries are fast.
Taiwan Legal Database Examples
Client configuration
Claude Desktop config using the pipx-installed package. Adjust the path to match your Python environment.
{
"mcpServers": {
"taiwan-legal-db": {
"command": "mcp-taiwan-legal-db",
"args": [],
"env": {}
}
}
}Prompts to try
These prompts exercise the 8 tools including judgment search, regulation lookup, and constitutional interpretation retrieval.
- "查民法第 184 條" (Query Civil Code Article 184)
- "搜尋跟預售屋遲延交屋有關的最高法院判決" (Search Supreme Court decisions on presale property delays)
- "釋字 748 的理由書重點是什麼" (What are the key points in Interpretation 748?)
- "Find all regulations related to personal data protection (個人資料保護)"
- "哪些大法官解釋討論過集會自由" (Which interpretations discuss freedom of assembly?)
- "釋字 748 引用了哪些先前的釋字" (What prior interpretations does Ruling 748 cite?)Troubleshooting Taiwan Legal Database
Queries to judgment.judicial.gov.tw return empty results or timeout
Install Playwright Chromium ('playwright install chromium') to enable the WAF-bypass fallback. The server will automatically use the browser when direct HTTP requests are blocked.
'mcp-taiwan-legal-db: command not found' after pip install on Ubuntu
Use 'pipx install mcp-taiwan-legal-db' instead. On systems with PEP 668 enforcement, pip installs into a managed environment and the CLI entry point may not be on PATH. After pipx install, run 'pipx ensurepath' and restart your shell.
Cache becomes stale for recently amended regulations
The server auto-refreshes bundled data files weekly. For immediate updates, delete the cache at mcp_server/data/cache/legal_mcp.db and restart the server. The next query will re-fetch from the live database.
Frequently Asked Questions about Taiwan Legal Database
What is Taiwan Legal Database?
Taiwan Legal Database is a Model Context Protocol (MCP) server that 台灣司法院判決 + 全國法規資料庫 mcp server · query taiwan legal data from any mcp ai agent It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Taiwan Legal Database?
Follow the installation instructions on the Taiwan Legal Database GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Taiwan Legal Database?
Taiwan Legal Database works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Taiwan Legal Database free to use?
Yes, Taiwan Legal Database is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Taiwan Legal Database Alternatives — Similar Knowledge & Memory Servers
Looking for alternatives to Taiwan Legal Database? Here are other popular knowledge & memory servers you can use with Claude, Cursor, and VS Code.
MemPalace
★ 52.6kA local AI memory system that stores all conversations verbatim and organizes them into navigable structures. It provides 19 MCP tools for AI assistants to search and retrieve past decisions, debugging sessions, and architecture debates automatically
Kratos
★ 25.7k🏛️ Memory System for AI Coding Tools - Never explain your codebase again. MCP server with perfect project isolation, 95.8% context accuracy, and the Four Pillars Framework.
Context Mode
★ 15.4kAn MCP server that preserves LLM context by intercepting large data outputs and returning only concise summaries or relevant sections. It enables efficient sandboxed code execution, file processing, and documentation indexing across multiple programm
Memu
★ 13.7kMemory for 24/7 proactive agents like OpenClaw.
MemOS
★ 9.3kMemOS (Memory Operating System) is a memory management operating system designed for AI applications. Its goal is: to enable your AI system to have long-term memory like a human, not only remembering what users have said but also actively invoking, u
Everos
★ 5.4kBuild, evaluate, and integrate long-term memory for self-evolving agents.
Browse More Knowledge & Memory MCP Servers
Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Taiwan Legal Database in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Taiwan Legal Database?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.