Nexus Legal

io.github.djtellado由 GitHub 帳號 djtellado 發布v0.6.3更新於 Oct 25, 2026

International legal analysis (ISO 31000) — 27 tools, 63 selectable jurisdictions; coverage varies.

已驗證Streamable HTTP可網頁執行效率與工作流知識與記憶

概覽

AI 產生的概覽

Nexus Legal 向 MCP 用戶端提供 27 項法律分析工具,涵蓋 ISO 31000 分析、書狀起草、判例與法規檢索、引註核驗和期限計算。

可以做什麼
對文件或問題執行法律分析、開放式諮詢、書狀起草、交叉稽核、多代理共識和蒙地卡羅情境模擬,可指定司法管轄區與職業角色。檢索並閱讀判例法與法規,依日期取得條文原文,查看立法層級與語料涵蓋情形。核驗引註、檢查文件中的全部引註、計算程序期限,並建立條文與判決之間的引註圖譜。產出談判策略手冊、比較文件版本、進行利益衝突檢查,並查看事務所待辦收件匣。依 file_id 分析 Box 檔案,並結合案件脈絡進行法律對話。
適用情境
適合法律從業人員和團隊,希望在對話中讓助理完成結構化的法律分析、書狀起草和引註核驗,並涵蓋 63 個可選司法管轄區中的一個或多個。若已有 Nexus 帳戶且點數餘額充足,並為判例法或額外法規購買了對應管轄區的附加方案,則值得加入。
執行需求
需要 Nexus 帳戶、大於零的點數餘額,以及在 NEXUS_API_KEY 中設定的個人 API 金鑰(nlk_ 前綴,mcp 權限),金鑰在開發者頁面產生。可作為遠端端點執行,也可透過 npx 作為本機 npm 套件執行,本機方式需要 Node.js。選用 NEXUS_BASE_URL 和 NEXUS_TIMEOUT_MS(預設 180000 毫秒)。部分帳戶須先註冊自己的 LLM 供應商,生成類工具才能使用。
安裝前請注意
並非免費:每次呼叫從第一次起就按點數計費,判例法或額外法規等高階內容需依管轄區購買附加方案。文件和問題會傳送到第三方後端;README 稱在歐盟基礎設施的記憶體中處理,並對個人身分資訊做匿名化,且每次呼叫都會記錄稽核日誌。要求自備引擎的帳戶上,生成類工具會回傳 BYO_PROVIDER_REQUIRED;推理模型的長分析可能觸及 300 秒閘道上限。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Nexus Legal,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.djtellado%2Fnexus-legal/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "nexus-legal": {
      "type": "http",
      "url": "https://legal.nexusquantum.legal/api/mcp"
    }
  }
}

README

@nexus-legal/mcp

MCP (Model Context Protocol) server for Nexus Legal — exposes 27 specialised legal capabilities to Claude Desktop, Claude Code, Cursor and any other MCP-compatible client.

What is this? Connect your Claude to Nexus in 30 seconds. From then on Claude can run ISO 31000 legal analysis, Monte Carlo litigation simulation, case-law search, legal drafting, administrative doctrine, adversarial red teaming, multi-jurisdiction comparison (cross-border), citation verification, procedural time-limit computation, the statute↔case-law citation graph, and analysis of Box files by file_id (box_analyze) — without leaving the conversation.


Quick install

1. Generate an MCP key

Go to legal.nexusquantum.legal/developers, choose "MCP server", give it a name (e.g. "personal MacBook") and press + Create MCP key. Copy the nlk_... key — it is shown only once.

2. Configure your client

Claude Desktop (macOS)

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "nexus-legal": {      "command": "npx",      "args": ["-y", "@nexus-legal/mcp"],      "env": {        "NEXUS_API_KEY": "nlk_YOUR_KEY_HERE"      }    }  }}

Restart Claude Desktop. You will see a 🔌 icon in the chat with the 27 Nexus tools available.

Claude Desktop (Windows)

Edit %APPDATA%\Claude\claude_desktop_config.json with the same contents.

Claude Code (CLI)
bash
claude mcp add nexus-legal -- npx -y @nexus-legal/mcp# Then set your key:export NEXUS_API_KEY=nlk_YOUR_KEY_HERE
Cursor

Edit ~/.cursor/mcp.json:

json
{  "mcpServers": {    "nexus-legal": {      "command": "npx",      "args": ["-y", "@nexus-legal/mcp"],      "env": { "NEXUS_API_KEY": "nlk_YOUR_KEY_HERE" }    }  }}

3. Try it

In Claude Desktop, type:

