PagerDuty MCP Server
PagerDuty MCP Server for LLM Agent Integration
Overview
PagerDuty MCP Server is a server that exposes PagerDuty API functionality to LLMs, allowing for programmatic interaction with PagerDuty resources such as incidents, services, teams, and users.
To use the PagerDuty MCP Server, clone the repository, install dependencies, and set your PagerDuty API token in the environment. You can then run the server and use its API endpoints to interact with PagerDuty resources.
- List and show incidents - List and show services - List and show teams - List and show users - List and show schedules - List and show escalation policies - List and show on-calls
- Automating incident management workflows.
- Integrating PagerDuty functionalities into LLM applications.
- Programmatically accessing and managing PagerDuty resources.
Add to your AI client
Use these steps to connect PagerDuty MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"pagerduty-mcp-server-wpfleger96": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pagerduty-mcp-server-wpfleger96"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"pagerduty-mcp-server-wpfleger96": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pagerduty-mcp-server-wpfleger96"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"pagerduty-mcp-server-wpfleger96": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pagerduty-mcp-server-wpfleger96"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"pagerduty-mcp-server-wpfleger96": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pagerduty-mcp-server-wpfleger96"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"pagerduty-mcp-server-wpfleger96": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pagerduty-mcp-server-wpfleger96"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"pagerduty-mcp-server-wpfleger96": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-pagerduty-mcp-server-wpfleger96"
]
}
}
}FAQ
What is required to run the PagerDuty MCP Server?
You need a valid PagerDuty API token and the necessary dependencies installed.
Can I use this server for all PagerDuty resources?
Yes, the server supports various PagerDuty resources including incidents, services, teams, and users.
How do I handle errors when using the API?
The server provides a consistent error response format that includes a message and a code for easier debugging.