Skip to main content

MCP server for On-Call Health burnout analysis

Project description

oncallhealth-mcp

PyPI version Python 3.10+

MCP server for On-Call Health burnout analysis. Connects AI assistants to your on-call data for workload insights.

Prerequisites

Installation

Pick your editor or client below and follow the instructions.

Claude Code

claude mcp add oncallhealth -e ONCALLHEALTH_API_KEY=och_live_... -- uvx oncallhealth-mcp

Claude Desktop

Add to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "oncallhealth": {
      "command": "uvx",
      "args": ["oncallhealth-mcp"],
      "env": {
        "ONCALLHEALTH_API_KEY": "och_live_your_api_key_here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for global):

{
  "mcpServers": {
    "oncallhealth": {
      "command": "uvx",
      "args": ["oncallhealth-mcp"],
      "env": {
        "ONCALLHEALTH_API_KEY": "och_live_your_api_key_here"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "oncallhealth": {
      "command": "uvx",
      "args": ["oncallhealth-mcp"],
      "env": {
        "ONCALLHEALTH_API_KEY": "och_live_your_api_key_here"
      }
    }
  }
}

VS Code / GitHub Copilot

Add to .vscode/mcp.json in your project:

{
  "servers": {
    "oncallhealth": {
      "command": "uvx",
      "args": ["oncallhealth-mcp"],
      "env": {
        "ONCALLHEALTH_API_KEY": "och_live_your_api_key_here"
      }
    }
  }
}

Manual / Other Clients

Install from PyPI:

pip install oncallhealth-mcp

Run the server:

export ONCALLHEALTH_API_KEY=och_live_...
oncallhealth-mcp

Or run without installing using uvx:

ONCALLHEALTH_API_KEY=och_live_... uvx oncallhealth-mcp

Configuration

Environment Variables

Variable Required Default Description
ONCALLHEALTH_API_KEY Yes - API key from oncallhealth.ai
ONCALLHEALTH_API_URL No https://api.oncallhealth.ai API endpoint URL

Security Note

Avoid committing API keys to version control. Use environment variables or a secrets manager instead of hardcoding keys in config files.

Available Tools

analysis_start

Start a new burnout analysis for your on-call data.

Parameters:

  • days_back (int, default: 30): Number of days to analyze
  • include_weekends (bool, default: true): Include weekend data
  • integration_id (int, optional): Specific integration to analyze

analysis_status

Check the status of a running analysis.

Parameters:

  • analysis_id (int): ID of the analysis to check

analysis_results

Get full results for a completed analysis.

Parameters:

  • analysis_id (int): ID of the completed analysis

analysis_current

Get the most recent analysis for your account.

Parameters: None

integrations_list

List all connected integrations (Rootly, GitHub, Slack, Jira, Linear).

Parameters: None

Resources

oncallhealth://methodology

Provides a brief description of the On-Call Health methodology for measuring workload and burnout risk.

Prompts

weekly_brief

Template for generating a weekly on-call health summary.

Parameters:

  • team_name (str): Name of the team to summarize

CLI Reference

usage: oncallhealth-mcp [-h] [--transport {stdio,http}] [--host HOST]
                        [--port PORT] [-v] [--version]

options:
  -h, --help            show this help message and exit
  --transport {stdio,http}
                        Transport to use (default: stdio)
  --host HOST           Host to bind to (http transport only, default: 127.0.0.1)
  --port PORT           Port to bind to (http transport only, default: 8000)
  -v, --verbose         Enable verbose logging
  --version             show program's version number and exit

Transport Options

  • stdio (default): Standard input/output transport. Used by Claude Desktop and most MCP clients.
  • http: HTTP transport with Server-Sent Events. Useful for web-based clients or debugging.

Links

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oncallhealth_mcp-0.2.0.tar.gz (67.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oncallhealth_mcp-0.2.0-py3-none-any.whl (43.5 kB view details)

Uploaded Python 3

File details

Details for the file oncallhealth_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: oncallhealth_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 67.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for oncallhealth_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6fceb2b049e4b4dca18ba043b7010418bac7dbc2cb7145c3464a752841d64378
MD5 ac90f9b59509d2037729fe2e01c3925d
BLAKE2b-256 e5a3fa9c7864ada0c45749aac138a6d46dd1064ac574aadfcbcc56cb06bc0ab3

See more details on using hashes here.

File details

Details for the file oncallhealth_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for oncallhealth_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9209839d9188f2570fd0aa56a829a46c7a9967a7e69e461982420cd9e3b8c2dd
MD5 28044a397c5808155cac04b60b8741f9
BLAKE2b-256 8cd95f5479d83f418ef42ebe03b0576c16f27b656a851b84201f2e95bc9c8c35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page