Analyse this contract with Nexus in jurisdiction GB, commercial branch, conservative profile: «[paste the contract text here]»

Claude will call the nexus_analyze tool and return the report with certainty locks [L1]/[L2-J]/[L3-NV]/[L4], blocking signals [L5-C]/[L5-P], and a NEXUS-AUDIT-TRAIL block.


The 27 tools

ToolCapabilityTypical cost
nexus_analyzeFull legal analysis (Node A — ISO 31000)1-3 credits
nexus_consultaOpen legal question, with or without a document1 credit
nexus_draftLegal drafting (appeal, claim, defence, clause…)2-4 credits
nexus_auditCross-audit of a Node A analysis (Node B)1-2 credits
nexus_consensusMulti-agent consensus Node A ↔ Node B (analysis + adversarial audit in a loop until consensus; jurisdiction required; long operation ~3-6 min)3-7 credits
nexus_monte_carloMonte Carlo scenario simulation (ISO 31000 §6)4 credits
nexus_doctrinaAdministrative doctrine search, by jurisdiction1 credit
nexus_opinionMulti-LLM second opinion on a previous analysis2 credits
nexus_redteamAdversarial red team (vulnerabilities as structured JSON)5 credits
nexus_adversarialAdversarial argument in prose over a previous analysis2-3 credits
nexus_cross_border_compareMulti-jurisdiction comparison (2-15 jurisdictions)2-4 credits
nexus_jurisprudencia_searchSemantic search over the multi-jurisdiction case-law corpusrequires balance + the case-law add-on for that jurisdiction
verify_citaDeterministic verification of one citation (judgment or provision) against the official corpusrequires balance (+ case-law add-on if the citation is case law)
plazos_calcularProcedural time limits by forum. jurisdiction is required, no default: ES (LEC + LOPJ, CGPJ/regional holidays, August non-working) or GB-EAW (CPR r 2.8, clear days, England and Wales bank holidays, no August recess). Scotland and Northern Ireland are rejected: their rules and their holidays are differentrequires balance
cruce_normativa_jurisprudenciaCitation graph: provisions ↔ judgmentsrequires balance + case-law add-on
box_analyzeAnalysis of a Box file by file_id (requires an active Box connection)1-2 credits
nexus_verificacionVerification Centre: checks EVERY citation in a document against the official corpus (deterministic, no LLM cost)requires balance
nexus_playbookStrategic negotiation playbook over a previous analysis2-3 credits
nexus_compare_versionsComparison of two versions of a document (V1 ↔ V2)2 credits
nexus_conflict_checkConflict check (conflicts of interest) over the parties to a case file1 credit
nexus_inboxFirm-wide attention inbox (what needs action)requires balance
nexus_chatLegal chat with the case context1 credit
nexus_normativa_searchSemantic search over legislation in forcerequires balance + the legislation add-on for that jurisdiction
nexus_normativa_articuloLiteral text of a provision at a date (lex temporis)requires balance + legislation add-on
nexus_normativa_pyramidLegislative hierarchy: coverage by levelrequires balance
nexus_corpus_coverageInventory of the case-law corpusread-only
nexus_normativa_coverageLegislation corpus coverage (jurisdictions + freshness)read-only

Billing: the MCP server is not free. Every call requires an account with a credit balance > 0 (paid from minute one). Premium content is per jurisdiction add-on: case law and extra legislation are add-ons (Layer 3) — the subscription includes the legislation of one jurisdiction. Without the matching add-on, searches and lookups for that jurisdiction return 403 CONTENT_NOT_ENTITLED.

On jurisdictions and coverage. 63 jurisdiction codes are selectable (GB, ES, CO, SG, US with the US-CA/US-NY/US-DE/US-TX state overlays, MULTI for cross-border, and others). Selectable is not the same as grounded: what corpus actually backs a given jurisdiction — how many provisions, when our copy was last written, whether search is enabled for it — varies, and it is not something to infer from this list. Call nexus_normativa_coverage with your key: it answers for the jurisdictions your account has active, with the figures of each. A jurisdiction with no grounding corpus still analyses, but without literal citation against an official source.


Bring-your-own-engine (BYO) accounts — what you will see before registering one

Some accounts are provisioned so that legal generation runs only on the firm's own LLM engine, with no fallback chain. That is not a limitation: it is the guarantee that documents never reach a Nexus engine.

While no provider is registered and enabled, every generative tool (nexus_analyze, nexus_consulta, nexus_chat, nexus_draft, nexus_audit, nexus_adversarial, nexus_redteam, nexus_doctrina, nexus_consensus, nexus_monte_carlo, nexus_opinion, nexus_playbook, nexus_compare_versions, nexus_cross_border_compare, box_analyze) returns:

