---
title: Connect an AI client to a self-hosted OpenLM Platform
description: "Let your users ask an AI assistant about the license data in a self-hosted OpenLM Platform: Claude Desktop, a Claude custom connector, or the OpenLM chat client with a model in your network or your own API key."
product: OpenLM Platform
---

To let your users ask an AI assistant about the license data in your self-hosted OpenLM Platform, point the AI client at `https://<install-host>/mcp`, where `<install-host>` is the host name of your OpenLM Platform installation. Every client on this page uses this address, and every user signs in with their OpenLM account on your installation's sign-in page.

Add the connector to your OpenLM Platform first. See [Add the OpenLM MCP Connector](https://www.openlm.com/documentation/cloud/mcp-reporting-server/on-premises/install).

## Choose how to connect

Choose the option by where your installation can be reached from and by where the AI model is allowed to run. The following table compares the options:

| Option | Use it when | Data sent outside your network |
|---|---|---|
| [Claude Desktop with a local bridge](#connect-claude-desktop-on-a-private-network) | Your users have Claude, and your installation is on a private network. Each user's computer needs Node.js. | Yes, to Anthropic |
| [Claude custom connector](#add-a-custom-connector-in-claude) | Your users have Claude, and your installation is reachable from the internet. It works in Claude on the web, on the desktop, and on mobile. | Yes, to Anthropic |
| [OpenLM chat client with a model in your network](#use-a-model-in-your-network-or-your-own-api-key) | All data must stay in your network. | No |
| [OpenLM chat client with your own API key](#use-a-model-in-your-network-or-your-own-api-key) | You use an Anthropic API key instead of Claude seats. | Yes, to Anthropic |

:::warning[Cloud AI models receive license and user data]
With Claude, or with your own Anthropic API key, Anthropic receives the questions and the license and user data in the tool results. Confirm that your organization accepts this before your users connect. With a model in your network, nothing leaves your network. For what stays in your network, see [Where your data goes](https://www.openlm.com/documentation/cloud/mcp-reporting-server/on-premises/index#where-your-data-goes).
:::

## Connect Claude Desktop on a private network

Claude's cloud can't reach an installation on a private network. Instead, Claude Desktop runs a small local bridge, `mcp-remote`, on each user's computer, and the bridge connects to your installation. Each computer needs Node.js 18 or higher.

1. Install Node.js 18 or higher, if it isn't installed already. Node.js includes the `npx` command.
1. In Claude Desktop, select **Settings**, then **Developer**, then **Edit Config**. Claude Desktop shows its configuration file, `claude_desktop_config.json`, and creates it if it doesn't exist. Open the file in a text editor.

   If **Edit Config** isn't available, open the file at its usual location. On Windows, the file can also be under `%LOCALAPPDATA%`.

   

   ```text
   ~/Library/Application Support/Claude/claude_desktop_config.json
   ```

   

   ```text
   %APPDATA%\Claude\claude_desktop_config.json
   ```

   

1. Add an `openlm` entry under `mcpServers`, with your installation's host name. If the file already has entries under `mcpServers`, keep them and add only the `openlm` entry.

   ```json
   {
     "mcpServers": {
       "openlm": {
         "command": "npx",
         "args": ["-y", "mcp-remote@latest", "https://openlm.example.com/mcp", "9878"]
       }
     }
   }
   ```

1. Save the file, then quit Claude Desktop completely and start it again. On Windows, closing the window isn't enough: quit from the Claude icon in the notification area.

   A browser tab opens on your installation's OpenLM sign-in page.
1. Sign in with your OpenLM account.
1. In Claude Desktop, select **Settings**, then **Developer**, and check that `openlm` shows as running.

The number after the URL, `9878`, is the local port that the sign-in returns to. Each MCP server in the file that runs through `mcp-remote` needs its own free port.

If Windows can't find `npx`, start it through `cmd` instead:

```json
"command": "cmd",
"args": ["/c", "npx", "-y", "mcp-remote@latest", "https://openlm.example.com/mcp", "9878"]
```

Claude Desktop writes the log of this connection to `mcp-server-openlm.log` in its logs folder.

## Add a custom connector in Claude

If your installation is reachable from the internet, you can add it to Claude as a custom connector instead. A custom connector works in Claude on the web, on the desktop, and on mobile, with nothing to install on your users' computers.

1. Open Claude Desktop, or open [claude.ai](https://claude.ai) in your browser, and sign in to your account.
1. In the sidebar, select **Customize**, then select the **Connectors** tab.
1. Select **Add**, then select **Add custom connector**.
1. Enter a name for the connector, for example `OpenLM`, and enter `https://<install-host>/mcp` in **MCP server URL**.
1. Select **Continue**.
1. If Claude asks which OAuth client to use, select **Register automatically**.

   The OpenLM MCP Connector registers each AI client automatically, so you don't need a client ID or a client secret.
1. Complete the remaining steps and select **Add**.
1. When your installation's OpenLM sign-in page opens, sign in with your OpenLM account.

On a Team or Enterprise plan, an organization Owner adds the connector first, and members connect to it after that. See [Add the connector for a Team or Enterprise organization](https://www.openlm.com/documentation/cloud/mcp-reporting-server/client-setup-guide/claude#add-the-connector-for-a-team-or-enterprise-organization), and use your installation's URL.

## Use a model in your network or your own API key

To keep every question and answer in your network, or to use your own Anthropic API key instead of Claude seats, use the OpenLM chat client. It's a small chat page that signs in to `https://<install-host>/mcp` with the user's OpenLM account, as Claude Desktop does. The chat client works with the following AI models:

- **A model in your network**: a model that supports tool calling, with a context of at least 16,384 tokens, for example Qwen2.5 on Ollama. Nothing leaves your network.
- **Your own Anthropic API key**: Claude through the Anthropic API. The questions and the tool results go to Anthropic.

The OpenLM chat client is available from OpenLM on request. Contact OpenLM to get it, with its settings for your installation.

## Test the connection

Sign in as an OpenLM user of your installation, and ask these questions in order. The first two answer in a few seconds, so they also suit a demo. The following table lists each question and what a correct answer shows:

| Question | A correct answer shows that |
|---|---|
| `Give me a summary of license usage.` | Sign-in, the MCP server, the GraphQL API, and the reporting database all work. |
| `Which license servers are up or down?` | License server status data is current. |
| `Who are the top 5 users by usage hours last month?` | Date filters and grouping work. |
| `Give me a summary of license denials.` | Denial data reaches the reporting database. |
| `Which named-user licenses are assigned, and to whom?` | Allocation data is present. |
| `What tables or schema do you use?` | The safeguard works: the answer says that these details are internal to OpenLM. |

An answer is only as current as the last run of the reporting ETL jobs, so a license checked out a minute ago might not show yet. If one area, such as allocations, returns nothing while OpenLM Platform shows data for it, check the reporting ETL jobs for that area, not the connector.

Each question shows in the MCP server log as `POST /mcp`. To read the logs, see [Read the logs](https://www.openlm.com/documentation/cloud/mcp-reporting-server/on-premises/operations#read-the-logs). For more questions to ask, see [License FinOps prompt library](https://www.openlm.com/documentation/cloud/mcp-reporting-server/prompt-library).
