Connect OpsTrails to Claude Desktop by adding the MCP server to your configuration file.
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"opstrails": {
"url": "https://api.opstrails.dev/api/mcp/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Replace YOUR_API_KEY with a READ_ONLY API key from the console.
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonRestart Claude Desktop after updating the config file.