> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molfex.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Connection Guide

> Connect your AI client to Molfex and publish from chat.

Publish, update, and delete Molfex sites from your AI chat.

Sign in when your client asks. If it cannot open a browser, create an API key at [studio.molfex.app/api-keys](https://studio.molfex.app/api-keys) and paste it as a bearer token.

## Setup

### General

```
https://mcp.molfex.app/mcp
```

### Claude.ai

1. Click your name in the bottom-left sidebar → **Settings**.
2. Select **Connectors**.
3. Click **Add** → **Add custom connector**.
4. Name: `Molfex`. URL: `https://mcp.molfex.app/mcp`.
5. Click **Add**.

### Claude Code

```bash theme={null}
claude mcp add --transport http molfex https://mcp.molfex.app/mcp
```

### Codex

```bash theme={null}
codex mcp add molfex --url https://mcp.molfex.app/mcp
```

### Cursor

`~/.cursor/mcp.json` or project MCP config:

```json theme={null}
{
  "mcpServers": {
    "molfex": {
      "url": "https://mcp.molfex.app/mcp"
    }
  }
}
```

### v0 by Vercel

Open the **+** menu in the prompt → **MCPs**. Add a custom server with URL `https://mcp.molfex.app/mcp` and sign in with OAuth.

### Visual Studio Code

```json theme={null}
{
  "mcpServers": {
    "molfex": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.molfex.app/mcp"]
    }
  }
}
```

Or from the UI:

1. `Ctrl/Cmd + Shift + P` → **MCP: Add Server**.
2. Select **Command (stdio)**.
3. Enter: `npx mcp-remote https://mcp.molfex.app/mcp`
4. Name it `Molfex`.

### Windsurf

1. `Ctrl/Cmd + ,` to open Windsurf settings.
2. Scroll to **Cascade** → **MCP servers**.
3. Select **Add Server** → **Add custom server**.
4. Add:

```json theme={null}
{
  "mcpServers": {
    "molfex": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.molfex.app/mcp"]
    }
  }
}
```

### Zed

1. `Cmd/Ctrl + ,` to open Zed settings.
2. Add:

```json theme={null}
{
  "context_servers": {
    "molfex": {
      "source": "custom",
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.molfex.app/mcp"],
      "env": {}
    }
  }
}
```

### Jules

1. Create an API key at [studio.molfex.app/api-keys](https://studio.molfex.app/api-keys).
2. In Jules, go to **MCP Settings**.
3. Add a custom server pointing to `https://mcp.molfex.app/mcp` and paste your API key when prompted.

### Others

Any other client that supports MCP can connect with:

* Command: `npx`
* Arguments: `-y mcp-remote https://mcp.molfex.app/mcp`

Or send your Studio API key as a bearer token:

```json theme={null}
{
  "mcpServers": {
    "molfex": {
      "url": "https://mcp.molfex.app/mcp",
      "headers": {
        "Authorization": "Bearer molfex_..."
      }
    }
  }
}
```
