# Hostsmith MCP server

> Deploy static sites and files to live HTTPS URLs directly from an AI agent without repositories or build steps.

- Repository: https://github.com/hostsmith/mcp-server
- Page: https://hostedmcp.org/servers/hostsmith/mcp-server
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 1.8.0

## Install

### Claude Code

```sh
claude mcp add mcp-server -- npx -y @hostsmith/mcp-server
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@hostsmith/mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hostsmith/mcp-server"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@hostsmith/mcp-server"]}'
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@hostsmith/mcp-server"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server -- npx -y @hostsmith/mcp-server
```

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

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@hostsmith/mcp-server"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-server npx -- -y @hostsmith/mcp-server
```

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@hostsmith/mcp-server"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HOSTSMITH_API_DOMAIN` | no | no | Override the upstream API domain across both partitions; 'us.api.' and 'eu.api.' are prepended to this value. |
| `HOSTSMITH_BASE_URL` | no | no | Override the API base URL with a single fixed value, bypassing partition selection entirely. |
| `HOSTSMITH_URL` | no | no | Hostsmith app URL (OAuth endpoints). |

## Tools (16)

- `list_sites`
- `get_site`
- `create_site`
- `delete_site`
- `list_domains`
- `get_account`
- `deploy_files`
- `deploy_create_upload`
- `deploy_finalize`
- `list_redirects`
- `set_redirects`
- `edit_redirects`
- `add_redirect`
- `delete_redirect`
- `switch_file_redirects`
- `test_redirect`

## FAQ

### Can I choose where my data is stored?

Yes, you can choose between EU or US data residency for your sites.
