Infrahub MCP Server

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

Local serverstdio

What is the Infrahub MCP server?

Infrahub MCP server exists for a simple reason — assistants are far more useful when they can act on Infrahub directly instead of describing what you should do. An MCP server connects your AI assistants to Infrahub using the open MCP standard.

What you get

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

Setting it up

infrahub-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration and credentials

You will need 2 environment variables: INFRAHUB_ADDRESS, INFRAHUB_API_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Choosing this one

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by com.opsmill; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the infrahub mcp server does with a few real requests.

How to install the Infrahub MCP server

{
  "mcpServers": {
    "infrahub": {
      "command": "uvx",
      "args": ["infrahub-mcp"],
      "env": {
        "INFRAHUB_ADDRESS": "your-value",
        "INFRAHUB_API_TOKEN": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
INFRAHUB_ADDRESSConfiguration value read at startup.Optional
INFRAHUB_API_TOKENCredential the server authenticates with.Yes

Frequently asked questions

It connects Infrahub to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Infrahub directly.