Skip to content
VS Code

infrahub mcp for VS Code

com.opsmill/infrahub-mcp

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

client:VS Code transport:stdio runtime:pypi

Install infrahub mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "infrahub-address",
      "description": "INFRAHUB_ADDRESS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "infrahub-api-token",
      "description": "INFRAHUB_API_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "infrahub-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "infrahub-mcp"
      ],
      "env": {
        "INFRAHUB_ADDRESS": "${input:infrahub-address}",
        "INFRAHUB_API_TOKEN": "${input:infrahub-api-token}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

infrahub mcp in other clients