Guide

Connect Claude to CottonDB

Updated 10 September 2026

Your Mac is the server. Claude connects to it by URL, you approve the connection from a device you already hold, and from then on Claude can read your data and, if you allow it, write to it. Three ways in, one approval flow, five minutes.

Before you start

Your server's address

Your Mac's address is shown in CottonDB for Mac. Type its name here to fill the addresses on this page in, or read on with the placeholder.

https://<your-server>/v1/mcp

Claude on the web and Claude Desktop

  1. Open Settings → Connectors → Add custom connector. Claude Desktop uses the same settings.
  2. Name it CottonDB and paste your server's address, the one above ending in /v1/mcp. Leave the client ID and secret empty: the server registers the client itself.
  3. Claude opens your server's approval page. It has no sign-in form. It shows a short code.
  4. On your iPhone open Settings → Connected AIs → Approve a request, type the six-digit code, and approve. Reading is always granted; write access is a checkbox you tick or leave.
  5. Back in Claude, the connector shows as connected. Start a conversation and ask it for your day.

Claude Code

Register the server, then authenticate from inside a session.

claude mcp add --transport http cotton https://<your-server>/v1/mcp

Run /mcp, choose cotton, then Authenticate. The same approval page opens; approve it from your phone as above.

A script, or a client with no browser

For a cron job or a client that cannot open the approval page, the app can mint a token to paste, from Settings → Connected AIs. It is shown once. Send it as a bearer token on every request to /v1/mcp. It has the scopes you chose when you made it and appears in the same list as every other connection, where it can be revoked.

What Claude sees, and what it does not

Claude gets 186 tools. Each is annotated as read-only or not, so a client can show you what a call will do before it does it. The first thing a well-behaved session calls is one project, which returns the working context you keep there; the second is your briefing.

No tool returns a document's password, the value of a stored secret, your alarms, or your backup key. An assistant can list what is in the bin, and restore or erase it. Memory accepts only sentences you said. Nothing over MCP erases a note, a journal entry or a screenplay.

What Claude reads passes to Anthropic under Anthropic's terms. Every call is written to an audit table in your database with its arguments redacted, so you can see what was read and when.

Disconnecting

Settings → Connected AIs lists every assistant and token with when it was last used. Revoke any of them there. Revocation is immediate; a revoked connection's next call is refused.

If it does not connect