
Infra Lens Mcp
io.github.oaslanankaPublished by GitHub account oaslanankav1.5.1Updated Nov 3, 2026
SSH Linux metrics, baselines, anomaly detection, and plain-English infrastructure explanations.
The publisher's own server: Infrapage
Overview
Connects to Linux hosts over SSH to collect bounded metrics, store baselines in local SQLite, explain anomalies, and draft review-first incident reports.
- What you can do
- Analyze live Linux hosts over SSH: sampled windows, immediate snapshots, and point-in-time observations
- Manage baselines and history: record labeled healthy states, compare current state to a baseline, read CPU, memory and load history from SQLite
- Check host readiness: verify required Linux commands and proc files before collection
- Plan remediation and draft incident reports or postmortems from stored observations, without executing changes
- Compare adjacent time windows on one host or the same window across two hosts
- When to use it
- Useful when an assistant needs to diagnose Linux server performance or incidents over SSH, keep a local history of observations, and produce evidence-backed explanations, remediation plans, or postmortem drafts for human review.
- Requirements
- Runs locally as a stdio process via npx or Node.js (22 or newer; 24 LTS for CI and Docker). Needs reachable Linux SSH targets with /proc, free, df, ps and uname, plus SSH host verification through known_hosts or a pinned SHA256 host key. Optional settings include INFRA_LENS_DB for the SQLite path and MCP_SSH_ALLOWED_HOSTS for host allowlisting.
Installation
In SourceWeft
- Open Infra Lens Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
infra-lens-mcp
Explain Linux incidents over SSH with baseline-aware MCP tooling.
A TypeScript MCP server for live Linux diagnostics, local SQLite history,
review-first incident workflows, and secure observability exports.
[CI status] [CodeQL status] [Security Gates status] [OSV-Scanner status] [Codecov coverage] [OpenSSF Scorecard]
[npm version] [npm downloads] [Node.js 22 or newer] [MCP 2025-11-25] [Signed multi-architecture GHCR image] [MIT license]
Documentation · Usage · Architecture · Security · Governance · Roadmap · Support · Releases
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 artifacts. The npm package and signed container are release-ready; public connector publication remains intentionally blocked until an external OAuth/HTTPS deployment is verified.
Demo
See the MCP 2025-11-25 compliance matrix for current protocol support, delegated behavior, and connector publication constraints.
Tools
All tools return both readable JSON text and MCP structuredContent validated by declared outputSchema definitions, so clients and agents can consume responses without parsing the text block. Collection tools include a warnings array when optional sections cannot be collected but a partial snapshot is still usable. Use analyze_server_snapshot for interactive checks; use analyze_server only when a sampled window is required. Sampled analysis emits MCP progress when the client supplies a progress token and never persists a cancelled partial run.
Requirements
- Node.js 24 LTS for CI, Docker, and release workflows
- Node.js 22 or newer for package runtime compatibility
- pnpm 11.15.1 through Corepack for development installs
- Linux SSH targets with
/proc,free,df,ps, anduname - Strict SSH host verification through
known_hostsor pinned SHA256 host keys
Quick Start
Run the stdio MCP server from npm:
Desktop MCP client style configuration:
Local development:
Configuration
Transport is selected by the executable entry point, not by an environment variable: npx -y infra-lens-mcp or node dist/mcp.js starts stdio, while node dist/server-http.js starts Streamable HTTP.
MCP_DB_PATH from older examples is not used; use INFRA_LENS_DB.
SSH Security
Strict host key checking is enabled by default. Provide either:
- a
hostKeySha256value in the connection input, such asSHA256:... - a
knownHostsPathin the connection input MCP_SSH_KNOWN_HOSTSpointing at an OpenSSHknown_hostsfile
Raw passwords, private keys, and passphrases are accepted only in the default full profile for trusted local MCP contexts. remote-safe, chatgpt, and claude profiles reject raw SSH credentials in tool input and require MCP_SSH_ALLOWED_HOSTS. Production SSH policy can also restrict exact hosts or IPv4 CIDR ranges, users, ports, per-host active sessions, and per-host connection attempts.
Process command arguments are not collected by the default process command. Secret-like values in process data, SSH errors, and logs are redacted before storage or output.
HTTP Transport
Run the Streamable HTTP transport locally. The canonical MCP endpoint is http://127.0.0.1:3000/mcp unless MCP_HTTP_ENDPOINT_PATH is changed. HTTP mode is stateless today: the server does not issue or accept MCP-Session-Id, and only POST JSON-RPC calls are supported on the MCP endpoint. MCP_HTTP_REQUEST_TIMEOUT_MS and any proxy timeout must exceed the requested sampled window; otherwise use analyze_server_snapshot. stdio has no server-owned wall-clock request timeout, so the client controls its timeout and MCP cancellation.
Loopback HTTP can run without auth for local development. Any non-loopback bind, such as 0.0.0.0, fails fast unless all of these are configured:
MCP_PROFILE=remote-safe,chatgpt, orclaudeMCP_HTTP_AUTH_MODE=beareroroauth-gatewayMCP_HTTP_ALLOWED_ORIGINSMCP_HTTP_ALLOWED_HOSTS
Native OAuth/JWT validation is not implemented inside this package. Public deployments should use MCP_HTTP_AUTH_MODE=oauth-gateway behind a production OAuth-aware gateway or reverse proxy, configure HTTPS MCP_HTTP_RESOURCE_URL, and block direct access to the Node process. Keep origin/host allowlists, body limits, request timeout, concurrency limit, and optional rate limit enabled at the Node process even when an upstream proxy also enforces them. See ADR 0006. Connector publication readiness remains false until a full connector deployment is verified.
Docker
The Docker image defaults to stdio mode:
For local HTTP testing, override the command and keep the bind host on loopback unless a remote-safe profile and auth controls are configured:
Observability exports
Observability is a separate, disabled-by-default process that reads the latest persisted observations without initiating SSH collection:
The default OpenMetrics endpoint is http://127.0.0.1:9464/metrics. Optional OTLP/HTTP JSON export uses standard OTEL_EXPORTER_OTLP_* variables. See Observability exports for Prometheus, OpenTelemetry, privacy, and remote-access guidance.
Development
Docker-backed SSH e2e validation uses a self-contained fixture lifecycle:
If a fixture is already running and you intentionally want to skip lifecycle management, use:
Start with the documentation index for usage, client setup, operations, incident workflows, observability, storage, security, governance, testing, and release guidance. Generated API docs live in docs/api, and reviewed incident examples live in examples/incidents.
Community
Use SUPPORT.md for support channels and response expectations. Active work is tracked in the infra-lens-mcp Governance project. Project conduct is defined in CODE_OF_CONDUCT.md, and maintainer triage policy lives in docs/governance.md.
Release
Releases are managed through release-please manifest mode and the guarded GitHub Actions release workflow. Implementation PRs must not publish packages, containers, MCP Registry entries, marketplace artifacts, or production GitHub Releases.
See docs/release.md and docs/release-state-machine.md.
License
Agent plugin and runtime configuration
This repository owns the product-level agent plugin, MCP runtime configuration, and product-specific skills for infra-lens-mcp. The central agent-tools repository should catalog this plugin, but the manifest and workflow instructions live here so they stay synchronized with the actual MCP server package.
Validate plugin packaging locally:
For review-first remediation plans, incident drafts, and host/time-window comparisons, see Incident workflows.
Source: README.md at commit 35c072a
Tools
0Version history
1- v1.5.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Infra integrations
Infrapage
page.infraOfficial publisher
Gives an assistant read-only access to your Infrapage dashboards, including pages, widgets, live values and weekly recaps.

Homelab Infra Mcp
Published by GitHub account seayniclabs
Lets an assistant manage a homelab's Nginx Proxy Manager hosts, Docker containers and Cloudflare DNS, with approval before every change.

Infra Health & SSL Monitor MCP
Published by GitHub account Ansarii
Remote MCP server that lets an assistant check TLS/SSL certificate expiry, DNS resolution and TCP port status for hosts it monitors.
EveryInfra
Published by GitHub account xiaoxihexiaoyu
EveryInfra is a paid remote MCP server giving assistants structured public web data from 106 platforms, 17 web search tools, CAPTCHA solving and an AI text…

Mcp Infra Lens
Published by GitHub account oaslananka
A local MCP server that gathers SSH Linux metrics, compares them against baselines, flags anomalies and explains infrastructure findings in plain English.