About Relex Legal
Relex Legal provides a persistent, permission-controlled legal workspace for agents and legal teams, with redacted matter context and saved work products. Its hosted service also supports legal research, drafting workflows and discovery of verified professionals, while keeping identity fields and original files from the assistant.
Key features
- 01Read redacted matter context
- 02Save and revise work products
- 03Inspect sources and matter ontology
- 04Search cached official legal text
- 05Find verified legal professionals
Use cases
- 01Continue legal work across authorized agents
- 02Review redacted matter sources
- 03Save a draft to a matter record
- 04Find a verified professional profile
MCP support
The Relex backend exposes a remote Streamable HTTP MCP endpoint with thirteen tools for matters, sources, work products, professionals and API operations. Access uses OAuth 2.1 with PKCE, with static API keys available as a CI or headless fallback.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://relex.legal/api/mcpclaude mcp add --transport http legal-relex-relex https://relex.legal/api/mcp{"mcpServers":{"legal-relex-relex":{"type":"http","url":"https://relex.legal/api/mcp"}}}Open in Cursor{"servers":{"legal-relex-relex":{"type":"http","url":"https://relex.legal/api/mcp"}}}Open in VS Code{"mcpServers":{"legal-relex-relex":{"type":"http","url":"https://relex.legal/api/mcp"}}}{"mcpServers":{"legal-relex-relex":{"serverUrl":"https://relex.legal/api/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMERelex × MCP (generic)
Legal Workspace — One source of truth for any Agent — confidential by design
Keep legal knowledge, matter context and saved progress in Relex, independently of the assistant you use. Authorize another compatible agent to continue from the same stored context, without rebuilding the background in another chat.
Portable context, with your permission
- Create or open the matter in Relex and add information through its protected intake and document workflows.
- Connect a supported client to
https://relex.legal/api/mcpand authorize your own Relex account. Installing a package does not authorize private data. - Ask the agent to read the permitted matter context before working and save its conclusions when finished. A second authorized client can then use that continuing record.
Portability covers information saved in Relex, not automatic import of private chat histories or a model's internal memory. Client-side identity encryption, de-identification and MCP access controls protect the supported workflows; de-identified legal facts may still be sensitive. Review what you authorize.
Workspace, SDK and Marketplace
Use Legal Workspace for persistent legal context; the Legal SDK for building your firm's or legal department's own platform; and the Legal Marketplace to discover published professional profiles or make an AI-first law firm discoverable across specialties.
An agent may help find a professional and prepare a reference-only request. The user must review and approve sharing in Relex. Discovery is not engagement, a completed conflict check, payment or a guarantee of professional availability.
What the workspace covers
Each area is a search tag on the MCP server; see
how-relex-works.md §0 and §7.
| Area | Over MCP |
|---|---|
| Matters and portable context | Matter context, redacted sources, saved work products, steering conclusions |
| Ontology | Matter graph read and evidence-backed corrections; firm ontology |
| Know-how | Playbooks, clause library (search, add, update), labelled templates (create, list by label, update), knowledge sources |
| Research | Cached official legal text |
| Data collection | Which channels feed the workspace (status only) |
| Agreements | Drafts, review comments, enforceability advisory, agreements from templates |
| Intake | Evaluation agent, guest-link redemption |
| E-signature | Prepare for signature (the user confirms the send in Relex); signature status by signer role |
| Invoices | Create and read (the user confirms the send in Relex) |
| Payments | Payment status and online-payment readiness (read-only) |
Deletions, sends to people outside Relex, billing and payment writes, uploads and connecting channels happen in the Relex app. Relex output is legal information, not legal advice; a qualified lawyer reviews it before anyone relies on it.
Client support depends on the host product, plan and administrator settings. Gemini CLI support does not imply support in every Gemini web experience. Harvey BYOMCP is a customer-admin connection path, not a claim of Harvey Connector Library listing or approval. Check the current connector guides and portable-context guide.
MCP endpoint (the whole product surface)
https://relex.legal/api/mcp
Transport: Streamable HTTP (MCP). Auth: OAuth 2.1 + PKCE (browser sign-in with Google/Apple — no key to paste). Static API keys work as a CI/headless fallback.
Thirteen tools:
| Tool | Purpose |
|---|---|
list_matters | List up to 20 authorized matter references (caseId + deep link; no names or client identity) (read-only) |
read_matter_context | Read an authorized matter's saved, redacted context (read-only) |
diagnose_matter_sources | Per-source readiness, failure code and repair action (read-only) |
read_matter_source | Read one source's full redacted text in pages (read-only) |
save_matter_work_product | Save a draft or a new revision of one (revision-checked write) |
correct_matter_ontology | Apply typed ontology operations with evidence references (revision-checked write) |
conclude_matter_session | Conclude an open steering session; conclusions are saved to the matter thread (write) |
find_legal_professionals | Find published, professionally verified Marketplace profiles (read-only) |
read_legal_professional | Read a published profile and its request availability (read-only) |
prepare_professional_request | Prepare a request to a professional; returns an approval link, sends and charges nothing |
search | Discover API endpoints from the OpenAPI surface (read-only) |
read_api | Read one validated GET endpoint with the user's auth + PII guard (read-only) |
execute | Create, update or delete through one validated endpoint (POST/PUT/PATCH/DELETE) with the user's auth + PII guard |
The MCP handler lives in the Relex backend (/v1/mcp). This repo is
configuration, skills, and install docs — not a separate server to host.
Quick connect (any MCP client)
JSON config (Cursor, Windsurf, Claude Desktop, etc.)
{
"mcpServers": {
"relex": {
"type": "http",
"url": "https://relex.legal/api/mcp"
}
}
}
Some clients use url / httpUrl instead of type+url. Same endpoint.
CLI examples
# Claude Code (HTTP + OAuth)
claude mcp add --transport http relex https://relex.legal/api/mcp
# Gemini CLI
gemini mcp add --transport http relex https://relex.legal/api/mcp
# API-key fallback (CI / headless)
claude mcp add --transport http relex https://relex.legal/api/mcp \
--header "Authorization: Bearer rlx_..."
After connect, say: "Set up my practice workflow with Relex."
What each product calls this
Same MCP URL; different UI labels:
| Product | Official UI name |
|---|---|
| Claude | Custom connector |
| ChatGPT | App / custom MCP connector (Developer mode) |
| Grok.com | Connector → Custom |
| Grok Build | MCP server / plugin |
| Gemini CLI | MCP server |
| Gemini Enterprise | Custom MCP Server |
| Cursor / generic | MCP server |
Always name it Relex, URL https://relex.legal/api/mcp.
Personal vs Team (applies across hosts)
| Plan type | Who installs | Who signs in |
|---|---|---|
| Personal | You add the connector / app / MCP server | You Connect + OAuth |
| Team / Business / Enterprise | Owner or admin adds once | Each member finds Relex listed and Connects their Relex account |
Members on Team plans usually cannot add custom entries themselves.
OAuth (generic MCP)
Hosts that support MCP OAuth: unauthenticated call → 401 +
WWW-Authenticate: resource_metadata=… → browser Google/Apple on relex.legal →
bearer token on later search/read_api/execute. Full walkthrough:
docs/oauth.md and https://relex.legal/docs/connectors/mcp
Full install flows: docs/install.md.
Layout
relex-mcp/
├── plugin/
│ ├── .mcp.json Remote MCP connector URL
│ ├── skills/ PII-safe workflow skills (agent-agnostic)
│ ├── agents/ Onboarding guide
│ ├── commands/ /relex-setup, /relex-connect
│ └── references/
├── docs/
│ ├── install.md All clients + personal vs team
│ ├── connect-generic.md Cursor, Windsurf, custom hosts
│ └── positioning.md
├── SECURITY.md
└── README.md
What the agent can do
Act as senior counsel + steering layer over Relex's execution harness: start cases, steer drafting sessions, audit the case ontology, ground citations, run intake → e-sign → invoice — while never receiving names, national IDs, or document plaintext. Those steps deep-link into the browser.
Docs on relex.legal
License
AGPL-3.0-or-later — see LICENSE.
How data moves through Relex
| Step | Where |
|---|---|
| Files are uploaded to a matter | Case page in the Relex app (https://relex.legal/dashboard/cases/{caseId}, Attach) |
| The assistant reads redacted sources | read_matter_context, read_matter_source (parties as [PARTY_NAME_n] labels) |
| The assistant saves its work | save_matter_work_product: markdown with label tokens, versioned in the matter |
| The user exports the finished document | Relex app: Word, PDF, Google Drive, signing, email. Labels become the parties' real details in the user's browser, after the user's PII password when parties are sealed |
Identity fields and original files never reach the assistant. The full guide,
including ontology operations, agents and every endpoint area, is
plugin/references/how-relex-works.md.
MCP tools (remote server)
The hosted connector at https://relex.legal/api/mcp exposes thirteen tools:
list_matters, read_matter_context, read_matter_source, diagnose_matter_sources,
save_matter_work_product, correct_matter_ontology, conclude_matter_session,
find_legal_professionals, read_legal_professional, prepare_professional_request,
search, read_api, and execute. Auth is OAuth 2.1 + PKCE. The default connector scopes are
relex.cases.read relex.cases.write relex.draft; these are the scopes the 401
WWW-Authenticate challenge requests. relex.agent is an optional fourth scope
for agent features; the challenge omits it by design, and the OAuth metadata
(scopes_supported) and the MCP server card list all four.
Generic remote MCP clients: point Streamable HTTP at https://relex.legal/api/mcp and complete browser OAuth.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.