System Requirements
Before installing, ensure your system meets these requirements:- Python: Version 3.12.x (Python 3.12.0 is recommended)
- Operating System: Linux, macOS, or Windows
- MCP Client: VS Code, Cursor, Claude Desktop, or any MCP-compatible client
The PagerDuty MCP Server specifically requires Python 3.12. Other versions may not work correctly.
Installation Methods
Method 1: Using uvx (Recommended)
The easiest way to use the PagerDuty MCP Server is viauvx, which automatically manages dependencies and the Python environment.
Install uv
First, install Windows:For more installation options, see the official uv documentation.
uv if you don’t have it already:macOS/Linux:Method 2: Using pip
If you prefer traditional Python package installation, you can install via pip.Method 3: From Source
For development or if you want to run the latest code, you can install from source.Ensure uv is available globally
Make sure
uv is available globally so it can be invoked from your MCP client:Follow the official uv installation guide to install it globally.Running from Source
When running from source, your MCP client configuration needs to be updated to useuv run instead of uvx:
settings.json
/path/to/pagerduty-mcp-server with the full path to your cloned repository (e.g., /Users/yourname/code/pagerduty-mcp-server).
Method 4: Using Docker
You can also run the PagerDuty MCP Server in a Docker container for an isolated and portable deployment.Using Docker with MCP Clients
To configure an MCP client to use the Docker container:The Docker container uses stdio transport, making it compatible with MCP clients that expect standard input/output communication.
Verifying Installation
To verify that the PagerDuty MCP Server is installed correctly:Check the Version
Run the server with the--help flag to see available options:
Test Server Startup
Set your API key as an environment variable and test the server:Test with an MCP Client
The best way to verify everything is working is to configure an MCP client (like VS Code) and try a simple query. See the Quickstart Guide for step-by-step instructions.Troubleshooting
Python Version Issues
Problem: Error message about Python version mismatch. Solution: Ensure you’re using Python 3.12.x:uv Not Found
Problem:uvx: command not found or uv: command not found
Solution: Install uv globally following the official installation guide. After installation, restart your terminal and MCP client.
API Key Issues
Problem: Authentication errors or “API key not found” messages. Solution:- Verify your API key is correctly set in the MCP client configuration
- Ensure there are no extra spaces or quotes around the key
- Generate a new API key from your PagerDuty user settings if needed
- Check that the key has not expired
EU Region Users
Problem: API calls failing with EU region accounts. Solution: Update thePAGERDUTY_API_HOST environment variable to https://api.eu.pagerduty.com in your MCP client configuration.
Server Not Starting in MCP Client
Problem: The server doesn’t appear in the MCP client or won’t start. Solution:- Check that MCP is enabled in your client settings
- Verify the configuration syntax in your settings.json
- Restart the MCP client completely
- Check the MCP client logs for error messages
- Try restarting the server from the command palette (
MCP: List Servers)
Permission Errors
Problem: Permission denied errors when running the server. Solution:- Ensure you have write permissions in your Python environment
- If using a virtual environment, activate it before installing
- On Unix systems, avoid using
sudowith pip - use virtual environments instead
Import Errors
Problem:ModuleNotFoundError or import errors when running the server.
Solution:
- Reinstall the package:
pip install --force-reinstall pagerduty-mcp - If using
uvx, clear the cache:rm -rf ~/.local/share/uv - Ensure you’re using Python 3.12 and not another version
Configuration Options
The PagerDuty MCP Server accepts the following configuration options:Command-Line Flags
--enable-write-tools: Enable write operations (create, update, delete). Default: disabled
Environment Variables
PAGERDUTY_USER_API_KEY(required): Your PagerDuty User API TokenPAGERDUTY_API_HOST(optional): PagerDuty API endpoint. Default:https://api.pagerduty.com- For EU accounts, use:
https://api.eu.pagerduty.com
- For EU accounts, use:
Upgrading
Upgrading uvx Installation
Theuvx command automatically uses the latest version. To force an upgrade:
Upgrading pip Installation
Upgrade to the latest version:Upgrading Source Installation
Pull the latest changes and reinstall:Upgrading Docker Installation
Rebuild the Docker image:Next Steps
Now that you have the PagerDuty MCP Server installed:Quickstart
Follow the quickstart guide to configure your first client
Configure Clients
Learn how to configure different MCP clients
Available Tools
Explore all available tools and capabilities
Usage Guides
Learn common workflows and best practices