Skip to main content

Pingera MCP Server

A Model Context Protocol server for Pingera: let AI assistants investigate and manage uptime, API, SSL, DNS, port-scan and Playwright checks, alerts, heartbeat monitors and status pages.

It runs two ways:

  • Self-hosted - on your machine over stdio (Claude Desktop, Cursor, VS Code, ...) or as your own HTTP server, with your Pingera API key.
  • Multi-tenant - the hosted server at https://mcp.app.pingera.ru/mcp (or your own deployment): one HTTP server for many users, where every request carries the user's own Pingera credentials.

Built on the official MCP Python SDK 2.x and the Pingera Python SDK.

Quick start

You need a Pingera API key: create one at app.pingera.ru/settings/tokens.

Hosted server (nothing to install)

Connect your MCP client to https://mcp.app.pingera.ru/mcp (streamable HTTP) and send your key in the Authorization header. Claude Code:

claude mcp add --transport http pingera https://mcp.app.pingera.ru/mcp --header "Authorization: Bearer YOUR_PINGERA_API_KEY"

Cursor (.cursor/mcp.json; VS Code's .vscode/mcp.json is the same under "servers" with "type": "http"):

{
  "mcpServers": {
    "pingera": {
      "url": "https://mcp.app.pingera.ru/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_PINGERA_API_KEY",
        "X-Pingera-Toolsets": "default,heartbeats"
      }
    }
  }
}

The optional X-Pingera-Toolsets, X-Pingera-Tools and X-Pingera-Mode: read_only headers choose which tools this client gets (see Tools and Per-request options).

Local server over stdio

Requires uv. Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and similar clients:

{
  "mcpServers": {
    "pingera": {
      "command": "uvx",
      "args": ["--from", "pingera-mcp-server", "pingera-mcp"],
      "env": {
        "PINGERA_API_KEY": "YOUR_PINGERA_API_KEY",
        "PINGERA_MODE": "read_write"
      }
    }
  }
}

Leave out PINGERA_MODE to start read-only. From a checkout: uv sync && uv run pingera-mcp.

Then ask things like "Which checks failed in the last 24 hours and why?", "Create an API check for https://api.example.com/health from Moscow and Frankfurt and alert me in Telegram after 3 failures" or "Post an incident on our status page: payments are degraded".

Tools

Tools are grouped into toolsets. The default toolsets cover monitoring, alerting and status pages (78 tools in read-write mode, 48 read-only; 121 with all toolsets). Fewer tools means a smaller prompt and better tool choice, so enable only what you use:

Where Choose toolsets Choose exact tools
Hosted or any HTTP server, per client X-Pingera-Toolsets: default,heartbeats header X-Pingera-Tools: list_checks,get_check header (alias X-MCP-Tools)
Your own server (stdio or HTTP default) PINGERA_TOOLSETS or --toolsets PINGERA_TOOLS or --tools

Toolset names are listed below; default and all work everywhere. A header overrides the server's default for that client; exact tools override toolsets. Selection is per connection (headers or server settings), not per tool call: clients load the tool list once, before the model uses any tool.

