# open-artifacts MCP server

> Provides self-hosted hosting for AI-generated artifacts like HTML, Markdown, and Mermaid diagrams with secure sandboxed rendering.

- Repository: https://github.com/emaxe/open-artifacts
- Page: https://hostedmcp.org/servers/emaxe/open-artifacts
- Transport: stdio
- Stars: 2
- License: MIT

## Install

### Claude Code

```sh
claude mcp add open-artifacts -- npx -y @emaxe/oa
```

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

```json
{
  "mcpServers": {
    "open-artifacts": {
      "command": "npx",
      "args": [
        "-y",
        "@emaxe/oa"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "open-artifacts": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@emaxe/oa"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"open-artifacts","type":"stdio","command":"npx","args":["-y","@emaxe/oa"]}'
```

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

```json
{
  "mcpServers": {
    "open-artifacts": {
      "command": "npx",
      "args": [
        "-y",
        "@emaxe/oa"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add open-artifacts -- npx -y @emaxe/oa
```

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

```toml
[mcp_servers.open-artifacts]
command = "npx"
args = ["-y", "@emaxe/oa"]
```

### Gemini CLI

```sh
gemini mcp add -s user open-artifacts npx -- -y @emaxe/oa
```

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

```json
{
  "mcpServers": {
    "open-artifacts": {
      "command": "npx",
      "args": [
        "-y",
        "@emaxe/oa"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `OA_SERVER` | no | no |  |
| `OA_TOKEN` | no | no |  |

## Tools (10)

- `whoami`
- `list_orgs`
- `list_artifacts`
- `get_artifact`
- `create_artifact`
- `update_artifact`
- `delete_artifact`
- `create_share`
- `list_shares`
- `revoke_share`

## FAQ

### What formats can I publish?

You can publish interactive HTML applications, GitHub-flavored Markdown, responsive Mermaid diagrams, and raw vector SVG graphics.

### How secure is the artifact rendering?

The server uses a zero-trust security sandbox where untrusted artifacts render inside isolated iframe containers with strict Content Security Policy.
