Skip to main content

Add the OpenLM MCP Connector to a self-hosted OpenLM Platform

To add the OpenLM MCP Connector to a self-hosted OpenLM Platform, install two Helm charts in the namespace of your OpenLM Platform installation: reportingmcpapi, the GraphQL API, and reportingmcpserver, the MCP server. Before you install them, you create one settings ConfigMap for each chart, which points it at your reporting database and at your installation's OpenLM Identity. The charts create everything else.

For how the parts fit together, see OpenLM MCP Connector for a self-hosted OpenLM Platform.

Before you begin​

Collect these values and confirm these prerequisites. You use each one in a later step.

  • OpenLM Platform installed on Kubernetes or OpenShift with the OpenLM Helm charts. Both charts create their resources in the namespace openlm, and the commands on this page use it. For another namespace, set deployment.namespace and service.namespace in both values files, ingress.namespace in reportingmcpserver-values.yaml, and namespace in the settings manifest, then use that namespace in every command.
  • An HTTPS host name for the installation, for example openlm.example.com. The connector is served on this same host name, because OpenLM Identity returns users to https://<install-host>/api/mcp-server/signin-oidc after they sign in.
  • The MCP client and scopes in your installation's OpenLM Identity: the client openlm.mcp.server.bff with the redirect address https://<install-host>/api/mcp-server/signin-oidc, and the scopes openlm.mcp.server.scope and openlm.reporting.mcp.graphql.scope. Step 2 of Verify the installation checks the scopes. If they're missing, your installation's OpenLM Identity needs the seed with the MCPServer and ReportingMCPGraphQLApi components.
  • The ingress class of your installation, for example nginx or traefik, and the name of its TLS secret, usually openlm-lb-cert.
  • The engine of your reporting database, SQL Server or PostgreSQL, and the name of the reporting database. Use the reporting database, not the operational database openlm_operational_db.
  • The reporting database secret in the namespace: openlm-generic-reporting-mssql-credentials for SQL Server, or openlm-generic-reporting-pgdb-credentials for PostgreSQL, with the keys HOST_NAME, PORT, USERNAME, and PASSWORD. A read-only login is enough, because the connector creates nothing in the database.
  • Optional: the Redis service of your installation, openlm-redis on port 6379. Without Redis, users sign in again after each restart of the MCP server.
  • kubectl and Helm 3, with the rights to create Deployments, Services, ConfigMaps, and Ingresses in the namespace.
  • Access from the cluster to https://openlm-helm.github.io/helmcharts and to public.ecr.aws. Without it, see Install without internet access.
  • A computer on your network with curl, to verify the installation.

Both charts also load configuration that your installation already has: the ConfigMaps openlm-config-generic, openlm-logging-config-generic, and openlm-telemetry-config-generic, and the secrets openlm-generic-mongo-db-credentials and openlm-generic-redis-connection-credentials.

To read the values from the cluster, run these commands:

kubectl -n openlm get configmap openlm-config-generic -o jsonpath='{.data.DB_TYPE}'
kubectl -n openlm get secret | grep -i reporting
kubectl -n openlm get ingress -o wide
kubectl -n openlm get service openlm-redis

The commands print, in order, the database type of the installation, its reporting database secrets, its ingress class and host names, and its Redis service.

Add the Helm repository​

The two charts are in the OpenLM Helm repository. To add it and list the charts, run these commands:

helm repo add openlm https://openlm-helm.github.io/helmcharts
helm repo update
helm search repo openlm/reportingmcp

The last command lists openlm/reportingmcpapi and openlm/reportingmcpserver with their latest versions. Note both versions, because the commands in Install the charts use them. Each chart's version is also the version of the image it installs. If you already added the repository under another name, use that name in the commands on this page.

Create the settings ConfigMaps​

