Skip to main content
Glama
Infrastructure MCP Server

Infrastructure MCP Server

by berkeleyo

Infrastructure MCP Server

An independently authored, read-only Model Context Protocol server by berkeleyo. It exposes allowlisted multi-vendor infrastructure discovery, desired-state drift analysis, validation, and bounded network diagnostics to compatible AI clients. Provider discovery is delegated to the commit-pinned multi-vendor-infrastructure-automation package rather than duplicated here.

Offline inventory and mocked network boundaries are tested. No live cloud or firewall connectivity is claimed or required.

Architecture

flowchart LR
  C[MCP client] -->|stdio JSON-RPC| S[MCP SDK server]
  S --> A[Authorisation and typed validation]
  A --> I[Inventory service]
  A --> D[Bounded diagnostics]
  I --> P1[Project 1 package]
  P1 --> F[Offline fixtures]
  P1 --> L[Authorised read-only providers]
  D --> PUB[Allowlisted public destinations]
  S --> AUD[Redacted audit events on stderr]

Related MCP server: emfirge

Tools

Tool

Purpose

infrastructure_health

Configuration readiness, explicitly not live connectivity

discover_infrastructure

Normalized inventory for an allowlisted profile

detect_infrastructure_drift

Deterministic desired/actual comparison

validate_infrastructure_config

Project 1 schema validation without live calls

diagnose_dns

Bounded A, AAAA, CNAME, MX, and TXT lookups

diagnose_tls

Certificate, SAN, validity, cipher, and protocol inspection

diagnose_http

Body-free HEAD/GET status, timing, and safe headers

list_available_capabilities

Configured capabilities without connection claims

Install and run

python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'
INFRA_MCP_CONFIG=examples/server.yaml .venv/bin/infrastructure-mcp-server

Example client configuration:

{
  "mcpServers": {
    "infrastructure": {
      "command": "/absolute/path/infrastructure-mcp-server/.venv/bin/infrastructure-mcp-server",
      "env": {"INFRA_MCP_CONFIG": "/absolute/path/infrastructure-mcp-server/examples/server.yaml"}
    }
  }
}

The host chooses the executable, configuration, environment, credentials, and OS permissions. Tool approval prompts are useful UX but are not the security boundary. AI clients can select only preconfigured aliases—not arbitrary paths, hosts, URLs, or commands.

Run the deterministic offline suite with scripts/verify.sh. See RUNBOOK.md, security, and integration.

Lifecycle

Plan → Build → Test → Deploy → Operate → Improve: define trust boundaries and least privilege; implement typed read-only tools; test protocol and adversarial paths; package without cloud changes; operate with host-controlled profiles and redacted audit events; improve from reviewed evidence.

Known limitations

  • Live providers have not been smoke-tested by this repository.

  • Diagnostics deliberately reject redirects, private/reserved addresses, and arbitrary paths.

  • HTTP and TLS connect to the validated IP while preserving Host/SNI verification, preventing a second hostname resolution. Run the stdio process with network egress controls for defence in depth.

  • Stdio is local only; no remote HTTP transport or multi-user authentication is supplied.

Available Tools

8 tools
detect_infrastructure_driftC
Read-onlyIdempotent

Compare discovered resources with an allowlisted desired state.

Inputs: profile (required), desired_state (required). Returns: object

diagnose_dnsB
Read-onlyIdempotent

Resolve bounded DNS record types for an allowlisted public destination.

Inputs: destination (required), record_types. Returns: object

diagnose_httpB
Read-onlyIdempotent

Make a bounded body-free HTTP diagnostic to an allowlisted destination.

Inputs: destination (required), method. Returns: object

diagnose_tlsA
Read-onlyIdempotent

Inspect TLS metadata for an allowlisted public HTTPS destination.

Inputs: destination (required). Returns: object

discover_infrastructureC
Read-onlyIdempotent

Discover normalized resources from an allowlisted inventory profile.

Inputs: profile (required). Returns: object

infrastructure_healthA
Read-onlyIdempotent

Return configuration readiness; this does not assert live connectivity.

Inputs: no named parameters. Returns: object

list_available_capabilitiesA
Read-onlyIdempotent

List tools, configured providers and resource types without claiming connectivity.

Inputs: no named parameters. Returns: object

validate_infrastructure_configA
Read-onlyIdempotent

Validate a configured profile without contacting live providers.

Inputs: profile (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: the diagnose_* tools target TLS, DNS, and HTTP separately, while discovery, drift detection, and validation cover different lifecycle stages. The main overlap is between infrastructure_health, validate_infrastructure_config, and list_available_capabilities, which all report static configuration/readiness information and could be confused in some contexts.

    Naming Consistency4/5

    The names are consistently snake_case and mostly follow a verb_noun pattern such as diagnose_tls, discover_infrastructure, and validate_infrastructure_config. The main minor deviation is infrastructure_health, which is a noun phrase rather than a verb-led action, but it remains readable and predictable.

    Tool Count5/5

    Eight tools are well-scoped for an infrastructure diagnostics and validation server. Each tool maps to a distinct operational concern, and there are no obviously redundant or filler tools.

    Completeness4/5

    The surface covers discovery, drift detection, configuration validation, health/readiness, capability listing, and bounded TLS/DNS/HTTP diagnostics, which is strong for a read-only infrastructure inspection server. Minor gaps remain around deeper resource inspection or explicit live-connectivity checks, though the descriptions suggest those omissions may be intentional safety constraints.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to inspect and audit Azure Landing Zones by inventorying resources, auditing tagging, evaluating policy compliance, and detecting infrastructure drift, all in read-only mode.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to run read-only AWS security audits and receive normalized, severity-ranked findings about account posture, such as stale access keys, missing MFA, public buckets, open security groups, and CloudTrail coverage.
      11
      MIT