Skip to main content

Cursor

Cursor supports MCP servers natively. This guide shows how to add the PagerDuty MCP Server to Cursor.

Global Configurationโ€‹

Create or edit ~/.cursor/mcp.json:

{
"mcpServers": {
"pagerduty": {
"command": "uvx",
"args": ["pagerduty-mcp"],
"env": {
"PAGERDUTY_USER_API_KEY": "your-api-token-here"
}
}
}
}

Project-Level Configurationโ€‹

To use different credentials per project, create .cursor/mcp.json in your project root with the same structure.

With Write Tools Enabledโ€‹

To enable state-modifying tools (create incident, manage team, etc.):

{
"mcpServers": {
"pagerduty": {
"command": "uvx",
"args": ["pagerduty-mcp", "--enable-write-tools"],
"env": {
"PAGERDUTY_USER_API_KEY": "your-api-token-here"
}
}
}
}

Verifyโ€‹

After saving the config, restart Cursor. In the chat panel (Agent mode), the PagerDuty tools should be listed under available MCP tools.

tip

Use Tool Filtering to limit tools to a specific subset for better AI performance.