Each chart reads its settings from a ConfigMap that you create before you install it. Without these ConfigMaps, the GraphQL API reads the database type from openlm-config-generic, can't use it, and doesn't start.

  1. Save the following manifest as reportingmcp-onprem.yaml:

    apiVersion: v1
    kind: ConfigMap
    metadata:
    name: openlm-reportingmcpapi-env
    namespace: openlm
    data:
    DEPLOYMENT_MODE: "onprem"
    DB_TYPE: "mssql" # or postgresql
    DB_NAME: "<reporting-database-name>"
    DB_DRIVER: "ODBC Driver 18 for SQL Server"
    DB_TRUST_CERTIFICATE: "true"
    HEALTH_PORT: "8000"
    IDENTITY_ENABLED: "true"
    IDENTITY_AUTHORITY: "https://<install-host>/identity"
    IDENTITY_AUDIENCE: "openlm.reporting.mcp.graphql.api"
    IDENTITY_REQUIRED_SCOPE: "openlm.reporting.mcp.graphql.scope"
    IDENTITY_VERIFY_SIGNATURE: "true"
    IDENTITY_VERIFY_SSL: "true" # "false" only for a short test, never in production
    LOG_LEVEL: "INFO"
    LOG_FORMAT: "json"
    ---
    apiVersion: v1
    kind: ConfigMap
    metadata:
    name: openlm-reportingmcpserver-env
    namespace: openlm
    data:
    DEPLOYMENT_MODE: "onprem"
    DB_TYPE: "mssql" # same as the GraphQL API
    MCP_TRANSPORT: "streamable-http"
    MCP_HOST: "0.0.0.0"
    MCP_PORT: "3000"
    HEALTH_PORT: "3000"
    GRAPHQL_ENDPOINT: "http://openlm-reportingmcpapi:8000/graphql"
    MCP_AUTH_ENABLED: "true"
    MCP_SERVER_URL: "https://<install-host>"
    IDENTITY_ENABLED: "true"
    IDENTITY_AUTHORITY: "https://<install-host>/identity"
    IDENTITY_CLIENT_ID: "openlm.mcp.server.bff"
    IDENTITY_CALLBACK_PATH: "/api/mcp-server/signin-oidc"
    IDENTITY_SCOPES: "openid profile roles user_info offline_access openlm.mcp.server.scope openlm.reporting.mcp.graphql.scope"
    IDENTITY_AUDIENCE: "openlm.mcp.server.api"
    ENVIRONMENT: "reporting-mcp" # key prefix in the shared Redis
    MCP_EXPOSE_ADMIN_TOOLS: "false"
    LOG_LEVEL: "INFO"
    LOG_FORMAT: "json"
  2. Replace <reporting-database-name> with the name of your reporting database, and each <install-host> with the host name of your installation, for example openlm.example.com.

  3. For PostgreSQL, set both DB_TYPE values to postgresql.

  4. Apply the manifest:

    kubectl apply -n openlm -f reportingmcp-onprem.yaml

Keep every other setting as shown. For which settings you can change, see Settings in the ConfigMaps.

The MCP server finds Redis without a setting in this ConfigMap: openlm-config-generic already sets REDIS__CONNECTIONSTRING to openlm-redis:6379, and the Redis secret of your installation overrides it when it has the same key.

Create the values files​

Each chart needs a values file that names its settings ConfigMap. The MCP server's values file also sets the host name and TLS secret of its Ingress.

  1. Save the following as reportingmcpserver-values.yaml, and replace the three values with those of your installation:

    configmap:
    name: openlm-reportingmcpserver-env
    ingress:
    hostname: <install-host> # for example openlm.example.com
    ingressClassName: nginx # the ingress class of your installation
    secretName: openlm-lb-cert # the TLS secret of your installation

    Always set ingress.hostname. The chart's default host name isn't yours.

  2. Save the following as reportingmcpapi-values.yaml:

    configmap:
    name: openlm-reportingmcpapi-env
  3. For PostgreSQL, add this secret list to reportingmcpapi-values.yaml, so that the GraphQL API loads the PostgreSQL credentials instead of the SQL Server ones:

    secrets:
    - name: openlm-generic-mongo-db-credentials
    type: env
    - name: openlm-generic-redis-connection-credentials
    type: env
    - name: openlm-generic-reporting-pgdb-credentials
    type: env

    Helm replaces the chart's whole list with yours, so keep the first two entries.

Install the charts​

Install the GraphQL API first, then the MCP server.

  1. Run these commands, with the versions that helm search repo listed:

    helm upgrade --install reportingmcpapi openlm/reportingmcpapi --version <api-version> -n openlm -f reportingmcpapi-values.yaml
    helm upgrade --install reportingmcpserver openlm/reportingmcpserver --version <server-version> -n openlm -f reportingmcpserver-values.yaml
  2. Wait until both pods show Running and 1/1:

    kubectl -n openlm get pods | grep reportingmcp

    The GraphQL API becomes ready only after it connects to the reporting database.

The reportingmcpserver chart creates a Deployment, the Service openlm-reportingmcpserver on port 3000, and an Ingress for the connector's paths. The reportingmcpapi chart creates a Deployment and the Service openlm-reportingmcpapi on port 8000, with no Ingress, so the GraphQL API stays inside the cluster.

Route the paths yourself​

The reportingmcpserver chart creates an Ingress for the connector's paths on your installation's host name. When that Ingress doesn't fit your installation, route the paths yourself. That's the case on OpenShift, and on an installation that routes all traffic through one shared ingress.

  1. Turn off the chart's Ingress:

    • On OpenShift, add this switch to both values files:

      global:
      useOpenShift: true

      The reportingmcpserver chart then creates no Ingress, and neither chart sets fixed user and group IDs on its pod, so OpenShift can assign them.

    • On an installation that routes all traffic through its shared ingress, set global.masterIngress.enabled: true in reportingmcpserver-values.yaml, as your platform values do. The chart then creates no Ingress either.

  2. Install or upgrade the charts, as in Install the charts.

  3. On your installation's host name, in your Routes or in the shared ingress, route the following paths to the Service openlm-reportingmcpserver on port 3000:

    PathMatch
    /mcpPrefix
    /mcp-serverPrefix
    /api/mcp-serverPrefix
    /tokenPrefix
    /authorizeExact
    /registerExact
    /.well-known/oauth-authorization-serverExact

    On OpenShift, a Route matches paths by prefix only. A prefix route for /authorize, /register, and /.well-known/oauth-authorization-server works.

