Harbor

How do I connect ChatGPT or Claude to Harbor?

You connect your AI through Harbor’s open surface — the CLI, the agent skill, and the MCP server.

The quickest path, if you use an AI coding assistant:

  1. Create a Personal Access Token in Harbor. This is how your AI signs in as you — and you can revoke it any time.
  2. Install the harbor CLI.
  3. Run harbor skill install. It drops a self-contained agent skill into Claude Code, Codex, or Cursor that teaches the assistant to create, edit, richly format, organize, search, remind, and share notes.

From there, you just ask: “file these meeting notes into the Projects notebook and tag them follow-up,” and your assistant does it through the CLI.

Using Claude or ChatGPT to chat rather than to code? Skip the CLI. Add Harbor as a custom connector instead — paste https://app.harbor.my/mcp, approve the login, and your notes become a tool the AI can use directly. Nothing else to install: here are the steps.

Connecting Codex to the MCP server

Codex can use Harbor’s MCP server too, and it gets its own login. Add this to ~/.codex/config.toml:

[mcp_servers.harbor]
url = "https://app.harbor.my/mcp"

[mcp_servers.harbor.oauth]
client_id = "harbor-mcp"

Then run codex mcp login harbor. Your browser opens Harbor’s consent screen, which shows Codex as Harbor’s own app. Approve it and you’re connected.

A few things worth knowing:

  • Copy the URL exactly. https://app.harbor.my/mcp, with no slash on the end. Harbor refuses any other address for this login.
  • It’s for Codex only, for now. Cursor and Claude Code can’t use harbor-mcp yet. They connect the usual way, by adding the URL and approving the login.
  • The login only reaches the MCP server. It can’t be used for the rest of the Harbor API. You still approve what it can do on the consent screen, same as any other app.
  • Leave out client_id and it still works. Codex registers itself instead, and the consent screen adds a note that the app is running on your own computer. That’s expected, and nothing to worry about.

If Codex logs in but Harbor’s tools are missing

Codex can keep your login in two places: your computer’s secure store, or the file .credentials.json in your .codex folder. codex mcp login uses the secure store when it can. Some Codex builds only look in the file, so they never find the login. Codex then says “OAuth authorization required” and leaves out Harbor’s tools. It happens most on Windows.

The fix is to tell Codex to use the file. Add this line to the very top of config.toml, above [mcp_servers.harbor]:

mcp_oauth_credentials_store = "file"

On Windows, the file is %USERPROFILE%\.codex\config.toml. Then log in again. In a terminal, run:

codex mcp logout harbor
codex mcp login harbor

Then restart Codex. If you run Codex in more than one place, each one has to use the same .codex folder. A Codex inside WSL, for example, has its own.

Where to go next

More on how the two compare in What are the Harbor CLI and MCP server?, and for the wider picture — who else ships one — MCP servers for notes, explained.

To point an assistant at one particular note rather than describing it and hoping search finds the right one, paste in the note’s ID — one click copies it from the note’s Info panel.

Building something yourself? Every CLI command supports --json, and harbor openapi hands any tool the complete OpenAPI spec. Third-party apps can integrate via OAuth.

Two privacy notes, plainly stated. Your AI sees only what you’ve authorized it to see, and over the API or MCP an encrypted note isn’t part of that — here’s exactly what it gets instead. The CLI is the one exception, because it runs on your machine: set HARBOR_PASSPHRASE in a terminal an agent can reach and it can read your encrypted notes there. That’s your call to make, not a leak — but make it knowingly. And what your AI provider does with text you send it is governed by their policies, so connect the AI you trust.

Need more help?

Still stuck? Send us a message and a real person will get back to you.

Get help →