Toolset What Tools
core (default) Connection check and reference documentation (always enabled) check_connection, get_reference
account (default) Organization details and usage get_organization, get_usage
pages (default) Status pages list_status_pages, get_status_page, find_status_page_by_domain, list_page_templates
changes: create_status_page, update_status_page, delete_status_page
components (default) Status page components, component groups and component uptime list_components, get_component, list_component_groups, get_component_group, list_component_statuses, get_component_uptime, get_page_uptime
changes: create_component, update_component, delete_component, create_component_group, update_component_group, delete_component_group
incidents (default) Status page incidents, incident updates, scheduled maintenance and postmortems list_incidents, list_unresolved_incidents, list_maintenances, get_incident, list_incident_updates, get_incident_options, get_incident_postmortem
changes: create_incident, update_incident, delete_incident, add_incident_update, edit_incident_update, delete_incident_update, log_past_incident, save_incident_postmortem, publish_incident_postmortem
checks (default) Monitoring checks: configuration, regions and on-demand runs list_checks, get_check, list_check_regions, get_check_job, list_check_jobs
runs: run_check, run_custom_check
changes: create_check, update_check, delete_check, move_check_to_group
results (default) Check results, uptime, response times, status history and multi-region executions list_check_results, get_check_result, search_results, get_check_uptime, get_check_status_periods, get_response_times, get_status_counts, list_execution_groups, get_execution_group
alerts (default) Alerts, alert rules and alert channels list_alerts, get_alert, list_alert_notifications, get_alert_stats, list_alert_rules, get_alert_rule, list_alert_channels, get_alert_channel
runs: test_alert_channel, test_alert_channel_settings
changes: acknowledge_alert, resolve_alert, create_alert_rule, update_alert_rule, delete_alert_rule, create_alert_channel, update_alert_channel, delete_alert_channel
heartbeats Heartbeat (cron job) monitors and their pings list_heartbeats, get_heartbeat, list_heartbeat_pings, count_heartbeat_pings, list_heartbeat_channels
runs: send_heartbeat_ping
changes: create_heartbeat, update_heartbeat, delete_heartbeat, set_heartbeat_channels, remove_heartbeat_channel
check_groups Check groups list_check_groups, get_check_group, list_group_checks
changes: create_check_group, update_check_group, delete_check_group
secrets Organization secrets and the secrets injected into checks list_secrets, get_secret, list_check_secrets
changes: create_secret, update_secret, delete_secret, add_check_secret, remove_check_secret
page_access Status page passwords and custom sender email domains list_page_passwords, get_page_email_domain
runs: verify_page_email_domain
changes: create_page_password, update_page_password, delete_page_password, generate_page_email_domain_records
private_locations Private locations and runner tokens for self-hosted check runners list_private_locations, get_private_location
changes: create_private_location, update_private_location, delete_private_location, create_runner_token, revoke_runner_token
reports PDF uptime reports list_reports, get_report
runs: request_report
audit Organization audit log list_audit_events

Access levels. Read tools only read. Runs execute something without changing configuration (run a check now, send a test notification, request a report); they are available in read-only mode. Changes create, update or delete data and are hidden in read-only mode. Tool annotations (readOnlyHint, destructiveHint, idempotentHint) tell clients which tools need confirmation.

Arguments. Create and update tools are generated from the Pingera SDK models, so their schemas carry the API's field descriptions, limits and allowed values. Update tools change only the fields you pass. Time arguments accept ISO 8601 or relative values like 30m, 24h, 7d.

Also available: resources pingera://reference/check_types and pingera://reference/alerts (also through the get_reference tool) and prompts investigate_check, create_synthetic_check and communicate_incident.

Configuration

Environment variables (a .env file is read too; see .env.example). Command line options (pingera-mcp --help) override them.

