> 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

Learn how to configure a remote connection to the LegisRatio MCP server.

## Connect to ChatGPT

Open the [official LegisRatio ChatGPT Plugin](https://chatgpt.com/plugins/plugin_asdk_app_6a6a218b6d8c81918cbc5424c5d77f7f) 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="https://1289103671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv19cwThmOMe5I3IM7yRk%2Fuploads%2F7vIVVDLTWiagpzzl7kv1%2Fimage.png?alt=media&amp;token=455a72b4-c1c2-4c39-bf82-4cf104bb591c" 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="https://1289103671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv19cwThmOMe5I3IM7yRk%2Fuploads%2FpwwqVjXd5i4O2b80AhgI%2FSCR-20251217-ldfu.png?alt=media&amp;token=b8f268bb-5e66-463c-8d16-c5bdbc3be0aa" 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="https://1289103671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv19cwThmOMe5I3IM7yRk%2Fuploads%2F0PJB9UDYyKySKptIgH1k%2Fimage.png?alt=media&amp;token=bf983add-5878-4818-9d99-049610f2bc84" alt=""><figcaption></figcaption></figure>
{% endstep %}

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

<figure><img src="https://1289103671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv19cwThmOMe5I3IM7yRk%2Fuploads%2FdVj6Pu7sZZi8oZYAJeGA%2Fimage.png?alt=media&amp;token=5a3fe1c7-a7cd-4c08-bc67-5186a372168f" 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="https://1289103671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv19cwThmOMe5I3IM7yRk%2Fuploads%2FnjWpZElncxwPkV3QWZy6%2FSCR-20251217-lcgv.png?alt=media&amp;token=3807770f-7228-42ef-8886-b8e12d1c1981" 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="https://1289103671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv19cwThmOMe5I3IM7yRk%2Fuploads%2FAvsOdT7vkNTrMakRWlXU%2FGemini_Generated_Image_jerexrjerexrjere~2.png?alt=media&amp;token=4277ec2b-af16-4164-89f0-64182d8c76a4" 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="https://1289103671-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv19cwThmOMe5I3IM7yRk%2Fuploads%2F7numo4hUqLdxKLcJQ0ls%2FSCR-20251217-lbmx.png?alt=media&amp;token=1a500a05-9266-462c-a672-59459b658775" 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.