Error running nexus_analyze: BYO_PROVIDER_REQUIRED: This account requires its ownBYO LLM engine for AI-generative endpoints … This is a configuration state, not atransient failure — retrying returns the same 409. Register and enable a providervia POST /api/v1/llm-providers, then retry.

Retrying does not fix it, and no credits are charged for a run that stops there. Register the engine once (POST /api/v1/llm-providers, or header → AI models in the application) and run it again.

Reasoning engines and long analyses

If your engine is a reasoning model (DeepSeek V-pro, o1-style, Claude 5 with thinking), a heavy analysis can take longer than a synchronous HTTP request is allowed to last. The gateway closes the connection at 300 s — that ceiling is ours to live with, not to raise.

MEASURED on 2026-08-18: nexus_analyze in mode: "auditoria" over a ~5 KB contract, on a BYO DeepSeek engine, went past it and returned 502. The reason is not a fault in your engine: a reasoning model spends a large part of its completion budget thinking before it writes, and when it runs out mid-thought Nexus automatically re-issues the call with a wider budget — which costs more wall clock again.

Two ways round it, in order of preference:

  1. Use the asynchronous path for that combination: POST /api/v1/jobs with kind: "analyze" returns 202 and a jobId you poll (or a signed webhook). No wall clock. This is the right door for reasoning engines and for auditoria on large documents.
  2. Use mode: "standard" through the MCP tool, which is materially shorter.

Platform engines and mode: "standard" are unaffected: the synchronous tool is the right one there and stays the default.

Read-only tools work without an engine, because they generate nothing: nexus_jurisprudencia_search, verify_cita, nexus_verificacion, nexus_normativa_search / _articulo / _pyramid, nexus_corpus_coverage, nexus_normativa_coverage, cruce_normativa_jurisprudencia, plazos_calcular, nexus_conflict_check (deterministic name matching, no LLM) and nexus_inbox.


Environment variables

VariableDefaultDescription
NEXUS_API_KEY—Required. An nlk_... key with mcp scope.
NEXUS_BASE_URLhttps://legal.nexusquantum.legalFor test or self-hosted environments.
NEXUS_TIMEOUT_MS180000 (3 min)Timeout for long analyses.

Language. This package sends the same tool descriptions to every client — MCP publishes them once, in tools/list, and no tool here takes a language argument — so descriptions and rendered output are in English. Where a tool produces a legal deliverable, the language of that deliverable follows the jurisdiction and the account, not this README.

You can name the role and the party in your own terms. professionalRole takes lawyer, solicitor, barrister, prosecutor, notary, registrar, judge, in-house and individual. proceduralSide takes the term your forum actually uses: claimant (England and Wales, CPR r 2.3), pursuer (Scotland), plaintiff (Northern Ireland, which did not adopt the CPR), defendant, defender. The original Spanish wire values — abogado, demandante, auditoria — are unchanged and will keep working: this adds spellings, it does not retire any. Everything resolves to the same protocol value before it reaches the analysis, so the two are interchangeable in every call.

API version: this server speaks to the Nexus v1 API, the same one used by the TypeScript and Python SDKs. Read-only and verification tools call /api/v1/* routes; generative ones enter through the backend node routes with the same nlk_ key (mcp scope), the same billing and the same BYO enforcement.

This stdio package exposes 27 of the catalogue's capabilities. The remote connector (https://legal.nexusquantum.legal/api/mcp, nothing to install) also exposes the case-file, firm-memory, firm-governance, legal-analytics, account and billing capabilities. If you need any of those, use the remote connector or the v1 API directly.


Privacy and GDPR

  • Zero Retention on EU infrastructure. Documents you send via MCP are processed in RAM on Railway europe-west4-drams3a (Netherlands) and are NOT persisted to a database by default. The Nexus Zero Retention policy applies to 100% of MCP traffic exactly as it does to web traffic.
  • PII Gatekeeper. Before anything reaches the LLM, the backend anonymises national ID numbers, IBANs, phone numbers, emails and account numbers with reversible tokens ([DNI_1], [ACCOUNT_3]…). The MCP client only ever sees output already re-identified by our pipeline.
  • Audit. Every tool call is recorded in analysis_costs and api_usage_stats (with via_api_key_id) for billing and traceability.

Support


Licence

Apache-2.0 — see LICENSE and NOTICE.

Copyright 2026 Nexus Legal · Quantum Nexus Ventures.

來源:README.md,提交 a3b3a30

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v0.6.3最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分