tw-legal-rag

台灣法律 MCP 伺服器 + CLI(免費、免金鑰,連接時登入法律偵探帳號):2,280 萬筆裁判書、行政函釋、憲法法庭裁判,附引用查核。Free Taiwan legal MCP server for Claude

What is tw-legal-rag?

台灣法律 MCP 伺服器 + CLI(免費、免金鑰,連接時登入法律偵探帳號):2,280 萬筆裁判書、行政函釋、憲法法庭裁判,附引用查核。Free Taiwan legal MCP server for Claude/ChatGPT/Codex: sign in with a Dr.Legal account, bring your own LLM, retrieval-only.

Overview of tw-legal-rag

What it is

Taiwan Legal RAG CLI is a free, no-signup, no-API-key Taiwan legal MCP server and CLI tool. It retrieves Taiwan court judgments from Legal Detective's public TLR endpoint and packages them for use with your own AI tools. It does not generate legal advice, does not call any LLM, and does not guarantee semantic faithfulness of third-party model outputs. Its built-in citation check verifies whether cited judgments belong to the retrieved bundle. The underlying database contains 22,729,045 court judgments, administrative interpretations, and Constitutional Court rulings (as of 2026-10-21), along with legal norms (constitution, laws, regulations) and auxiliary data such as case history and interpretation validity.

Key features

  • Semantic retrieval of 22.7 million Taiwan court judgments, administrative interpretations, and Constitutional Court rulings.
  • Fuzzy concept-level search and exact case number lookup.
  • Case history (case_history) with appeal chain and disposition flags (reversed/dismissed).
  • Citation protection: allowed_citations whitelist, unread_candidates marking, and citation check.
  • Administrative rules dual tools: exact query with validity status and semantic search.
  • Current law article precise query with last amendment date and repeal notes.
  • No LLM integration, no legal advice generation.

Use cases

  • Legal research and retrieval of relevant Taiwan court judgments.
  • AI-assisted legal analysis by providing structured judgment bundles to LLMs.
  • Citation verification to check if cited judgments are within the retrieved bundle.
  • Retrieving case history to see if a judgment has been reversed on appeal.

Getting started

See the repository README for installation and usage instructions.

License and pricing

The license is not stated in the repository metadata (NOASSERTION). The project is open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/aa0101181514tw-legal-rag.svg)](https://yunodb.com/tools/aa0101181514tw-legal-rag?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/aa0101181514tw-legal-rag?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/aa0101181514tw-legal-rag.svg" alt="Featured on YunoDB" height="20"></a>