Taiwan Legal Database

v1.0.0Knowledge & Memorystable

台灣司法院判決 + 全國法規資料庫 MCP server · Query Taiwan legal data from any MCP AI agent

claudejudiciallegallegal-techmcp
Share:
125
Stars
0
Downloads
0
Weekly
0/5

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

Query Taiwan court decisions and national legal regulations.
Access comprehensive legal database through AI agents.
lawchat-oss

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-taiwan-legal-db

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-db
2

Register 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 user
3

Add 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"
    }
  }
}
4

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 chromium
5

Verify 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.

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.

Quick Config Preview

{ "mcpServers": { "mcp-taiwan-legal-db": { "command": "npx", "args": ["-y", "mcp-taiwan-legal-db"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides