Skip to main content
Glama
dkruyt

Hetzner Cloud MCP Server

by dkruyt

list_images

Retrieve available OS images for Hetzner Cloud server creation. View all system options to deploy virtual machines.

Instructions

List available images.

Returns a list of all available OS images that can be used to create servers.

Example:
- List images: list_images()

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'list_images' MCP tool. It uses the Hetzner Cloud API client to fetch all available images and returns their details in a structured dictionary format. No input parameters are required.
    def list_images() -> Dict[str, Any]:
        """
        List available images.
        
        Returns a list of all available OS images that can be used to create servers.
        
        Example:
        - List images: list_images()
        """
        try:
            images = client.images.get_all()
            return {
                "images": [
                    {
                        "id": image.id,
                        "name": image.name,
                        "description": image.description,
                        "type": image.type,
                        "status": image.status,
                        "os_flavor": image.os_flavor,
                        "os_version": image.os_version,
                        "architecture": image.architecture,
                        "size_gb": image.disk_size,
                        "created": image.created.isoformat() if image.created else None
                    }
                    for image in images
                ]
            }
        except Exception as e:
            return {"error": f"Failed to list images: {str(e)}"}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dkruyt/mcp-hetzner'

If you have feedback or need assistance with the MCP directory API, please join our Discord server