Use MCP with agents¶
Pagera exposes a Model Context Protocol (MCP) endpoint so coding agents can list, acknowledge, and resolve alerts with your personal API token.
| Endpoint | https://api.pagera.eu/mcp |
| Transport | Streamable HTTP (stateless) |
| Auth | Authorization: Bearer pgrt_… only |
Integration keys (pgr_…) and session cookies are not accepted on /mcp.
Create a personal API token¶
- Open Pagera and go to Account.
- Under API tokens, create a token with the scopes your agent needs:
alerts:read— list and fetch alertsalerts:write— acknowledge, unacknowledge, and resolve alerts- Optionally restrict the token to specific organisations.
- Copy the secret once (
pgrt_…). It is not shown again.
Revoke the token from the same page when you no longer need it.
Cursor config¶
Add a remote MCP server that points at the API host and sends your token:
{
"mcpServers": {
"pagera": {
"url": "https://api.pagera.eu/mcp",
"headers": {
"Authorization": "Bearer pgrt_…"
}
}
}
}
Replace pgrt_… with the token you copied. Other MCP clients that support
Streamable HTTP over HTTPS use the same URL and Bearer header.
Tools¶
| Tool | Scope | Description |
|---|---|---|
list_alerts |
alerts:read |
List alerts (default status open) |
get_alert |
alerts:read |
Fetch one alert by UUID |
acknowledge_alert |
alerts:write |
Acknowledge an open alert as the token’s user |
unacknowledge_alert |
alerts:write |
Clear acknowledgement on an open alert |
resolve_alert |
alerts:write |
Resolve an open alert. Acknowledgement is kept. A later firing opens a new alert |
Org access is the token’s organisation restriction intersected with your live membership. Viewers cannot acknowledge, unacknowledge, or resolve. An alert that is already resolved is refused.
REST API
The same personal tokens work on the customer REST API. OpenAPI docs:
/v1/docs.