nagios-mcp
Integrates Nagios Core monitoring capabilities into Windsurf (by Codeium), allowing access to status, alerts, configuration, and other monitoring tools.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nagios-mcpshow me all services in critical state"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nagios-mcp
MCP Server for Nagios Core.
This server is built by us for the Nagios Core web-client.
The code for the server can be found here.
The server utilizes the CGI binaries located at the cgi-bin or sbin folder in your Nagios folder.
More specifically the statusjson.cgi and objectjson.cgi files for the purpose of the status and configuration tooling.
How to install:
Setting up
Installing the PyPI package
# Using pip
pip install nagios-mcp # or pipx install nagios-mcp
# Using uv (Recommended)
uv tool install nagios-mcpCreating a config file Create a
nagios_config.yamlornagios_config.jsonfile with the configuration parameters given below.
nagios_url: "http://localhost/nagios"
nagios_user: "your_nagios_core_username"
nagios_pass: "your_nagios_core_password"
ca_cert_path: "path_to_your_ssl_cert" # if the url is https, otherwise leave it empty ("")Starting the SSE server
The mcp server by default runs on STDIO transport. If you do not require SSE transport, you can skip this section.
Command:
uvx nagios-mcp --config NAGIOS_CONFIG_FILE --transport sse --host localhost --port 8000
For Claude Desktop
For setting up in Claude Desktop, go to
Settings->Developer->Edit Config. Or directly modify the config file,MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the following block to the config file,
{
"mcpServers": {
"nagios": {
"command": "uvx",
"args": [
"nagios-mcp",
"--config",
"PATH_TO_THE_NAGIOS_CONFIG_FILE",
],
},
},
}For SSE transport:
{
"mcpServers": {
"nagios": {
"url": "http://localhost:8000/sse" # change this if you are using different port
}
}
}For Cursor
To setup the server in Cursor, go to
Setting->MCP->Add new global MCP server, and add the following: For STDIO transport:
{
"mcpServers": {
"nagios": {
"command": "uvx",
"args": [
"nagios-mcp",
"--config", "PATH_TO_THE_NAGIOS_CONFIG_FILE"
],
}
}
}For SSE Transport:
{
"mcpServers": {
"nagios": {
"url": "http://localhost:8000/sse" # change this if you are using different port
}
}
}For Windsurf
For setting up the server in Windsurf, add the following lines to the
~/.codeium/windsurf/mcp_config.jsonfile.
{
"mcpServers": {
"nagios": {
"command": "uvx",
"args": [
"nagios-mcp",
"--config", "PATH_TO_THE_NAGIOS_CONFIG_FILE"
],
}
}
}For SSE Transport:
{
"mcpServers": {
"nagios": {
"serverUrl": "http://localhost:8000/sse" # change this if you are using different port
}
}
}For Cline
For setting up the server in Cline, go to
MCP Servers->Installed->Configure MCP Servers, this will open thecline_mcp_settings.jsonfile. Add the following code block to the file.
{
"mcpServers": {
"nagios": {
"command": "uvx",
"args": [
"nagios-mcp",
"--config", "PATH_TO_THE_NAGIOS_CONFIG_FILE"
],
}
}
}For SSE Transport:
{
"mcpServers": {
"nagios": {
"url": "http://localhost:8000/sse" # change this if you are using different port
}
}
}For 5ire
5ire is another MCP client. For setting up in 5ire, go to Tools -> New and add the following configuration.
Tool Key:
NagiosName:
NagiosMCPCommand:
uvx nagios-mcp --config PATH_TO_THE_NAGIOS_CONFIG_FILE
List of Tools:
Tool Name | Tool Description |
| Retrieves status for all hosts or a specific host. |
| Retrieves status for services using |
| Retrieves current problematic host and service states (alerts). |
| Retrieves the Nagios Core program status from statusjson.cgi |
| Retrieves status for all hosts within a specific host group. |
| Retrieves status for all services within a specific service group. |
| Retrieves status for all the services with a specific host group. |
| Retrieves overall health summary for all the hosts and services. |
| Retrieves all the unhandled problems for all the hosts and services. |
| Retrieves configuration list for object types like "hosts", "services", "hostgroups", etc. |
| Retrieves configuration for a single specific object. |
| Retrieves host dependencies for the given host. |
| Retrieves service dependencies for the given host. |
| Retrieves the list of contacts to inform for an object. |
| Retrieves comments based on the host and service. |
| Retrieves comments for the given comment id. |
| Retrieves the information for the downtimes in the Nagios Host Process. |
| Returns the information for the Nagios process. (Alias for get_program_status function) |
Currently all the tools use GET requests. Other useful tools and tools requiring POST requests will be added soon.
Related MCP server: Meraki Magic MCP
How the MCP server works?
Nagios Core web-client is typically hosted on
http://YOUR_HOST/nagios/The MCP server reads the details about the processes and services using the CGI binaries, they can be found in the
cgi-binorsbinsub-directory in your Nagios main directory.The Status Tools and Config Tools use the
cgi-bin/statusjson.cgiandcgi-bin/objectjson.cgifiles respectively for retrieving the information.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PROSPIRE-TECHNOLOGY-SERVICES/nagios-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server