---
title: OpenLM MCP Connector for a self-hosted OpenLM Platform
description: "If you run a self-hosted OpenLM Platform, add the OpenLM MCP Connector to it so that users can ask an AI assistant about license data while the data stays in your network: how it works, where data goes, and its safeguards."
product: OpenLM Platform
---

If you run a self-hosted OpenLM Platform, your users can now ask an AI assistant about their license data too. Add the OpenLM MCP Connector to the cluster that runs your OpenLM Platform. The connector runs as two services next to your OpenLM Platform, signs users in with its OpenLM Identity, and reads only your reporting database. Your license data, sign-ins, and database stay in your network. The only part that can sit outside it is the AI model, and only if you choose a model that runs in a provider's cloud.

On a self-hosted OpenLM Platform, the connector runs the same code as the OpenLM MCP Connector for cloud tenants, so your users get the same tools and safeguards. For the tools, see [Tools and capabilities reference](https://www.openlm.com/documentation/cloud/tools-reference).

## What you need

To add the connector to a self-hosted OpenLM Platform, you need the following:

- OpenLM Platform installed on Kubernetes or OpenShift with the OpenLM Helm charts.
- A reporting database on SQL Server or PostgreSQL.
- An HTTPS host name for the installation, for example `openlm.example.com`. Users reach the connector on this same host name.

For the full list, see [Add the OpenLM MCP Connector](https://www.openlm.com/documentation/cloud/mcp-reporting-server/install#before-you-begin).

## How it works

The connector adds one entry point to your installation: the MCP server. The MCP server signs users in and turns each request from the AI model into read-only queries through the GraphQL API. Only the GraphQL API connects to your reporting database, and nothing outside the cluster can reach the GraphQL API.

```mermaid
flowchart LR
  model["AI model<br/>in your network or<br/>in a provider's cloud"]
  subgraph net["Your network"]
    client["AI client<br/>such as Claude Desktop"]
    db[("Reporting database")]
    subgraph cluster["Your OpenLM Platform cluster"]
      mcp["MCP server<br/>reportingmcpserver"]
      api["GraphQL API<br/>reportingmcpapi"]
      identity["OpenLM Identity"]
      redis["Redis"]
    end
  end
  client -- "question and tool list" --> model
  client -- "https://install-host/mcp" --> mcp
  mcp --> identity
  mcp --> redis
  mcp --> api
  api --> identity
  api -- "read-only queries" --> db
```

The connector adds two services to your cluster. The following table lists what each part does and what it connects to:

| Part | What it does | Connects to |
|---|---|---|
| AI client, such as Claude Desktop | Sends the user's question to the AI model, then runs the tools that the model picks | The MCP server and the AI model |
| MCP server, from the `reportingmcpserver` chart | Signs users in, offers the read-only reporting tools, and applies the safeguards | OpenLM Identity, the GraphQL API, and Redis |
| GraphQL API, from the `reportingmcpapi` chart | Checks each user's token and runs read-only queries | The reporting database and OpenLM Identity |

The connector also uses three parts that your installation already has: OpenLM Identity for users, passwords, and roles, Redis to keep users signed in when the MCP server restarts, and the reporting database. Redis is optional.

When a user asks a question, the following happens:

1. The first time, the AI client opens `https://<install-host>/mcp`, and your installation's OpenLM sign-in page opens in the browser. The user signs in with their OpenLM account.
1. The user asks a question. The client sends it to the AI model, with the list of OpenLM tools.
1. The model picks a tool and its arguments, for example a summary of license usage.
1. The client calls the MCP server. The MCP server checks the user's token and the arguments, then calls the GraphQL API with the user's token.
1. The GraphQL API checks the token with OpenLM Identity and runs a read-only query on the reporting database.
1. The MCP server removes sensitive values from the result, limits its size, and returns it to the client.
1. The model writes the answer, and the client shows it.

### Answers come from reporting data

The connector reads only reporting data: the history that the reporting ETL jobs process into the reporting database. It doesn't read the operational databases that hold the live state of license servers, users, and sessions. An answer is as current as the last ETL run, so a license checked out a minute ago might not show yet.

## Where your data goes

What leaves your network depends only on the AI model that your users connect. The connector stores no license data. The following table lists what each part holds:

| Where | What it holds | Leaves your network |
|---|---|---|
| Reporting database | License usage, denials, allocations, and users, read with a read-only login | No |
| GraphQL API | Nothing stored. Query results stay in memory for a short time. | No |
| MCP server | Sign-in sessions, in Redis or in memory. If usage logging is set up, a log of tool calls in your installation's MongoDB, with each entry deleted after 90 days. | No |
| OpenLM Identity | Your installation's own sign-ins and roles | No |
| AI model in your network | The questions, and the tool results that the model reads | No |
| AI model in a provider's cloud, such as Claude or ChatGPT | The questions, and the tool results that the model reads, which include license and user data | Yes, to that provider |

:::warning[Cloud AI models receive license and user data]
Before your users connect an AI model that runs in a provider's cloud, confirm that your organization accepts that the provider receives their questions and the license and user data in the tool results. If all data must stay in your network, use an AI model that runs in your network. See [Use a model in your network or your own API key](https://www.openlm.com/documentation/cloud/mcp-reporting-server/connect-clients#use-a-model-in-your-network-or-your-own-api-key).
:::

## Built-in safeguards

On a self-hosted OpenLM Platform, the connector has the same safeguards as on cloud tenants:

- **Sign-in required**: every call needs an OpenLM sign-in. The GraphQL API checks each token's signature, audience, and scope against your installation's OpenLM Identity.
- **Read-only tools**: every data tool only reads. The administration tools are turned off.
- **No internals in answers**: the tools instruct the AI model not to describe OpenLM's tables, schemas, queries, or internal design.
- **Redaction**: tokens, secrets, internal host names, and connection details are removed from every tool result.
- **Input limits**: row limits, text lengths, and date ranges are checked before a query runs.
- **Response size limit**: large results are shortened before they reach the AI model.
- **Safe errors**: a failure returns a general message, never a stack trace, a query, or an internal address.
- **Startup check**: the services refuse to start if a setting points at OpenLM's cloud, the database type isn't SQL Server or PostgreSQL, or the OpenLM Identity address is missing.
- **No outside access to the GraphQL API**: nothing routes to the GraphQL API from outside the cluster.

:::caution[All signed-in users see all reporting data]
Permissions per role aren't available yet. Every user who can sign in to your OpenLM Platform installation can ask about all of its reporting data, whatever their OpenLM role.
:::

## Next steps

To set up the connector, follow these pages in order:

1. [Add the OpenLM MCP Connector](https://www.openlm.com/documentation/cloud/mcp-reporting-server/install) to your OpenLM Platform and verify it.
1. [Connect an AI client](https://www.openlm.com/documentation/cloud/mcp-reporting-server/connect-clients) and test the connection.
1. [Manage the connector](https://www.openlm.com/documentation/cloud/mcp-reporting-server/operations): upgrades, settings, logs, and the settings reference.

If something doesn't work, see [Troubleshooting](https://www.openlm.com/documentation/cloud/mcp-reporting-server/troubleshooting).
