Taiwan Legal RAG
Lets your AI agent search Taiwan court judgments, laws and administrative rulings, with citation checks.
342 stars on GitHubby Aaron Huang (Dr.Legal)License NOASSERTIONUpdated 20 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://tlr.dr-legal.com.tw/mcp
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http tw-legal-rag https://tlr.dr-legal.com.tw/mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Find judgments about unpaid overtime pay and show the key passages.
Look up Article 184 of the Civil Code.
What it is
This hosted server connects your AI agent to Dr.Legal's collection of about 22.8 million Taiwan court judgments, plus laws and administrative interpretations. It only retrieves sources; it does not give legal advice or call any AI model itself. Each bundle of results comes with a list of allowed citations to reduce made-up references.
What it can do
- Search judgments by meaning or by exact keyword
get_judgment_fulltext: read a judgment in fullsearch_bundle: package results with an allowed-citations listget_law_article: look up current law text by name and article- Look up administrative rulings by reference number
- Search administrative rulings by meaning
When to use
- βΊWhen you need to find Taiwan court decisions on a legal question.
- βΊWhen you want to check that a cited judgment or law article really exists.
- βΊWhen you want to see whether a judgment was later overturned on appeal.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
research-startHelps your agent build a research roadmap for a legal issue, with statutes, case law areas, and search terms for you to verify.cocounsel-legal:deep-researchLets your agent run a Westlaw Deep Research report on U.S. case law, statutes, and regulations, then return a written summary.leiloeiro-juridicoLets your agent analyze the legal aspects of auctions. It checks for nullities, debts, and case law to ensure legal compliance.Frequently asked questions
Is it free?
The readme says it is free and needs no API key. You sign in to a free Dr.Legal account.
Does it give legal advice?
No. It is retrieval only and does not call any AI model or endorse model output.
How do I connect?
Add the endpoint https://tlr.dr-legal.com.tw/mcp to Claude, ChatGPT, Gemini, Cursor or Codex. For Claude Code, use claude mcp add --transport http.
Does the citation check prove my answer is right?
No. A pass only means cited judgment numbers are in the retrieved bundle, not that the legal reasoning is correct.
Are my queries stored?
The readme says queries may be logged and are tied to your account, and are not used to train generative models. Do not send secrets.
Is there a command-line tool too?
Yes. The twlegalrag CLI installs with pip and uses the same backend.
If it does not work
- βΊOn first connect, finish the Dr.Legal sign-in page that opens.
- βΊFor the CLI or REST use, create a connection key at dr-legal.com.tw/mcp/keys and set TWLEGALRAG_TLR_API_KEY.
- βΊVery new judgments may be missing because public data arrives with a delay of a few days.
5 new skills a week. 1 minute to read.