Variable Default Meaning
PINGERA_API_KEY / PINGERA_JWT_TOKEN - Credentials for stdio and for HTTP with MCP_HTTP_AUTH=env (the JWT wins if both are set)
PINGERA_BASE_URL https://api.pingera.ru Pingera API (a trailing /v1 is accepted)
PINGERA_MODE (alias MCP_MODE) read_only read_only or read_write
PINGERA_TOOLSETS default Comma-separated toolsets, default or all
PINGERA_TOOLS - Comma-separated tool names to expose instead of toolsets, e.g. list_checks,get_check,list_check_results
PINGERA_TIMEOUT, PINGERA_MAX_RETRIES 30, 3 API request timeout (seconds) and retries
MCP_TRANSPORT stdio stdio or http (streamable HTTP)
MCP_HOST, MCP_PORT, MCP_PATH 127.0.0.1, 8000, /mcp HTTP listener and endpoint
MCP_HTTP_AUTH request HTTP credentials: request (each request sends its own) or env (the server's key)
MCP_JSON_RESPONSE true Answer HTTP requests with JSON instead of SSE streams
MCP_ALLOWED_HOSTS, MCP_ALLOWED_ORIGINS - Only accept these Host / Origin values (DNS rebinding protection; host:* allows any port). Without them, only a loopback server with MCP_HTTP_AUTH=env checks them (localhost only)
LOG_LEVEL INFO Logging level (PINGERA_DEBUG=true sets DEBUG)

HTTP server

pingera-mcp --transport http --mode read_write             # development, http://127.0.0.1:8000/mcp
uvicorn pingera_mcp.asgi:app --host 0.0.0.0 --workers 4    # production (configured by environment)
docker compose up                                          # the Docker image, see DOCKER.md

The endpoint is /mcp; /health is the health check and / describes the server. The server is stateless: it keeps no MCP sessions, so any worker or replica can answer any request and it scales horizontally without sticky sessions.

Credentials

With the default MCP_HTTP_AUTH=request (multi-tenant), every request must carry Pingera credentials, otherwise the server answers 401:

Header Meaning
Authorization: Bearer <API key> API key (works with clients that only support bearer tokens)
Authorization: Bearer <JWT> Pingera JWT access token (recognized by its format)
Authorization: <API key> or X-API-KEY: <API key> API key, the way the Pingera API itself accepts it

Credentials are used only for that request's API calls; they are never stored or shared between requests.

With MCP_HTTP_AUTH=env the server uses its own PINGERA_API_KEY for every client. Use it only for a private, single-account deployment.

Per-request options

Header Effect
X-Pingera-Mode: read_only Hide and block tools that change data for this client (cannot lift a read-only server)
X-Pingera-Toolsets: checks,results,alerts Use these toolsets instead of the server default (all and default work too)
X-Pingera-Tools: list_checks,get_check (alias X-MCP-Tools) Expose exactly these tools

Development

uv sync --extra dev
uv run pytest --ignore=tests/e2e     # unit and integration tests (fake Pingera API, no network)
PINGERA_E2E_URL=http://localhost:8000/mcp PINGERA_E2E_API_KEY=... uv run pytest tests/e2e

Releasing

Bump __version__ in pingera_mcp/__init__.py and add a ## <version> section to CHANGELOG.md, merge to main, then push a matching tag:

git tag 0.2.0 && git push origin 0.2.0

The release workflow runs the tests, builds and smoke-tests the package, publishes it to PyPI (Trusted Publishing) and creates a GitHub release with the changelog section as notes. The Docker image is built from the same tag with build/cluster-build.

The end-to-end tests run against a real server and API and create and delete objects in that organization, so use a test organization. docs/architecture.md explains how the server is put together and how to add tools. scripts/smoke_client.py calls a tool on a running server, and examples/langgraph_agent.py connects a LangGraph agent to it.

License

MIT - see LICENSE.

Metadata

Release files for pingera-mcp-server 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pingera-mcp-server 0.2.0
File Size Uploaded Provenance Actions
pingera_mcp_server-0.2.0.tar.gz 50.2 kB With provenance Details for pingera_mcp_server-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pingera-mcp-server 0.2.0
File Interpreter ABI Platform Actions
pingera_mcp_server-0.2.0-py3-none-any.whl Python 3 none any Details for pingera_mcp_server-0.2.0-py3-none-any.whl

Total release size: 99.7 kB

Release files / pingera_mcp_server-0.2.0.tar.gz

Download URL pingera_mcp_server-0.2.0.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7c39d5c75a6971e2356a94b100b958fe2f9ed637a69fbbe7e4c36c8952a598b1
BLAKE2b-256 checksum
How to use checksums
ce6f109ba14f34f3cf2ac6a5d856619bf9b8527753e9ef83baec0f0e602a2279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / pingera_mcp_server-0.2.0-py3-none-any.whl

Download URL pingera_mcp_server-0.2.0-py3-none-any.whl
Size 49.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52cbc5e90cd0a7a98869da2c3081258b6b8cb33428a8afbe5572d7adb8d33af1
BLAKE2b-256 checksum
How to use checksums
a807ae8880f988831f11856ff1772b8b699a859f03a4eb214ce3ce580daebcda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for pingera-mcp-server 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pingera_mcp_server-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page