Using the Checkmk MCP Server
This article explains how to connect Claude Code to the Checkmk MCP server, what the server can answer, and how to phrase good questions.
LAST TESTED ON CHECKMK 2.5.0P14
Table of Contents
Full tool descriptions
A tool is a function provided by the MCP server that the AI assistant can call to retrieve specific information from Checkmk. You do not need to select a tool yourself. The AI assistant automatically chooses the appropriate tool based on your question. After connecting to the MCP server, you can run /mcp in Claude Code, select your Checkmk MCP server, and open the tool list. Each entry contains the complete description available to the model, including the filters and parameters the tool accepts.
Overview
The Model Context Protocol (MCP) is an open standard that lets an AI assistant call tools on an external system. Checkmk ships its own MCP server, so an assistant such as Claude Code can query a site directly instead of working from screenshots or pasted command output. You ask a question in plain language, the assistant picks a tool, calls it against your site, and answers from live data.
Every tool the server exposes is read-only. The server reads monitoring status, historical data, and the Setup audit trail, and it offers no way to create, change, acknowledge, schedule, or activate anything. Those actions remain available through the graphical user interface, the command line, and the REST API, so you can give a colleague access to the MCP server without worrying about accidental changes.
Editions
The MCP server ships with every Checkmk edition except the Community edition.
Note
The MCP Server facilitates connections between Checkmk and external AI models. The selection, technical integration, and operation of any connected AI system fall exclusively within your responsibility and risk. Interoperability with specific AI models or services is not guaranteed.
Prerequisites
A Checkmk site running Checkmk 2.5.0p14 or later in an edition that includes the MCP server.
See Werk #22267: MCP server improvements for information about MCP server availability and changes.Claude Code on your workstation, or another MCP client that supports Streamable HTTP, such as OpenAI's ChatGPT
Ability to connect to MCP Server 2.0
Network access from your workstation to the web interface of the site
Permission on the site to edit global settings and to activate changes
The site must be reachable over HTTPS because MCP access uses OAuth, which requires TLS. Registering the site with
http://succeeds but authentication then fails. If TLS is terminated before reaching the site, the terminating component must sendX-Forwarded-Proto: https; otherwise, the site advertiseshttp://in its OAuth metadata and the client rejects the mismatch.
See the sample Apache configuration. On the Checkmk Appliance, this is handled automatically.
Note
Update the Apache configuration after a site update
If you updated the Checkmk site from an older version, you must update the Apache configuration before using the MCP server:
sudo omd update-apache-config <site>Replace <site> with the name of your Checkmk site.
If you do not run this command, the existing Apache configuration might not recognize the MCP endpoint, which can cause authentication errors when connecting to the MCP server.
Step-by-step guide
Step 1: Enable the MCP server
Go to Setup → General → Global settings → AI Features. Searching for "MCP" in Setup also finds the setting.
Switch on Enable MCP server.
Activate changes.
Step 2: Register the server in Claude Code
Register the server with the http transport, using the URL from step 1:
claude mcp add --transport http checkmk https://<server>/<mysite>/check_mk/mcpPlease note that checkmk in the command above is only a name. You can replace it with any name that fits your company's naming conventions.
Claude Code stores this registration in your local settings and uses it in the current project only. Two flags widen that scope:
--scope projectwrites the configuration to.mcp.json, which lets you share the server with your team through the repository.--scope userregisters the server for all of your projects.
Step 3: Authenticate
Start Claude Code and run the following command:
/mcpClaude Code lists the MCP servers available to you. Select the name that you provided before and then choose Authenticate. A browser window opens, and you log in to the site there. The server accepts a bearer token, which Claude Code obtains through OAuth and refreshes for you.
Step 4: Verify the connection
Run /mcp once more. The checkmk entry now reports itself as connected and lists its tools. Ask a first question, such as "which hosts are down right now?", and Claude selects the tool that answers it.
Optional: send usage data to Checkmk
Independently of the server itself, you can opt in to sending MCP usage data to the central telemetry collector at Checkmk. The data shows us how teams use the MCP server and where to improve it, so please switch it on where your policies allow.
Go to Setup → General → Global settings → AI Features
Switch on Send MCP usage data to Checkmk.
Activate changes.
Troubleshooting
Verify if the service is running
Enabling the setting starts the mcp-server init service. This command confirms that the service runs:
omd status mcp-server
Authentication fails on an updated site
Sites that you update from an older version can keep an Apache configuration that does not yet know the MCP endpoint. Authentication then fails with invalid_token, "Authentication Required", or a similar message. Rewrite the Apache configuration for the affected site and try again:
sudo omd update-apache-config <site>
Authentication fails on a site served via HTTPS
If the site is reachable through HTTPS but Apache does not forward the original protocol information, authentication can fail with an error like this:
Protected resource http://<server>/<mysite>/check_mk/mcp
does not match expected https://<server>/<mysite>/check_mk/mcp (or origin)
Solution
Configure the system Apache to send the X-Forwarded-Proto header with the value https for requests forwarded to the Checkmk site. See the sample Apache configuration.
On the Checkmk Appliance, this is handled automatically. No additional configuration is required.
Root cause
The component that terminates TLS decrypts the connection. It then sends a plain request to the site. The MCP server only sees this plain request. It cannot know that the original connection used HTTPS. It therefore publishes its URLs with `http://`. MCP clients must reject these URLs. The header tells the MCP server the original scheme.
Additional Information
Data we collect
If you opt in, we collect the following functional data. This helps us understand which tools are being used, whether they work correctly, and where improvements might be needed, for example to prevent excessive token usage. By default, sending usage data is switched off. All functionality remains available if you leave it switched off.
The site sends the data as OpenTelemetry traces to the Checkmk collector at https://mcp-analytics.checkmk.com:54829. The site therefore needs outbound access to this host and port. If a firewall or proxy blocks the connection, the traces are dropped, but the MCP server continues to work. Add the collector to your egress rules before enabling usage data.
Type of data | Why we collect this |
|---|---|
Tool and resource calls | The MCP method the client called and the name of the tool or resource it addressed, for example tools/list or a call to |
Call latency | How long the site needed to answer, measured per request and per internal REST call, together with the status of each. |
Response size | The size of the response, which shows how much data a question returned. |
AI client | The user agent of the calling client ( |
Session ID | A random identifier generated per session ( |
Protocol version | The revision of the Model Context Protocol that client and server agreed on, which shows us which revisions are in use in the field. |
Other MCP clients
Claude Desktop, the MCP Inspector, and IDE integrations all connect the same way: point them at the URL from step 1 and let them use streamable HTTP. The tools and the authentication behave identically in every client.
Model recommendation
We recommend using a powerful model such as Anthropic’s Sonnet or Opus models, or ChatGPT5.6 by OpenAI for the best performance at the time of writing. Please note that we cannot test and optimize for models beyond these.
What the MCP server can answer
All you have to do is ask a question in plain language. The LLM will choose the appropriate tools and perform any tool calling that is required to generate the answer. One question can draw on several tools at once, which means you can describe a situation instead of formulating a query.
The server currently covers five broad areas. The questions under each heading illustrate what that area answers, but you aren’t restricted to this specific wording.
The key capabilities center around Root Cause Analysis. One request can line up a metric trend, a state timeline, and the audit log, so rather than gathering the evidence yourself you can ask for the correlation directly. Follow-up questions work as well, since Claude keeps the context of the conversation.
Examples
"What is critical right now, and which of those problems has someone already acknowledged?"
"Show me the CPU load on
myhost-01for the last six hours.""Build me a timeline for
myhost-01from 18:00 yesterday to now, combining service state changes, Event Console entries, and any configuration changes recorded in that window.""Compare the memory usage trend on myhost-01 over the past week against the moment its Memory service turned critical, and tell me whether the problem built up gradually or appeared suddenly."
"Check whether any Setup change was activated in the hour before the CPU alerts in the Linux/Production folder started."
"Tell me whether the problems on
myhost-01are confined to that host, or whether every host in the same folder turned critical at the same moment.""Tell me whether a scheduled downtime covered myhost-01 when its alerts fired, and who scheduled it."
"Find the hosts that went down within the same five-minute window last night and tell me what they have in common in terms of folder, tags, and labels."