An MCP (Model Context Protocol) server that provides tools to query the Infragraph service for infrastructure graph data.
This MCP server enables users to query infrastructure graphs through the Infragraph service, allowing you to explore relationships between virtual machines, containers, databases, and other infrastructure components.
- QueryInfragraph: Query the Infragraph service with complex graph queries
- ListConnections: List all connections in an organization
- Query templates and examples in the
server/resources/directory
- Clone the repository:
git clone <repository-url>
cd infragraph-mcp-server- Install dependencies:
go mod tidy- Build the server:
make build./server/bin/infragraph-mcp-serverQuery the Infragraph service with complex graph queries.
Parameters:
org_id(required): The organization ID to queryquery(required): JSON string representing the graph query structure
List all connections in an organization.
Parameters:
org_id(required): The organization ID to list connections for
The server/resources/ directory contains pre-built query templates:
virtual_machines.json: Find all virtual machinesvm_with_images.json: Find VMs and their associated images
The server connects to the Infragraph service using the following endpoints:
- URL:
http://localhost:28081/infragraph/2025-05-07/organizations/{org_id}/connections - Method: GET
- Description: Retrieves all connections for the specified organization
- URL:
http://localhost:28081/infragraph/2025-05-07/organizations/{org_id}/query - Method: POST
- Request Body: JSON object with a
queryfield containing the graph query - Description: Executes complex graph queries against the infrastructure data