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

@aparkerio/pagerduty-mcp-server

v0.2.0

Published

Model Context Protocol server for PagerDuty incident management

Readme

PagerDuty MCP Server

A Model Context Protocol (MCP) server that provides tools for interacting with PagerDuty incidents. This server can be run via npx and used with MCP-compatible clients.

Installation

You can run this server directly with npx:

npx @aparkerio/pagerduty-mcp-server

Or install it locally:

npm install -g @aparkerio/pagerduty-mcp-server

Configuration

The server requires a PagerDuty API key to be set as an environment variable:

export PAGERDUTY_API_KEY="your-pagerduty-api-key"

You can obtain an API key from your PagerDuty account under Integrations > API Access Keys.

Available Tools

list_incidents

Lists PagerDuty incidents with optional filtering parameters.

Parameters:

  • status (array): Filter by incident status (triggered, acknowledged, resolved)
  • urgency (array): Filter by urgency level (high, low)
  • service_ids (array): Filter by service IDs
  • team_ids (array): Filter by team IDs
  • user_ids (array): Filter by user IDs
  • since (string): Start of date range (ISO 8601 format)
  • until (string): End of date range (ISO 8601 format)
  • limit (number): Maximum number of incidents to return (1-100, default: 25)
  • offset (number): Pagination offset (default: 0)

Example:

{
  "status": ["triggered", "acknowledged"],
  "urgency": ["high"],
  "limit": 10
}

get_incident

Retrieves detailed information about a specific incident.

Parameters:

  • incident_id (string, required): The ID of the incident to retrieve

Example:

{
  "incident_id": "PXXXXXX"
}

list_services

Lists PagerDuty services with optional filtering parameters.

Parameters:

  • query (string): Filter services by name
  • team_ids (array): Filter services by team IDs
  • limit (number): Maximum number of services to return (1-100, default: 25)
  • offset (number): Pagination offset (default: 0)
  • include (array): Include additional details (escalation_policies, teams)

Example:

{
  "query": "web",
  "include": ["teams", "escalation_policies"],
  "limit": 10
}

get_service

Retrieves detailed information about a specific service.

Parameters:

  • service_id (string, required): The ID of the service to retrieve
  • include (array): Include additional details (escalation_policies, teams)

Example:

{
  "service_id": "PXXXXXX",
  "include": ["teams"]
}

get_incident_notes

Retrieves notes and timeline entries for a specific incident.

Parameters:

  • incident_id (string, required): The ID of the incident to get notes for

Example:

{
  "incident_id": "PXXXXXX"
}

list_incident_alerts

Lists alerts for a specific incident.

Parameters:

  • incident_id (string, required): The ID of the incident to get alerts for
  • limit (number): Maximum number of alerts to return (1-100, default: 25)
  • offset (number): Pagination offset (default: 0)
  • statuses (array): Filter alerts by status (triggered, resolved)

Example:

{
  "incident_id": "PXXXXXX",
  "statuses": ["triggered"],
  "limit": 50
}

Usage with MCP Clients

This server implements the Model Context Protocol and can be used with any MCP-compatible client. The server communicates via stdio and provides the tools listed above.

Development

To run the server locally:

git clone <repository-url>
cd pagerduty-mcp-server
npm install
export PAGERDUTY_API_KEY="your-api-key"
npm run build
npm run start

For development with auto-reload:

npm run dev

Requirements

  • Node.js runtime (>= 18.0.0)
  • PagerDuty API key with appropriate permissions

License

MIT