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, setdeployment.namespaceandservice.namespacein both values files,ingress.namespaceinreportingmcpserver-values.yaml, andnamespacein 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 tohttps://<install-host>/api/mcp-server/signin-oidcafter they sign in. - The MCP client and scopes in your installation's OpenLM Identity: the client
openlm.mcp.server.bffwith the redirect addresshttps://<install-host>/api/mcp-server/signin-oidc, and the scopesopenlm.mcp.server.scopeandopenlm.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
nginxortraefik, and the name of its TLS secret, usuallyopenlm-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-credentialsfor SQL Server, oropenlm-generic-reporting-pgdb-credentialsfor PostgreSQL, with the keysHOST_NAME,PORT,USERNAME, andPASSWORD. A read-only login is enough, because the connector creates nothing in the database. - Optional: the Redis service of your installation,
openlm-redison port 6379. Without Redis, users sign in again after each restart of the MCP server. kubectland 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/helmchartsand topublic.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.
-
Save the following manifest as
reportingmcp-onprem.yaml:apiVersion: v1kind: ConfigMapmetadata:name: openlm-reportingmcpapi-envnamespace: openlmdata:DEPLOYMENT_MODE: "onprem"DB_TYPE: "mssql" # or postgresqlDB_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 productionLOG_LEVEL: "INFO"LOG_FORMAT: "json"---apiVersion: v1kind: ConfigMapmetadata:name: openlm-reportingmcpserver-envnamespace: openlmdata:DEPLOYMENT_MODE: "onprem"DB_TYPE: "mssql" # same as the GraphQL APIMCP_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 RedisMCP_EXPOSE_ADMIN_TOOLS: "false"LOG_LEVEL: "INFO"LOG_FORMAT: "json" -
Replace
<reporting-database-name>with the name of your reporting database, and each<install-host>with the host name of your installation, for exampleopenlm.example.com. -
For PostgreSQL, set both
DB_TYPEvalues topostgresql. -
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.
-
Save the following as
reportingmcpserver-values.yaml, and replace the three values with those of your installation:configmap:name: openlm-reportingmcpserver-envingress:hostname: <install-host> # for example openlm.example.comingressClassName: nginx # the ingress class of your installationsecretName: openlm-lb-cert # the TLS secret of your installationAlways set
ingress.hostname. The chart's default host name isn't yours. -
Save the following as
reportingmcpapi-values.yaml:configmap:name: openlm-reportingmcpapi-env -
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-credentialstype: env- name: openlm-generic-redis-connection-credentialstype: env- name: openlm-generic-reporting-pgdb-credentialstype: envHelm 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.
-
Run these commands, with the versions that
helm search repolisted:helm upgrade --install reportingmcpapi openlm/reportingmcpapi --version <api-version> -n openlm -f reportingmcpapi-values.yamlhelm upgrade --install reportingmcpserver openlm/reportingmcpserver --version <server-version> -n openlm -f reportingmcpserver-values.yaml -
Wait until both pods show
Runningand1/1:kubectl -n openlm get pods | grep reportingmcpThe 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.
-
Turn off the chart's Ingress:
-
On OpenShift, add this switch to both values files:
global:useOpenShift: trueThe
reportingmcpserverchart 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: trueinreportingmcpserver-values.yaml, as your platform values do. The chart then creates no Ingress either.
-
-
Install or upgrade the charts, as in Install the charts.
-
On your installation's host name, in your Routes or in the shared ingress, route the following paths to the Service
openlm-reportingmcpserveron port 3000:Path Match /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-serverworks.
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.
-
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> -
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>
-
In each values file, set
deployment.imageto the image in your registry. If your registry needs a pull secret, setimagePullSecrets.nameto it.deployment:image: <your-registry>/olm-reportingmcpserver:<server-version>imagePullSecrets:name: <your-pull-secret> -
Install the charts from the downloaded files, the GraphQL API first:
helm upgrade --install reportingmcpapi ./reportingmcpapi-<api-version>.tgz -n openlm -f reportingmcpapi-values.yamlhelm 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.
-
Check the pods and their logs:
kubectl -n openlm get pods | grep reportingmcpkubectl -n openlm logs deploy/openlm-reportingmcpserver --tail=50kubectl -n openlm logs deploy/openlm-reportingmcpapi --tail=50Both pods show
Runningand1/1, and neither log contains[STARTUP-CHECK]. A[STARTUP-CHECK]line names a setting that is missing or unsafe. -
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. -
Check that the MCP server answers on your host name:
curl -s https://<install-host>/mcp-server/.well-known/oauth-authorization-serverThe command prints JSON in which
authorization_endpointstarts withhttps://<install-host>. An HTML page means that the request reached another service, so the path isn't routed to the MCP server. -
Check that the connector asks for a sign-in:
curl -s -o /dev/null -w '%{http_code}\n' -X POST https://<install-host>/mcpThe command prints
401. -
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, then201. It registers one client namedcheck, as every AI client does when it first connects. Unused registrations expire after 30 days. -
Check that the sign-in goes to your installation's OpenLM Identity. Replace
<client-id>with theclient_idfrom 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
302and an address that starts withhttps://<install-host>/identity/connect/authorize. The address containsclient_id=openlm.mcp.server.bff, and itsredirect_uriishttps://<install-host>/api/mcp-server/signin-oidc, URL-encoded. Another client or return address means thatIDENTITY_CLIENT_IDorMCP_SERVER_URLis wrong in the MCP server ConfigMap, and users would seeinvalid_requestwhen they sign in. -
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. A404means that/api/mcp-serverisn't routed to the MCP server. -
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.