Skip to content
MCP server

Tw Legal Rag

Taiwan law MCP server: court judgments, statutes, agency rulings, citation checks

Install
Pricing
Free
Platforms
API, CLI, Web
Runs
Remotely
Access
Needs an account or API key
Version
2.3.4
Listing updated
3 days ago

About Tw Legal Rag

Tw Legal Rag is a free MCP server for legal and government. It runs as a hosted remote server, so there is nothing to install locally.

Behind the endpoint is the Dr.Legal (Legal Detective) database. The README counts 22,795,389 court judgments as of 2026-11-11, plus 872 constitutional interpretations and rulings, 1,022 laws, 7,255 regulations and 107,889 administrative rules from 107 agencies, with a record of which rulings were repealed or superseded.

The server is free and needs no API key, but connecting opens a login page for a free Dr.Legal account. It gives six tools: judgment search, full text with appeal links, a bundle with a citation allowlist, current statute lookup, administrative ruling lookup by number and semantic ruling search.

The author says the companion CLI does not generate legal advice or call a language model, and its citation check only confirms that cited judgments belong to the retrieved bundle. Judgments sync daily with a lag of several days.

Install

Run in a terminal

claude mcp add --transport http tw-legal-rag https://tlr.dr-legal.com.tw/mcp

Add to Settings → Connectors → Add custom connector

https://tlr.dr-legal.com.tw/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "tw-legal-rag": {
      "url": "https://tlr.dr-legal.com.tw/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "tw-legal-rag": {
      "type": "http",
      "url": "https://tlr.dr-legal.com.tw/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "tw-legal-rag": {
      "serverUrl": "https://tlr.dr-legal.com.tw/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "tw-legal-rag": {
      "type": "http",
      "url": "https://tlr.dr-legal.com.tw/mcp"
    }
  }
}

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

get_law_article
Looks up a current statute article by law name and article number.

What it does

Judgment search
Retrieves Taiwanese court rulings semantically and by case number.
Appeal chains
Attaches higher-court history and outcome flags.
Citation bundles
Returns a whitelist of judgments for checking citations.
Statute lookup
Looks up current articles by law name and number.
Agency rulings
Searches administrative interpretations and their validity.

Good for

  • Research precedent for a Taiwanese case
  • Verify that cited judgments were retrieved
  • Look up a current statute article
  • Find agency interpretations on a topic

Pricing

Free

Free; sign in with a Dr.Legal account

Prices change. Check dr-legal.com.tw before you buy.

Tw Legal Rag FAQ

Is it free?

Yes, no API key; you sign in with a free account.

How recent are the judgments?

Synced daily, but very new rulings can lag by several days.

Does it give legal advice?

No. It retrieves material for your own AI tools.

Is Tw Legal Rag free?

Yes. Tw Legal Rag is free to use.

How do I add Tw Legal Rag to Claude Code?

Run this command in your terminal: claude mcp add --transport http tw-legal-rag https://tlr.dr-legal.com.tw/mcp

What are the best alternatives to Tw Legal Rag?

The closest alternatives to Tw Legal Rag are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and note1.

Alternatives to Tw Legal Rag

  1. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  2. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  3. MCP server for searching the Claude Code Ultimate Guide from any MCP client

    Runs locally
    • Open source
    • 6.5K GitHub stars
    • AI models and LLM tooling
  4. Local-first long-term memory layer for AI agents, served over MCP

    Not checked yet
    • 5 tools
    • Remote
    • Open source
    • 1.3K GitHub stars
    • Knowledge and memory
  5. note1

    MCP server

    MCP server giving AI assistants search and summaries across your note1 meetings

    • 4 tools
    • Remote
    • Free trial
    • 1 GitHub star
    • Productivity
  6. New York LLC publication rules, deadline, county prices, clerks and notice text

    • 8 tools
    • Remote
    • Free
    • Legal and government