npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@logic3579/n9e-mcp-server

v0.2.0

Published

MCP server for Nightingale monitoring platform

Readme

Nightingale MCP Server

Go License MCP

An MCP (Model Context Protocol) server for Nightingale monitoring system. This server enables AI assistants to interact with Nightingale APIs for alert management, monitoring, and observability tasks through natural language.

Compatibility

  • Nightingale: v8.0.0+

Key Use Cases

  • Alert Management: Query active and historical alerts, view alert rules and subscriptions
  • Target Monitoring: Browse and search monitored hosts/targets, analyze target status
  • Incident Response: Create and manage alert mutes, notification rules, and event pipelines
  • Team Collaboration: Query users, teams, and business groups

Quick Start

1. Get an API Token

  1. Make sure HTTP.TokenAuth is enabled in config.toml:
  [HTTP.TokenAuth]
  Enable = true
  1. Log in to your Nightingale web interface
  2. Navigate to Personal Settings > Profile > Token Management
  3. Create a new token with appropriate permissions

Security Note: Store your API token securely. Never commit tokens to version control. Use environment variables or secure secret management.

2. Configure MCP Client

Cursor

Add to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "nightingale": {
      "command": "npx",
      "args": ["-y", "@logic3579/n9e-mcp-server", "stdio"],
      "env": {
        "N9E_TOKEN": "your-api-token",
        "N9E_BASE_URL": "http://your-n9e-server:17000"
      }
    }
  }
}

3. Restart Cursor or Other Client Processes to Use

Available Tools

| Toolset | Tool | Description | |---------|------|-------------| | alerts | list_active_alerts | List currently firing alerts with optional filters | | alerts | get_active_alert | Get details of a specific active alert by event ID | | alerts | list_history_alerts | List historical alerts with optional filters | | alerts | get_history_alert | Get details of a specific historical alert | | alerts | list_alert_rules | List alert rules for a business group | | alerts | get_alert_rule | Get details of a specific alert rule | | targets | list_targets | List monitored hosts/targets with optional filters | | datasource | list_datasources | List all available datasources | | mutes | list_mutes | List alert mutes for a business group | | mutes | get_mute | Get details of a specific alert mute | | mutes | create_mute | Create a new alert mute/silence rule | | mutes | update_mute | Update an existing alert mute/silence rule | | notify_rules | list_notify_rules | List all notification rules | | notify_rules | get_notify_rule | Get details of a specific notification rule | | alert_subscribes | list_alert_subscribes | List alert subscriptions for a business group | | alert_subscribes | list_alert_subscribes_by_gids | List subscriptions across multiple business groups | | alert_subscribes | get_alert_subscribe | Get details of a specific subscription | | event_pipelines | list_event_pipelines | List all event pipelines/workflows | | event_pipelines | get_event_pipeline | Get details of a specific event pipeline | | event_pipelines | list_event_pipeline_executions | List execution records for a specific pipeline | | event_pipelines | list_all_event_pipeline_executions | List all execution records across all pipelines | | event_pipelines | get_event_pipeline_execution | Get details of a specific execution | | users | list_users | List users with optional filters | | users | get_user | Get details of a specific user | | users | list_user_groups | List user groups/teams | | users | get_user_group | Get details of a user group including members | | busi_groups | list_busi_groups | List business groups accessible to the current user |

Example Prompts

Once configured, you can interact with Nightingale using natural language:

  • "Show me all critical alerts from the last 24 hours"
  • "What alerts are currently firing?"
  • "List all monitored targets that have been down for more than 5 minutes"
  • "What alert rules are configured in business group 1?"
  • "Create a mute rule for service=api alerts for the next 2 hours due to maintenance"
  • "Show me the event pipeline execution history"
  • "Who are the members of the ops team?"

Configuration

Environment Variables

| Variable | Flag | Description | Default | |----------|------|-------------|---------| | N9E_TOKEN | --token | Nightingale API token (required) | - | | N9E_BASE_URL | --base-url | Nightingale API base URL | http://localhost:17000 | | N9E_READ_ONLY | --read-only | Disable write operations | false | | N9E_TOOLSETS | --toolsets | Enabled toolsets (comma-separated) | all |

Toolsets

By default, all toolsets are enabled. You can use the --toolsets flag or N9E_TOOLSETS environment variable to enable only the toolsets you need, reducing the number of tools exposed to the AI assistant and saving context window tokens.

Available toolsets: alerts, targets, datasource, mutes, busi_groups, notify_rules, alert_subscribes, event_pipelines, users

For example, to enable only alert and target related tools:

{
  "mcpServers": {
    "nightingale": {
      "command": "npx",
      "args": ["-y", "@logic3579/n9e-mcp-server", "stdio"],
      "env": {
        "N9E_TOKEN": "your-api-token",
        "N9E_BASE_URL": "http://your-n9e-server:17000",
        "N9E_TOOLSETS": "alerts,targets"
      }
    }
  }
}

License

Apache License 2.0

Related Projects