Skip to main content
Harbor stores its configuration at ~/.harbor/config.toml. You can edit this file directly or manage everything through the desktop app and CLI.

File Location

Structure

Harbor Settings

Servers

Each server is defined under [servers.<name>]. A server must have either command (stdio) or url (remote HTTP) — not both.

Stdio server example

Remote HTTP server example

Server Fields

Either command or url is required — you must set exactly one. Setting both (or neither) is an error.

Tool Filtering

You can control which tools a server exposes using allowlists, blocklists, and per-host overrides:
Resolution order:
  1. If a host-specific override exists in tool_hosts, only those tools are allowed for that host.
  2. Otherwise, apply global tool_allowlist (tool must be in it).
  3. Then apply global tool_blocklist (tool must NOT be in it).

Hosts

Each host is defined under [hosts.<name>]:

Host Fields

Valid host names: claude, claude-desktop, codex, vscode, cursor

Full Example

Publish settings example

For self-hosted relays, also set: