# Hostim MCP server

> Deploy and manage applications, databases, volumes, and domains on the Hostim EU cloud platform.

- Repository: https://github.com/hostimdev/cli
- Page: https://hostedmcp.org/servers/hostimdev/cli
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.1.58

## Install

### Claude Code

```sh
claude mcp add --env HOSTIM_TOKEN=<YOUR_HOSTIM_TOKEN> cli -- docker run -i --rm ghcr.io/hostimdev/cli:v0.1.58
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "cli": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hostimdev/cli:v0.1.58"
      ],
      "env": {
        "HOSTIM_TOKEN": "<YOUR_HOSTIM_TOKEN>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "cli": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hostimdev/cli:v0.1.58"
      ],
      "env": {
        "HOSTIM_TOKEN": "<YOUR_HOSTIM_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "cli": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hostimdev/cli:v0.1.58"
      ],
      "env": {
        "HOSTIM_TOKEN": "<YOUR_HOSTIM_TOKEN>"
      }
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.cli]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/hostimdev/cli:v0.1.58"]

[mcp_servers.cli.env]
HOSTIM_TOKEN = "<YOUR_HOSTIM_TOKEN>"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "cli": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hostimdev/cli:v0.1.58"
      ],
      "env": {
        "HOSTIM_TOKEN": "<YOUR_HOSTIM_TOKEN>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HOSTIM_TOKEN` | yes | yes | Hostim API token. Create one in the console under Account Settings → API Tokens. |

## FAQ

### How can I deploy an application from a local directory?

You can deploy a local directory by using the --source flag; the directory is uploaded and built using its Dockerfile.

### What types of databases does Hostim support?

Hostim allows you to manage MySQL, Postgres, and Redis databases.

### How do I authenticate with the Hostim CLI?

You can use `hostim login` which uses a device code and a browser for approval, or provide an existing API token using the --token-value flag.

### Can I deploy a static site?

Yes, if a directory contains an index.html and no Dockerfile, it can be served as a static site using nginx.
