Infra-lens-mcp Server

infra-lens-mcp connects to Linux hosts over SSH, captures bounded live metrics, stores observations and approved baselines in local SQLite, explains anomalies, and produces review-first incident…

Local serverstdioMIT

What is the Infra-lens-mcp Server?

Infra Lens is an MCP project maintained in the oaslananka/infra-lens-mcp repository. The maintainer describes its purpose as “infra-lens-mcp connects to Linux hosts over SSH, captures bounded live metrics, stores observations and approved baselines in local SQLite, explains anomalies, and produces review-first incident…”. Read the project documentation for the complete scope.

Installation

The documented npm package is infra-lens-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares INFRA_LENS_DB. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
analyze_serverAnalyze a bounded sampled window with progress/cancellation support, then store only the completed observation
analyze_server_snapshotAnalyze and store one immediate snapshot without a sampling delay
snapshotStore a point-in-time observation without anomaly analysis
record_baselineSave a labeled healthy-state sample
compare_to_baselineCompare current state with a named baseline
get_historyReturn CPU, memory, or load history from SQLite
inspect_host_capabilitiesCheck required Linux commands and proc files before collection
plan_remediationPropose evidence-backed, approval-required remediation without executing changes
draft_incident_reportDraft an incident report and postmortem from persisted observations
compare_incident_windowsCompare adjacent windows for one host or the same window across two hosts

How to install the Infra-lens-mcp Server

{
  "mcpServers": {
    "infra-lens": {
      "command": "npx",
      "args": [
        "-y",
        "infra-lens-mcp"
      ],
      "env": {
        "INFRA_LENS_DB": "/Users/you/.infra-lens-mcp/metrics.db"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
INFRA_LENS_DBDeclared in the maintainer’s client configuration.Check documentation