Tw Legal RAG MCP Server

繁體中文 ・ English ・ 日本語 Taiwan Legal RAG CLI 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 only verifies whether cited judgments belong to the retrieved bundle.

Teams that want a hosted AI & ML endpoint instead of running a local process. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2026-08-23 · ★ 298 · #47 OF 95 MAINTAINED AI & ML · VERIFIED 2026-08-25

NOASSERTION · Python servers · how we verify → /methodology

01 · Install Tw Legal RAG

before you install - you'll need

Set TWLEGALRAG_TLR_BASE_URL, TWLEGALRAG_TLR_API_KEY before connecting.

Claude Code

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

Claude Desktop / Cursor / VS Code - add to config

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

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

https://tlr.dr-legal.com.tw/mcp

transport: streamable-http

endpoint alive - authentication required · probed 2026-08-25

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as remote - your agent's requests go to tlr.dr-legal.com.tw

endpoint auth requires authentication - rejected our unauthenticated MCP initialize

license no standard license detected - usage rights unclear; check the repo before commercial use

registry namespace io.github.aa0101181514 is GitHub-verified and matches the repo owner

03 · What Tw Legal RAG can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

Latest releases

v2.2.0 · 2026-08-23

Hosted endpoint moved to the Dr.Legal domain: · Default TLR base URL is now (CLI default, TWLEGALRAG_TLR_BASE_URL fallback, server.json remote, all docs). · The previous endpoint keeps working and is not scheduled…

v2.1.0 · 2026-08-20

CLI 跟進 2026-08-20 伺服器端更新: · pack 分頁讀完長判決 - 透過伺服器的 excerpt_offset 視窗續讀,長判決後段不再被截斷;舊伺服器維持單窗行為,完全向下相容。 · bundle 每篇全文預算加倍(6,000 → 12,000 字),並新增 fulltext_total_chars 讓下游模型知道拿到的比例。 · hit_excerpt 進 bundle…

v2.0.0 · 2026-08-09

License change · v2.0.0 and later: Elastic License 2.0 (ELv2). Free to use, copy, modify and redistribute - including commercial and internal-business use. Two limits: no offering the software itself as a…

04 · Who maintains Tw Legal RAG

tw-legal-rag is maintained by aa0101181514. It's the only MCP server we track from this author; the repo dates to May 2026.

05 · Facts

category
AI & ML - ranked #47 of 95 actively-maintained AI & ML servers as of 2026-08-25.
release cadence
7 releases in the last 90 days (latest 2026-08-23)
registry
io.github.aa0101181514/tw-legal-rag (active, first published 2026-08-05 · 2 versions)

06 · Tw Legal RAG FAQ

What is Tw Legal RAG?

繁體中文 ・ English ・ 日本語 Taiwan Legal RAG CLI 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 only verifies whether cited judgments belong to the retrieved bundle.

Is Tw Legal RAG still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-23 and it shipped 7 releases in the last 90 days. We re-verify nightly.

How do I install Tw Legal RAG?

Run `claude mcp add aa0101181514-tw-legal-rag --transport http https://tlr.dr-legal.com.tw/mcp`. The README documents 2 environment variables (TWLEGALRAG_TLR_BASE_URL, TWLEGALRAG_TLR_API_KEY) to set first. Set TWLEGALRAG_TLR_BASE_URL, TWLEGALRAG_TLR_API_KEY before connecting. You can also paste the ready-made client config above.

Does Tw Legal RAG require authentication?

Yes - when we probed the endpoint on 2026-08-25, it rejected an unauthenticated MCP initialize; you'll need credentials to connect.

07 · Alternatives to Tw Legal RAG