Pagerlane MCP Connector
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pagerlane MCP Connector show me the most recent alerts from the last 24 hours"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pagerlane-mcp (Pagerlane MCP connector)
Works with Keep (keephq). Not affiliated with or endorsed by Keep Alerting LTD.
Pagerlane calls a Keep API you already run. It uses stdio or stateless Streamable HTTP. It does not start Keep.
Tool names use the keep_ prefix because each tool wraps a Keep API route.
The server reads Keep's public REST API only. It contains no Keep source code.
TypeScript 6 is intentional. typescript-eslint strict type-aware rules need the JavaScript compiler API, which TypeScript 7 does not ship.
Setup
npm install
npm run ci # typecheck, lint, test, build
npm start # stdio
npm run start:http # Streamable HTTP at http://localhost:3000/mcp and /healthCopy .env.example to .env and export the variables in your shell, or set them in the client config. KEEP_API_URL is required. Point it at your Keep API, for example http://localhost:8080 or https://api.keephq.dev.
Claude Desktop / any stdio client:
{
"mcpServers": {
"pagerlane": {
"command": "node",
"args": ["/workspace/connectors/pagerlane/dist/index.js"],
"env": {
"KEEP_API_URL": "http://localhost:8080",
"KEEP_API_KEY": "...",
"KEEP_CONTACT": "you@example.com"
}
}
}
}Docker (HTTP, no authentication, keep it on localhost):
docker build -t pagerlane-mcp .
docker run -p 3000:3000 \
-e KEEP_API_URL=http://host.docker.internal:8080 \
-e KEEP_API_KEY=your-keep-api-key \
pagerlane-mcpRegister every tool with registerConnectorTool. The helper requires a Zod object schema and a non-empty description (toolDescription). Calling server.registerTool anywhere else fails lint.
Related MCP server: Keephub MCP Server
Environment
Variable | Default | Role |
| none, required | Keep API origin and optional path. No userinfo, query, or hash |
| unset | Required for an upstream call. Sent only as |
|
| Contact inside the User-Agent. Must not contain the API key |
|
| Local sliding-window cap |
|
| TTL for successful reads. |
|
| Upstream timeout |
|
|
|
|
| HTTP listen port |
Invalid values are reported by field name and issue code. The rejected value is not included in the error.
Auth matches Keep's APIKeyHeader(name="X-API-KEY") in keep/identitymanager/authverifierbase.py:21 (commit 465e991). The key is never placed in the URL, logs, or tool output.
Tools
Routes are taken from Keep commit 465e991 (keep/api/routes/*.py with prefixes in keep/api/api.py). docs/openapi.json is v0.24.5 and may be stale. When it disagrees with the routes, the routes win.
Tool | Method and path | Source | Notes |
|
|
| Keep default |
|
|
| CEL search ( |
|
|
| |
|
|
|
|
|
|
| Optional |
|
|
| Strips |
|
|
| A comment at |
|
|
| Optional |
|
|
| Services come from topology, not a separate services list |
|
|
| Enrichments |
|
| same as acknowledge | Enrichments |
|
|
|
|
|
|
| One |
|
|
| JSON |
Read tools use readOnlyHint: true. Write tools use readOnlyHint: false. Acknowledge, resolve, enrich, and incident update set idempotentHint: true. Workflow run sets idempotentHint: false because each call creates a new execution.
update_incident_from_dto_by_id (keep/api/core/db.py:4129) assigns user_summary on every user PUT (db.py:4173). It also assigns same_incident_in_the_past_id when that key is in the DTO dict (db.py:4165). IncidentDtoIn.dict() always contains the key, so a partial PUT clears both fields. Other DTO fields stay as they are when the new value is null. IncidentSeverity values are tuples such as ("critical", 5) (keep/api/models/db/incident.py:37). Severity changes use POST /incidents/{incident_id}/severity with { severity, comment }.
keep_update_incident takes incident_id, confirm, and one change. change.kind is status, severity, or fields. A fields change sets at least one of user_generated_name, assignee, user_summary, or same_incident_in_the_past_id. That last field is a UUID, or null to clear the link. With confirm: true, the tool GETs /incidents/{incident_id}, parses those four fields, and PUTs them with your values over the stored ones. The PUT body leaves severity out. A dry-run makes no upstream call. The preview body lists only the fields you set. Its summary says unspecified user_summary and same_incident_in_the_past_id will be preserved by reading the current incident first.
GET /workflows (workflows.py:178) is the list this connector calls. The handler has a comment that it should be deprecated and removed (workflows.py:182) in favor of POST /workflows/query (workflows.py:195). The tool still calls GET.
POST /workflows/{workflow_id}/run (workflows.py:357) accepts an optional JSON object plus the query params event_type and event_id. get_event_from_body (workflows.py:315) reads type, body, and inputs. Omitted type means alert. Omitted body means the outer object is the event. AlertDto (alert.py:75) declares status (alert.py:78) and severity (alert.py:79). Its root validator (alert.py:249) sets a missing or invalid status to firing and a missing or invalid severity to info. The same function fills a missing name with manual-run, a missing lastReceived with the current time, and id from fingerprint when id is missing. The tool types status and severity when you send them. An alert run rejects the incident-only statuses merged and deleted. An incident run rejects the alert-only statuses suppressed, pending, and maintenance. Omit type to run an alert. For an incident event, IncidentDto sets an invalid status to firing (incident.py:159). When both replay query params are set, Keep loads the stored alert. Incident replay raises NotImplementedError in this commit (workflows.py:407).
Confirm and dry-run
Every write tool's input includes confirm: z.literal(true).optional(). The only accepted value is the boolean true. confirm: false and confirm: "true" fail Zod and make no upstream call.
When confirm is omitted, the tool does not call Keep. It returns a preview:
{
"dryRun": true,
"method": "POST",
"path": "alerts/enrich",
"query": { "dispose_on_new_alert": true },
"body": { "fingerprint": "fp-1", "enrichments": { "status": "acknowledged" } },
"summary": "Acknowledge alert fp-1 via POST /alerts/enrich with status=acknowledged."
}One shared WritePlan is built by a pure function, then either previewed or executed. A direct write is { kind: "request", method, path, query, body, summary }. An incident field update is { kind: "read-merge-put", path, previewBody, summary } plus a pure merge used only after confirm is true. That plan GETs the incident, merges, and PUTs. The dry-run does not call Keep.
Limits
In-memory TTL cache (
KEEP_CACHE_TTL_SEC, default 60 seconds) for reads. A cache hit does not spend the local rate limit. The cache is dropped when the process exits. Writes skip the cache and clear it after a successful call so later reads refetch.Local sliding window (
KEEP_PER_MINUTE, default 30 requests per 60 seconds) around upstream calls.When the local window is full, the tool returns
isErrorwith a[rate-limit]message and a retry hint. Cached results are still served.Upstream limits still apply. HTTP 429 is returned as
[rate-limit]. HTTP 404 is[not-found]. Other upstream failures are[upstream].Response bodies larger than 1,000,000 characters are rejected.
The API key is redacted from tool results, error text, and logs, including its URL-encoded form. It is refused in the query string, the base URL, and the User-Agent.
HTTP mode has no authentication. Do not expose it beyond localhost.
Enterprise and Cloud-only endpoints
This connector does not wrap Keep Enterprise or AI endpoints.
Identity managers under
ee/identitymanager/(Auth0, Azure AD, Keycloak) are Keep Enterprise. OSS Keep still authenticates API keys throughkeep/identitymanager/authverifierbase.py.GET /ai/statsandPUT /ai/{algorithm_id}/settingslive in MITkeep/api/routes/ai.pyand are not exposed here.Incident PUT accepts
generatedByAi(incidents.py:387). This connector does not send that query flag.Incident DTOs include AI-ish fields such as
ai_generated_nameandis_predicted. Those can appear in GET responses. This connector does not call incident-AI helpers.
License and attribution
Keep's repository is MIT except
ee/, which is under the Keep Enterprise License. This connector uses only the public REST API and contains no Keep code."Keep" is a trademark of Keep Alerting LTD. This project is not affiliated with, endorsed by, or sponsored by Keep Alerting LTD. No Keep logo is included.
User-Agent is
pagerlane-mcp/0.1.0 (<KEEP_CONTACT>). PointKEEP_CONTACTat a real address before production use.You are responsible for complying with the Keep instance's own access policy and with any provider credentials stored in that instance.
License
MIT, see LICENSE. This is an independent, unofficial connector and is not endorsed by the Pagerlane project or its owners.
Available Tools
14 toolskeep_acknowledge_alertAIdempotent
Acknowledge an alert. POST /alerts/enrich?dispose_on_new_alert=true with enrichments status=acknowledged. Omit confirm for a dry-run preview. confirm must be the boolean true to execute.
Inputs: fingerprint (required), confirm, dispose_on_new_alert.
keep_enrich_alertBIdempotent
Enrich an alert. POST /alerts/enrich with fingerprint and a string enrichments map. Optional dispose_on_new_alert (API default false). Omit confirm for a dry-run preview.
Inputs: enrichments (required), fingerprint (required), confirm, dispose_on_new_alert.
keep_get_alertBRead-only
Get one alert by fingerprint. GET /alerts/{fingerprint}.
Inputs: fingerprint (required).
keep_get_incidentBRead-only
Get one incident by UUID. GET /incidents/{incident_id}. Optional include_alerts also calls GET /incidents/{incident_id}/alerts.
Inputs: incident_id (required), alerts_limit, alerts_offset, include_alerts.
keep_get_topologyCRead-only
Get topology services. GET /topology with optional provider_ids, services, environment, include_empty_deps.
Inputs: services, environment, provider_ids, include_empty_deps.
keep_list_alertsARead-only
List the latest Keep alerts. GET /alerts with limit (Keep default 1000). Cached reads. Auth is the X-API-KEY header.
Inputs: limit.
keep_list_applicationsBRead-only
List topology applications. GET /topology/applications.
Inputs: no named parameters.
keep_list_incidentsCRead-only
List incidents. GET /incidents with limit, offset, sorting, cel, candidate, predicted, and the declared status, severity, assignees, sources, affected_services query params.
Inputs: cel, limit, offset, status, +7 more.
keep_list_providersARead-only
List available, installed, and linked providers. GET /providers. Provider config, details, and credential fields are stripped. This response is not cached.
Inputs: no named parameters.
keep_list_workflowsCRead-only
List workflows. GET /workflows. Keep's source says this GET should be deprecated and removed in favor of POST /workflows/query. This tool still uses GET.
Inputs: no named parameters.
keep_resolve_alertAIdempotent
Resolve an alert. POST /alerts/enrich?dispose_on_new_alert=true with enrichments status=resolved. Omit confirm for a dry-run preview. confirm must be the boolean true to execute.
Inputs: fingerprint (required), confirm, dispose_on_new_alert.
keep_run_workflowA
Run a workflow. POST /workflows/{workflow_id}/run with optional type, body, and inputs. type defaults to alert. An alert body may set status and severity. Keep defaults a missing alert status to firing and a missing alert severity to info. Query event_type and event_id replay a stored alert. Incident replay is not implemented. Each run creates a new execution. Omit confirm for a dry-run preview.
Inputs: workflow_id (required), body, type, inputs, +3 more.
keep_search_alertsBRead-only
Search alerts with CEL. POST /alerts/query with QueryDto (cel, limit, offset, sort_by, sort_dir). This is Keep's current query path. POST /alerts/search is the older SearchEngine route and is not used.
Inputs: cel, limit, offset, sort_by, +1 more.
keep_update_incidentAIdempotent
Update an incident with one change. status posts to /incidents/{id}/status with status, comment, and tagged_users. severity posts to /incidents/{id}/severity with severity and comment. fields reads the incident, then PUTs user_generated_name, assignee, user_summary, and same_incident_in_the_past_id merged over the current values. Keep's PUT clears user_summary and same_incident_in_the_past_id when they are omitted. Severity is not sent on PUT. Omit confirm for a dry-run preview.
Inputs: change (required), incident_id (required), confirm.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools target a distinct resource+action (list/get/search alerts, get/update incidents, run workflows, topology, providers). The one soft spot is keep_acknowledge_alert, keep_resolve_alert, and keep_enrich_alert, which all hit POST /alerts/enrich and differ essentially by status, with enrich_alert being a generic superset that could also set status. Descriptions help, but the three represent overlapping purposes.
Every tool follows the keep_verb_noun snake_case pattern (keep_list_alerts, keep_get_incident, keep_update_incident, keep_run_workflow). Verbs are used predictably (list/get/search/update/run) and no convention mixing occurs.
14 tools is well within the ideal range and each maps to a concrete endpoint or triage action across alerts, incidents, workflows, topology, and providers. There is no obvious filler or redundant tool bloating the surface.
Core read and triage flows are covered (list/search/get alerts, acknowledge/resolve/enrich, list/get/update incidents, run workflows). However, there are notable gaps: no incident creation, no workflow creation or get-by-id, and no delete/close operations beyond incident status updates. Agents would hit dead ends for creating incidents or inspecting individual workflows.
Maintenance
Related MCP Connectors
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Query and manage SquaredUp dashboards, data streams, the knowledge graph, and KPIs (EU region).
Read UpKeep work orders, assets, parts and meters; create requests and work orders.
Query and manage SquaredUp dashboards, data streams, the knowledge graph, and KPIs (US region).
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude to interact with Karma Alert dashboard to monitor and analyze Kubernetes alerts. Provides tools to check alert status, filter by cluster/severity, get detailed alert information, and analyze alert statistics and trends.141MIT
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to interact with the Keephub REST API for managing content, tasks, users, organizational charts, and form submissions through domain-specific tools and guided workflows.32 npmMIT
- AlicenseAqualityBmaintenanceEnables LLMs to interact with Kibana through composable toolboxes for building dashboards, managing data, and handling alerts, among other operations.27Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to explore and administer a Keycloak instance via the Keycloak Admin REST API, covering realms, users, groups, roles, clients, sessions, events, client scopes, identity providers, and authentication flows, with read-only operation by default and optional write tools.4410 npmMIT