> For the complete documentation index, see [llms.txt](https://legisratio.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legisratio.gitbook.io/docs/legisratio-mcp-server/installation.md).

# Installation

## Connect to ChatGPT

Open the [official LegisRatio ChatGPT App](https://chatgpt.com/apps/legisratio/asdk_app_694970d3cbf4819197e9878f5ae7953a) and add it to your ChatGPT workspace.

{% hint style="success" %}
Create an account at [apps.legisratio.com](https://apps.legisratio.com/) to get a Plus subscription.
{% endhint %}

## Connect to Claude Code

With [Claude Code installed](https://code.claude.com/docs/en/quickstart), follow the official [Remote MCP installation guide](https://code.claude.com/docs/en/mcp#option-1-add-a-remote-http-server). Replace name and url with:

```
claude mcp add --transport http legisratio https://mcp.legisratio.com/mcp
```

Follow authentication in the browser and login with your Plus subscription.

## Connect to Mistral LeChat

Open the website [Mistral LeChat](https://chat.mistral.ai/chat) and Login or Signup.

{% stepper %}
{% step %}
**Access the "Connectors" section and click on "Add connector".**

<figure><img src="/files/DW5m4aiGjaPiSYYSAYaw" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Select "Custom MCP Connector" tab and complete the required fields in the form, then click "Create".**

* Connector name: **LegisRatio**
* Server Connector: <kbd>**<https://mcp.legisratio.com/mcp>**</kbd>

<figure><img src="/files/iIlHDxRhHkhZQ5bYauuU" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Create an account at [apps.legisratio.com](https://apps.legisratio.com/) to get a Plus subscription.
{% endhint %}
{% endstep %}

{% step %}
**Complete the OAuth by connecting your Plus subscription.**

<figure><img src="/files/fzZZyUliTjUEnQewoT86" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Confirm the Server connection.**

<figure><img src="/files/4jsOQnrBzm5uCLfmWftN" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Connect to Claude Desktop

### Installation Prerequisites

To correctly install the MCP Server you'll need: *Node.js*, *npm* and *python*.

{% tabs %}
{% tab title="Windows (PowerShell)" %}

```powershell
# Option 1: Install Node.js using winget
winget install OpenJS.NodeJS

# Option 2: Install Node.js using Chocolatey
choco install nodejs

# Verify installations
node -v
npm -v
npx -v

# Find npm location
Get-Command npm | Select-Object -ExpandProperty Source
Get-Command npx | Select-Object -ExpandProperty Source

# Update npm to latest version
npm install -g npm@latest

# Python installation
winget install Python.Python.3.12
# or
choco install python

# Verify Python installation
python --version
```

{% endtab %}

{% tab title="macOS (Terminal)" %}

```powershell
# Install Node.js and npm using Homebrew
brew update
brew install node

# Verify installations
node -v
npm -v
npx -v

# Find npm location
which npm
which npx

# Check npm global installation directory
npm config get prefix

# Update npm to latest version
npm install -g npm@latest

# Python installation
brew install python

# Verify Python installation
python3 --version
```

{% endtab %}

{% tab title="Linux (Ubuntu/Debian)" %}

```powershell
# Install Node.js and npm
sudo apt update
sudo apt install nodejs npm

# For more recent Node.js versions
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs

# Verify installations
node -v
npm -v
npx -v

# Find npm location
which npm
which npx

# Check npm global installation directory
npm config get prefix

# Update npm to latest version
sudo npm install -g npm@latest

# Python installation
sudo apt install python3 python3-pip

# Verify Python installation
python3 --version
```

{% endtab %}
{% endtabs %}

### Server Connection

Download Claude Desktop directly from the [Claude website](https://www.claude.com/download).

After the installation and login, is necessary to update the configuration file (`claude_desktop_config.json`):

{% stepper %}
{% step %}
**Access the "Developer" section in the settings.**

<figure><picture><source srcset="/files/mtmoVLpkKdlcD8SqHhY2" media="(prefers-color-scheme: dark)"><img src="/files/cZC0OXDqeVDYbZmil0eF" alt=""></picture><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Click on the "Edit Config" to open the configuration file and update it:**

```json
{
    "mcpServers": {
        "legisratio": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.legisratio.com/mcp"
            ]
        }
    }
}
```

{% hint style="success" %}
Create an account at [apps.legisratio.com](https://apps.legisratio.com/) to get a Plus subscription.
{% endhint %}
{% endstep %}

{% step %}
**Complete the OAuth by connecting your Plus subscription.**&#x20;

<figure><img src="/files/wtyxKZr0VSqBzH76L1YI" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**The "Developer" section will show the legisratio server running.**

<figure><picture><source srcset="/files/75DB7fD0TKBUNzU6tQET" media="(prefers-color-scheme: dark)"><img src="/files/oz33zcGw5txXegPc2l60" alt=""></picture><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

This configuration tells Claude to use the mcp-remote package to connect to the LegisRatio MCP server. Once configured, Claude will have access to all the legal research tools provided by the LegisRatio MCP server.
