﻿---
title: PagerDuty (MCP) connector
description: Use the PagerDuty data source to access incidents, escalation policies, schedules, on-calls, users, and teams using the PagerDuty MCP server.
url: https://docs-v3-preview.elastic.dev/elastic/kibana/pull/280898/reference/connectors-kibana/pagerduty-mcp-action-type
products:
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview since 9.4
---

# PagerDuty (MCP) connector
The PagerDuty data source connects to PagerDuty through the PagerDuty MCP server to access incidents, escalation policies, schedules, on-calls, users, and teams. Use it in data and context sources and agentic workflows to search and retrieve PagerDuty data.

## Add the PagerDuty data source

You add and configure the PagerDuty data source when setting up a data or context source in Kibana. You are prompted for an **API token**. Refer to [Get API credentials](#pagerduty-mcp-api-credentials) for instructions.

## Get API credentials

To use the PagerDuty data source, you need a PagerDuty **API token** (REST API). This is not the same as an integration key used for the alerting connector.
1. Log in to [PagerDuty](https://www.pagerduty.com/).
2. Go to **Integrations** > **Developer Tools** > **API Access Keys** (or **User Settings** > **API Access** in some layouts).
3. Select **Create API User Token** (user token) or **Create Key** (general access key; requires admin). User tokens are scoped to your permissions.
4. Enter a description (for example, `Kibana data source`) and create the token.
5. Copy the token and store it securely. You cannot see it again after this point. Enter this value as the **API token** when configuring the PagerDuty data source in Kibana.

For more details, refer to [PagerDuty API access keys](https://support.pagerduty.com/docs/api-access-keys) and [API authentication](https://developer.pagerduty.com/docs/rest-api-v2/authentication/).