Prerequisites
Before you begin, you’ll need:- Python 3.12 installed on your system
- A PagerDuty account with access to create API tokens
- An MCP-enabled client (we’ll use VS Code in this guide)
Create a PagerDuty User API Token
The PagerDuty MCP Server requires a User API Token to authenticate with your account.Navigate to User Settings
Click on your user profile icon in PagerDuty, then select My Profile → User Settings.
For Freemium accounts, permissions for generating User API tokens are limited to the user role as defined in the PagerDuty documentation.
Create the token
Click the Create API User Token button and follow the prompts to generate a new token.
Use of the PagerDuty User API Token is subject to the PagerDuty Developer Agreement.
Installation
The easiest way to use the PagerDuty MCP Server is viauvx, which automatically manages the Python environment:
uvx command will download and run the server without requiring manual installation.
Configure VS Code
Now let’s configure VS Code to use the PagerDuty MCP Server.Open VS Code Settings
Open VS Code settings:
- macOS:
Cmd+, - Windows/Linux:
Ctrl+,
Configure the server
Click “Edit in settings.json” under “Mcp > Discovery: Servers”.Add the following configuration to your
settings.json:settings.json
If your PagerDuty account is in the EU region, update
PAGERDUTY_API_HOST to https://api.eu.pagerduty.comTry Your First Command
Now let’s test the integration!Enable Agent mode
Make sure Agent mode is selected in the Chat view. You can enable or disable specific tools by clicking the 🛠️ icon.
Enable Write Operations (Optional)
To enable write operations like creating incidents or schedule overrides, add the--enable-write-tools flag to your configuration:
settings.json
- Create incidents:
Create a new incident for the API service - Add notes:
Add a note to incident #123 saying "Still investigating" - Create schedule overrides:
Override the on-call schedule for tomorrow - Manage teams:
Add [email protected] to the platform team - And much more!
Managing the Server
You can manage your MCP servers using the VS Code command palette:- Open the command palette (
Cmd+Shift+PorCtrl+Shift+P) - Search for “MCP: List Servers”
- You’ll see the PagerDuty MCP Server listed
- You can start, stop, or restart the server from here
Next Steps
You’re all set! Here are some resources to help you get the most out of the PagerDuty MCP Server:Installation Guide
Explore other installation methods and troubleshooting
Available Tools
Browse all 60+ available tools
Other Clients
Configure Cursor, Claude Desktop, and other clients
Usage Guides
Learn common workflows and best practices