Skip to main content

Connect an AI client to a self-hosted 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.

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:

OptionUse it whenData sent outside your network
Claude Desktop with a local bridgeYour users have Claude, and your installation is on a private network. Each user's computer needs Node.js.Yes, to Anthropic
Claude custom connectorYour 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 networkAll data must stay in your network.No
OpenLM chat client with your own API keyYou use an Anthropic API key instead of Claude seats.Yes, to Anthropic
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.

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.

  2. 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%.

    ~/Library/Application Support/Claude/claude_desktop_config.json
  3. 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.

    {
    "mcpServers": {
    "openlm": {
    "command": "npx",
    "args": ["-y", "mcp-remote@latest", "https://openlm.example.com/mcp", "9878"]
    }
    }
    }
  4. 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.

  5. Sign in with your OpenLM account.

  6. 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:

"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 in your browser, and sign in to your account.

  2. In the sidebar, select Customize, then select the Connectors tab.

  3. Select Add, then select Add custom connector.

  4. Enter a name for the connector, for example OpenLM, and enter https://<install-host>/mcp in MCP server URL.

  5. Select Continue.

  6. 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.

  7. Complete the remaining steps and select Add.

  8. 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, 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:

QuestionA 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. For more questions to ask, see License FinOps prompt library.

The documentation team might draft this page using a large language model. A technical writer reviews every page and verifies it against the product before publishing it. A human makes the final decision.