# kmittal8/vcenter_mcp architecture

> Architecture diagram of the GitHub repository kmittal8/vcenter_mcp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kmittal8/vcenter_mcp
- Repository: https://github.com/kmittal8/vcenter_mcp

## Overview

This is an MCP server that exposes vCenter inventory queries and management actions as tools for Claude. The main workflow is Claude sending a tool request over HTTP/SSE; the server connects to vCenter through pyVmomi, performs the requested operation, and returns JSON. The graph preserves the documented VM, host, storage, network, snapshot, overview, and alarm capabilities. Tool implementations share server.py; unsampled tool details and wiring are represented only where README documents them.

Main entry points: [`server.py`](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py) (MCP Server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["MCP Interface"]
  node_mcp["MCP Server<br/>[server.py]"]
  node_connection["vCenter Connection<br/>[server.py]"]
end

subgraph group_compute["Compute Management"]
  node_vm_tools["VM Tools<br/>[server.py]"]
  node_host_tools["Host Tools<br/>[server.py]"]
end

subgraph group_infrastructure["Infrastructure Queries"]
  node_storage_tools["Datastore Tools<br/>[server.py]"]
  node_network_tools["Network Tools<br/>[server.py]"]
end

subgraph group_insights["Snapshots and Overview"]
  node_snapshot_tools["Snapshot Tools<br/>[server.py]"]
  node_overview_tools["Inventory Summary<br/>[server.py]"]
  node_alarm_tools["Alarm Tools<br/>[server.py]"]
end

node_claude(("Claude"))
node_vcenter["vCenter Server"]

node_claude -->|"sends tool requests"| node_mcp
node_mcp -->|"dispatches tools"| node_vm_tools
node_mcp -->|"dispatches tools"| node_host_tools
node_mcp -->|"dispatches tools"| node_storage_tools
node_mcp -->|"dispatches tools"| node_network_tools
node_mcp -->|"dispatches tools"| node_snapshot_tools
node_mcp -->|"dispatches tools"| node_overview_tools
node_mcp -->|"dispatches tools"| node_alarm_tools
node_vm_tools -->|"opens connection"| node_connection
node_host_tools -->|"opens connection"| node_connection
node_storage_tools -.->|"opens connection"| node_connection
node_network_tools -.->|"opens connection"| node_connection
node_snapshot_tools -->|"opens connection"| node_connection
node_overview_tools -->|"opens connection"| node_connection
node_alarm_tools -->|"opens connection"| node_connection
node_connection -->|"connects via pyVmomi"| node_vcenter

click node_mcp "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"
click node_connection "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"
click node_vm_tools "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"
click node_host_tools "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"
click node_storage_tools "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"
click node_network_tools "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"
click node_snapshot_tools "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"
click node_overview_tools "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"
click node_alarm_tools "https://github.com/kmittal8/vcenter_mcp/blob/main/server.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mcp,node_connection toneBlue
class node_vm_tools,node_host_tools toneAmber
class node_storage_tools,node_network_tools,node_vcenter toneMint
class node_snapshot_tools,node_overview_tools,node_alarm_tools toneRose
class node_claude toneIndigo
```

## Components

### MCP Interface

- [MCP Server](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`
- [vCenter Connection](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`

### Compute Management

- [VM Tools](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`
- [Host Tools](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`

### Infrastructure Queries

- [Datastore Tools](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`
- [Network Tools](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`

### Snapshots and Overview

- [Snapshot Tools](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`
- [Inventory Summary](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`
- [Alarm Tools](https://github.com/kmittal8/vcenter_mcp/blob/main/server.py): `server.py`

### Other components

- **Claude**
- **vCenter Server**

## Connections

- Claude → MCP Server: sends tool requests (evidence: `README.md`)
- MCP Server → VM Tools: dispatches tools (evidence: `server.py`)
- MCP Server → Host Tools: dispatches tools (evidence: `server.py`)
- MCP Server → Datastore Tools: dispatches tools (evidence: `README.md`)
- MCP Server → Network Tools: dispatches tools (evidence: `README.md`)
- MCP Server → Snapshot Tools: dispatches tools (evidence: `server.py`)
- MCP Server → Inventory Summary: dispatches tools (evidence: `server.py`)
- MCP Server → Alarm Tools: dispatches tools (evidence: `server.py`)
- VM Tools → vCenter Connection: opens connection (evidence: `server.py`)
- Host Tools → vCenter Connection: opens connection (evidence: `server.py`)
- Datastore Tools → vCenter Connection: opens connection (evidence: `server.py`)
- Network Tools → vCenter Connection: opens connection (evidence: `server.py`)
- Snapshot Tools → vCenter Connection: opens connection (evidence: `server.py`)
- Inventory Summary → vCenter Connection: opens connection (evidence: `server.py`)
- Alarm Tools → vCenter Connection: opens connection (evidence: `server.py`)
- vCenter Connection → vCenter Server: connects via pyVmomi (evidence: `server.py`)