Keep the paths unchanged, with no prefix and no rewriting. Turn off response buffering on these routes and allow long reads of several minutes or more, because the connector streams its responses. Don't route any path to the GraphQL API.

Install without internet access​

If the cluster can't reach the OpenLM Helm repository or public.ecr.aws, bring the charts and images in yourself.

  1. On a computer with internet access, add the Helm repository, then download both charts:

    helm pull openlm/reportingmcpapi --version <api-version>
    helm pull openlm/reportingmcpserver --version <server-version>
  2. Pull the two images, then push them to a registry that your cluster can reach:

    • public.ecr.aws/r3q3q2f4/olm-reportingmcpapi:<api-version>
    • public.ecr.aws/r3q3q2f4/olm-reportingmcpserver:<server-version>
  3. In each values file, set deployment.image to the image in your registry. If your registry needs a pull secret, set imagePullSecrets.name to it.

    deployment:
    image: <your-registry>/olm-reportingmcpserver:<server-version>
    imagePullSecrets:
    name: <your-pull-secret>
  4. Install the charts from the downloaded files, the GraphQL API first:

    helm upgrade --install reportingmcpapi ./reportingmcpapi-<api-version>.tgz -n openlm -f reportingmcpapi-values.yaml
    helm upgrade --install reportingmcpserver ./reportingmcpserver-<server-version>.tgz -n openlm -f reportingmcpserver-values.yaml

Verify the installation​

The installation is ready when both pods run without startup errors and the following checks pass. Run the curl commands from a computer on your network, and replace <install-host> with your installation's host name.

  1. Check the pods and their logs:

    kubectl -n openlm get pods | grep reportingmcp
    kubectl -n openlm logs deploy/openlm-reportingmcpserver --tail=50
    kubectl -n openlm logs deploy/openlm-reportingmcpapi --tail=50

    Both pods show Running and 1/1, and neither log contains [STARTUP-CHECK]. A [STARTUP-CHECK] line names a setting that is missing or unsafe.

  2. Check that your installation's OpenLM Identity answers on your host name and knows the MCP scopes:

    curl -s https://<install-host>/identity/.well-known/openid-configuration | grep -o -E '"issuer": ?"[^"]*"|"openlm\.[a-z.]*mcp[a-z.]*scope"'

    The command prints three lines: "issuer":"https://<install-host>/identity", then "openlm.mcp.server.scope" and "openlm.reporting.mcp.graphql.scope". If the issuer has another address, OpenLM Identity isn't set up for this host name. If a scope line is missing, the scopes are missing from OpenLM Identity.

  3. Check that the MCP server answers on your host name:

    curl -s https://<install-host>/mcp-server/.well-known/oauth-authorization-server

    The command prints JSON in which authorization_endpoint starts with https://<install-host>. An HTML page means that the request reached another service, so the path isn't routed to the MCP server.

  4. Check that the connector asks for a sign-in:

    curl -s -o /dev/null -w '%{http_code}\n' -X POST https://<install-host>/mcp

    The command prints 401.

  5. Check that AI clients can register:

    curl -s -w '\n%{http_code}\n' -X POST https://<install-host>/register -H 'Content-Type: application/json' -d '{"client_name":"check","redirect_uris":["http://localhost:9999/callback"]}'

    The command prints JSON with a client_id, then 201. It registers one client named check, as every AI client does when it first connects. Unused registrations expire after 30 days.

  6. Check that the sign-in goes to your installation's OpenLM Identity. Replace <client-id> with the client_id from the previous step:

    curl -s -o /dev/null -w '%{http_code} %{redirect_url}\n' "https://<install-host>/authorize?client_id=<client-id>&response_type=code&redirect_uri=http://localhost:9999/callback&code_challenge=E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM&code_challenge_method=S256&state=check"

    The command prints 302 and an address that starts with https://<install-host>/identity/connect/authorize. The address contains client_id=openlm.mcp.server.bff, and its redirect_uri is https://<install-host>/api/mcp-server/signin-oidc, URL-encoded. Another client or return address means that IDENTITY_CLIENT_ID or MCP_SERVER_URL is wrong in the MCP server ConfigMap, and users would see invalid_request when they sign in.

  7. Check that the sign-in return path reaches the MCP server:

    curl -s -o /dev/null -w '%{http_code}\n' "https://<install-host>/api/mcp-server/signin-oidc?state=check&code=check"

    The command prints 400, because the request carries no real sign-in. A 404 means that /api/mcp-server isn't routed to the MCP server.

  8. Connect an AI client, sign in, and ask a first question. See Connect an AI client.

If a check fails, see Troubleshooting.

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.