# MCP Quickstart - Relex

> Get the Relex MCP server running in under 5 minutes. Installation, configuration for Claude Desktop and Cursor, and usage examples.

[Home](/) / [Docs](/docs/a2a) / MCP Server

### Connectors

- [All agents](/docs/connectors)
- [Claude](/docs/connectors/claude)
- [GPT](/docs/connectors/gpt)
- [Grok](/docs/connectors/grok)
- [Gemini](/docs/connectors/gemini)

### MCP Server

- [Overview](/docs/mcp/)
- [Quickstart](/docs/mcp/quickstart/)

### A2A Protocol

- [Overview](/docs/a2a)

#### On this page

- [Claude Code — install the plugin](#clause-2)
- [Claude desktop / claude.ai — add a connector](#clause-3)
- [Other agents (one-liners)](#clause-4)
- [API-key fallback (CI / headless)](#clause-5)
- [The two tools](#clause-6)
- [What stays in Relex (not the agent)](#clause-7)
- [Troubleshooting](#clause-8)

# MCP Server Quickstart

Connect your reasoning agent to Relex in a couple of minutes. Once connected, the
agent reads your cases, reasons, and drafts through two tools (`search` and
`execute`) — while your clients' personal data stays encrypted in your browser.

**MCP URL (all agents):**

```
https://relex.legal/api/mcp
```

Pick your host for a full walkthrough (including Team vs personal):

- [Claude](/docs/connectors/claude) · [GPT](/docs/connectors/gpt) ·
[Grok](/docs/connectors/grok) · [Gemini](/docs/connectors/gemini) ·
[Generic MCP](/docs/connectors/mcp) · [All connectors](/docs/connectors)

## Claude Code — install the plugin

In Claude Code, add the GitHub marketplace and install the plugin. You run these
yourself — Claude can't install itself:

```
/plugin marketplace add relexyou/relex-claude
/plugin install relex-legal@relex
```

Reload, then tell Claude:

```
Set up my practice workflow with Relex.
```

On the first tool call your browser opens to sign in to Relex (Google or Apple)
and approve — **no key to paste**. From there the plugin guides Claude through
your setup; you add your know-how, parties, and documents in Relex yourself.

## Claude desktop / claude.ai — add a connector

How you add it depends on your plan — and **on every plan you finish by clicking**
**Connect**:

- **Pro / Max** — **Customize → Connectors → Add custom connector**. Name it
Relex, paste `https://relex.legal/api/mcp` (leave the OAuth fields blank) and
save, then click **Connect** and sign in.
- **Team / Enterprise** — members can't add connectors. An **owner or admin** adds
the custom connector once in the **organisation's settings → Connectors**. Each
member then opens **Customize → Connectors**, finds Relex under **available**
**connectors**, and clicks **Connect** to sign in.

Once connected, this connector also works in the Claude mobile app.

## Other agents (one-liners)

```bash
# Gemini CLI
gemini mcp add --transport http relex https://relex.legal/api/mcp

# Generic / Cursor-style JSON
# { "mcpServers": { "relex": { "url": "https://relex.legal/api/mcp" } } }

# ChatGPT: Settings → Apps → Add custom connector → same URL
# Grok (xAI): remote MCP tool server_url = https://relex.legal/api/mcp
```

On Team-style workspaces for GPT, Gemini Enterprise, and similar products, the
**admin installs** and **members only Connect** — same rule as Claude Team.

## API-key fallback (CI / headless)

In Relex, **Settings → API Keys → Create key**, then:

```bash
claude mcp add --transport http relex https://relex.legal/api/mcp \
  --header "Authorization: Bearer rlx_..."
```

## The two tools

Both take plain arguments. `path` is relative to `/v1`.

**Discover endpoints**

```
search({ query: "cases" })
→ [{ method: "GET", path: "/cases", summary: "...", tags: ["Cases"], params: { body: { properties: { caseTier: { enum: [1,2,3], ... } } } } }, ...]
```

`params` tells the agent each call's required/optional fields, enums and defaults
— so it never asks you for a value the platform supplies.

**Call an endpoint**

execute({ method: "GET", path: "/onboarding/status" }) → { status: 200, body: { ...anonymized progress... } } // Open a case — the agent never sets the tier; Relex's eval agent decides it. execute({ method: "POST", path: "/cases", body: {} }) → { status: 201, body: { caseId: "..." } } execute({ method: "POST", path: "/agent", body: { type: "eval\_req", caseId: "...", payload: { prompt: "" } } }) → { status: 200, body: { message: "...", response: { tier, payRequired, ... }, done: true } }

## What stays in Relex (not the agent)

Adding know-how, creating parties, uploading documents, paying, and exporting
with real details all happen in **Relex, in your browser** — that's where
personal data is extracted, encrypted with your password, and stored encrypted.
If the agent tries to move plaintext PII, the server refuses and returns a deep
link so you do it there.

## Troubleshooting

- **Asked to sign in again** — the connection's credential expired or was revoked
in **Settings → API Keys**; approve the browser sign-in again.
- **A call comes back refused with a link** — that endpoint would move personal
data; open the link and do that step in Relex.
- **"path must not contain percent-encoding"** — use plain path segments, e.g.
`/cases/abc123`, not an encoded path.

---

_[View this page on relex.legal](https://relex.legal/docs/mcp/quickstart)_
