Canonical page: https://drawfather.com/docs/mcp-clients/

# Connect your coding agent

Choose your agent below and follow its setup steps. The hosted beta uses a remote MCP connection and a private access key. You do not need to install DrawFather. Local setup remains available if you prefer to run the engine yourself.

## Before connecting to the beta

You need an invitation and an access key. There is no public signup or OAuth login yet. Merge server entries into your existing configuration rather than replacing other tools. Keep real keys out of project files and chat messages.

[Cursor](#hosted-setup-in-cursor) · [Codex](#hosted-setup-in-codex) · [Claude Code](#hosted-setup-in-claude-code) · [Claude Desktop](#claude-desktop-and-other-clients)

The service has been tested with an MCP SDK client. Full hosted acceptance in the applications below remains in progress.

## Set your access key for a terminal client

Use this step for Codex or Claude Code. Keep the terminal open for the remaining steps. The variable lasts for this terminal session.

### macOS or Linux

1. Run this command in Bash or Zsh:

   ```sh
   read -rs DRAWFATHER_ACCESS_KEY && export DRAWFATHER_ACCESS_KEY
   ```

2. Paste the access key from your invitation and press Enter. The key stays hidden as you type.
3. Start Codex or Claude Code from the same terminal after adding its configuration below.

### Windows PowerShell

1. Run this command, then enter your key at the hidden prompt:

   ```powershell
   $env:DRAWFATHER_ACCESS_KEY = [System.Net.NetworkCredential]::new('', (Read-Host 'DrawFather access key' -AsSecureString)).Password
   ```

2. Start Codex or Claude Code from this PowerShell session after adding its configuration below.

These commands keep the key itself out of shell history. For a desktop app launched outside this terminal, use the client’s private credential settings or make the variable available to that app separately. Do not paste the key into chat or commit it to a file in your project.

## Hosted setup in Cursor

Add this server entry to your private `~/.cursor/mcp.json`, replacing `YOUR_ACCESS_KEY`. Keep it out of a committed project configuration.

```json
{
  "mcpServers": {
    "drawfather": {
      "url": "https://mcp.drawfather.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_ACCESS_KEY"
      }
    }
  }
}
```

Cursor also supports `Bearer ${env:DRAWFATHER_ACCESS_KEY}` in the header if the variable is available to the application. Reconnect or enable the server in Cursor’s MCP settings, then ask its Agent to discover the tools. See [Cursor’s MCP documentation](https://cursor.com/docs/mcp) for current settings and configuration locations.

## Hosted setup in Codex

[Set your access key](#set-your-access-key-for-a-terminal-client) in the terminal first. The command below uses the variable’s name, not the key itself.

```sh
codex mcp add drawfather --url https://mcp.drawfather.com/mcp --bearer-token-env-var DRAWFATHER_ACCESS_KEY
codex mcp list
```

Start a new session after changing the configuration. The equivalent entry in your private Codex configuration is:

```toml
[mcp_servers.drawfather]
url = "https://mcp.drawfather.com/mcp"
bearer_token_env_var = "DRAWFATHER_ACCESS_KEY"
```

A desktop or IDE application may not inherit your terminal’s environment. Confirm that the variable is available to the client you launch. See the [official OpenAI MCP documentation](https://developers.openai.com/codex/mcp).

## Hosted setup in Claude Code

[Set your access key](#set-your-access-key-for-a-terminal-client) in the terminal first. Merge this entry into your project’s `.mcp.json`:

```json
{
  "mcpServers": {
    "drawfather": {
      "type": "http",
      "url": "https://mcp.drawfather.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DRAWFATHER_ACCESS_KEY}"
      }
    }
  }
}
```

Keep the variable reference in the file. Store the actual key privately. Open `/mcp` in Claude Code, approve the server if prompted, and check its status. This recipe uses Claude Code’s documented HTTP and environment-variable support; a full hosted DrawFather acceptance test in Claude Code is still pending. See [Claude Code’s MCP guide](https://code.claude.com/docs/en/mcp).

## Claude desktop and other clients

Use the hosted endpoint only if your client can send a fixed Authorization header with Streamable HTTP. An OAuth-only remote connector cannot use this beta’s access key. Hosted Claude desktop acceptance is still pending; the earlier local desktop test does not establish remote compatibility.

The local setup below remains an alternative for clients that can launch a stdio server. No bridge package or extra proxy is required by the hosted setup documented here.

## Verify your connection

Ask the agent to discover capabilities, create a short process, check diagnostics, show a preview and export SVG/PNG. Then ask for a targeted label edit. Have the agent download the editable source and images into your project, and open those files yourself.

Do not treat a saved configuration as proof of a working drawing workflow. Your client controls tool approvals, image previews and how files are saved locally.

## Local client setup

Build the engine using the [local instructions](https://drawfather.com/docs/installation/#local-and-self-hosted). Repository access is currently required. Then configure the client to launch the compiled CLI.

### Local server configuration

Replace both paths in this server entry. Merge it with existing servers rather than replacing your whole configuration file.

```json
{
  "mcpServers": {
    "drawfather": {
      "command": "node",
      "args": [
        "/absolute/path/DrawFather/dist/cli.js",
        "--directory",
        "/absolute/path/project/drawings"
      ]
    }
  }
}
```

If `node` is unavailable in a desktop client’s environment, use its absolute executable path. See [installation](https://drawfather.com/docs/installation/) for the source build.

### Local Codex terminal

Register the built server with Codex CLI:

```sh
codex mcp add drawfather -- node /absolute/path/DrawFather/dist/cli.js --directory /absolute/path/project/drawings
codex mcp list
```

Restart a running session after changing tool configuration. The public benchmark verifies the terminal surface; it does not establish identical behavior in every Codex extension or desktop surface. Keep normal tool approvals appropriate to the directory and task.

### Local Cursor

Put the shared JSON entry in the project’s `.cursor/mcp.json`. Open the project, inspect Settings → Tools & MCPs, and enable DrawFather if its switch is off. Ask Cursor’s built-in Agent to discover the tools and create a drawing.

The recorded acceptance used Cursor’s built-in Agent. A separate Codex extension is not required by this setup.

### Local Claude desktop

Merge the server entry into Claude desktop’s developer MCP configuration, then completely quit and reopen the application. Use absolute paths, including Node’s path when necessary. Approve the synthetic drawing workflow in the application when prompted.

The [official MCP local-server guide](https://modelcontextprotocol.io/docs/develop/connect-local-servers) explains the local transport. Follow your client’s current interface for locating its configuration.

## Verification scope

Earlier records cover local Codex terminal, Cursor’s built-in Agent and Claude desktop, each with a synthetic drawing workflow. Hosted HTTPS tests cover creation, edits, previews, source retrieval, history, all five export formats and recovery across restarts using an SDK client. They do not prove full hosted acceptance in those IDE and desktop applications or every diagram option.

The [verification records](https://github.com/its-imad/DrawFather/tree/main/docs/verification) retain failures and test boundaries. Repository links currently require access.
