NestDaddy

Petra Security

io.github.WYRE-AI/petra-mcp ยท v1.0.1

Read-only Petra Security MCP: M365 compromise incidents, failed attacks, posture, tenants, usage.

Connect Runs on your machine

Terminal
claude mcp add petra-mcp -e PETRA_API_KEY=<PETRA_API_KEY> -e MCP_TRANSPORT=<MCP_TRANSPORT> -e AUTH_MODE=<AUTH_MODE> -e LOG_LEVEL=<LOG_LEVEL> -- docker run -i --rm ghcr.io/wyre-ai/petra-mcp:v1.0.1
claude_desktop_config.json
{
  "mcpServers": {
    "petra-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/wyre-ai/petra-mcp:v1.0.1"
      ],
      "env": {
        "PETRA_API_KEY": "<PETRA_API_KEY>",
        "MCP_TRANSPORT": "<MCP_TRANSPORT>",
        "AUTH_MODE": "<AUTH_MODE>",
        "LOG_LEVEL": "<LOG_LEVEL>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "petra-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/wyre-ai/petra-mcp:v1.0.1"
      ],
      "env": {
        "PETRA_API_KEY": "<PETRA_API_KEY>",
        "MCP_TRANSPORT": "<MCP_TRANSPORT>",
        "AUTH_MODE": "<AUTH_MODE>",
        "LOG_LEVEL": "<LOG_LEVEL>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "petra-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/wyre-ai/petra-mcp:v1.0.1"
      ],
      "env": {
        "PETRA_API_KEY": "<PETRA_API_KEY>",
        "MCP_TRANSPORT": "<MCP_TRANSPORT>",
        "AUTH_MODE": "<AUTH_MODE>",
        "LOG_LEVEL": "<LOG_LEVEL>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
PETRA_API_KEY
Required, secret
Petra Security API key, created by a Petra Admin under Settings > API Keys at app.petrasecurity.com. Shown only once at creation.
MCP_TRANSPORT
Optional
Transport mode for the server. Set to 'stdio' for local CLI use; the image defaults to 'http' for gateway hosting.
AUTH_MODE
Optional
Credential source: 'env' reads vars locally, 'gateway' expects header injection from the WYRE MCP Gateway.
LOG_LEVEL
Optional
Log verbosity: debug, info, warn, error

Details

Packageghcr.io/wyre-ai/petra-mcp:v1.0.1 (OCI, stdio)
First published6 Nov 2026
Last updated6 Nov 2026
Registry nameio.github.WYRE-AI/petra-mcp

More security servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.