Infrahub Mcp

com.opsmillPublished by opsmill.comv0.1.2Updated Nov 10, 2026

An MCP server connects your AI assistants to Infrahub using the open MCP standard.

VerifiedSTDIODesktop onlyDatabasesCloud & Infrastructure

Overview

AI-generated overview

Connects AI assistants to Infrahub so they can query, create and update infrastructure data and propose changes for review.

What you can do
  • Query infrastructure data in natural language, finding devices, interfaces, IP addresses or any schema kind with attribute filters and partial-match search
  • Explore the schema through exposed catalog, per-kind attribute and filter maps, and GraphQL SDL resources
  • Make changes on auto-created isolated session branches, leaving the default branch untouched
  • Submit changes as Proposed Changes for human approval before merging
  • Run arbitrary GraphQL queries or mutations against the Infrahub API
When to use it
Useful when your infrastructure or network data lives in Infrahub and you want an assistant to look things up, draft edits on a branch, and hand them over for review instead of editing the source of truth by hand.
Requirements
Runs locally as a Python package (pip or uv install) or a Docker image, over stdio by default or Streamable HTTP. Needs a reachable Infrahub instance address in INFRAHUB_ADDRESS and an API token in INFRAHUB_API_TOKEN. Works with any MCP-compatible client; desktop only.
Before you install
Requires an Infrahub API token, which grants access to your infrastructure data. The server can create and update data and run arbitrary GraphQL mutations, so writes are possible; they are branch-isolated and meant to need human approval before merging, but review proposed changes carefully. Data is sent to your configured Infrahub instance.

Installation

In SourceWeft

  1. Open Infrahub Mcp in the dashboard and add it to a workspace.
  2. 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

Infrahub MCP Server

Infrahub MCP Server connects AI assistants and IDE agents to Infrahub using the open Model Context Protocol standard — so agents can query, create, update, and propose changes to your infrastructure data through a consistent, audited interface. It works with any MCP-compatible client (Claude Desktop, VS Code, Cursor, CLI agents, and more) with no custom glue code required.

All writes are branch-isolated and require human approval before merging — agents never modify your default branch directly.

Installation

pip install infrahub-mcp
# or
uv pip install infrahub-mcp

Docker:

docker pull registry.opsmill.io/opsmill/infrahub-mcp:latest
# or use Docker Compose:
docker compose up -d

Quickstart

Point the server at your Infrahub instance via environment variables, then run it over the transport your client expects.

stdio (default — for Claude Desktop, VS Code, Cursor):

export INFRAHUB_ADDRESS=http://localhost:8000
export INFRAHUB_API_TOKEN=<your-token>
infrahub-mcp

Streamable HTTP (for remote clients, sidecar deployments):

infrahub-mcp --transport streamable-http --host 0.0.0.0 --port 8001

What you can do with it

  • Query your infrastructure data from natural language — find devices, interfaces, IP addresses, or any kind in your schema, with attribute filtering and partial-match search.
  • Explore your schema without leaving the conversation — the server exposes your catalog, per-kind attribute/filter maps, and the GraphQL SDL as MCP resources.
  • Make changes on isolated branches — writes land on an auto-created session branch (mcp/session-YYYYMMDD-<hex>); the default branch is never touched directly.
  • Submit changes for human review — call propose_changes to open a Proposed Change for approval before merging.
  • Run arbitrary GraphQL — execute any query or mutation against the Infrahub API when you need full control.

Documentation

Full documentation, including client configuration for Cursor, VS Code, Claude Desktop, and Claude Code, is available at the Infrahub MCP Server docs site.

About Infrahub

Infrahub is an open source infrastructure data management and automation platform (AGPLv3), developed by OpsMill. It gives infrastructure and network teams a unified, schema-driven source of truth — devices, topology, IP space, configuration — with built-in version control, a generator framework for automation, and native integrations with Git, Ansible, Terraform, and CI/CD pipelines.

License

Apache 2.0 — see LICENSE.

Source: README.md at commit 46e13e7

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.2LatestSep 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