1
Copy the gateway's URL
On the project’s Agents page, under Connect an agent, pick
claude.ai and copy the URL, such as
https://gw-7hq2m4xd.eu.midplane.app/mcp.2
Add a custom connector
In claude.ai, go to Customize > Connectors, click + Add, then
Add custom connector. Name it
Midplane, paste the URL and click
Continue. Keep the sign-in settings it detects, and click Add.On a Team or Enterprise plan, an owner adds it for the organization, in
Organization settings > Connectors (Add, then Custom, then
Web). Each member then finds it under Customize > Connectors and
clicks Connect.3
Sign in and choose what it may reach
claude.ai opens Midplane. Sign in, set each database to None, Read
or Read + write, and Allow.
4
Try it
In a chat, check that
Midplane is on under + > Connectors, and ask
Claude which tables it can see. Its statement shows up in the project’s
Query log.You’re set: Claude can answer questions from your data, and only what your
policy allows runs. Masked columns stay masked, writes that need approval
wait for a person, and every statement is in the audit log. Results go from
your gateway to Anthropic, never through Midplane Cloud, and the relay
can’t read them (what the relay sees).
Permissions
In the connector’s settings, claude.ai groups the gateway’s tools:query,
list_tables, describe_table and check_approval are read-only, and
write is the one write/delete tool. Set the read-only group to Always
allow so reads run without a prompt, and keep write at Needs
approval, or Blocked for an agent that should only read: reads keep
working either way. An agent you gave Read on every database has no
write/delete tool to configure. Midplane’s policy decides on top: a write it
holds still waits for an owner or admin (what clients ask you to
confirm).
To cut it off, Revoke it under Connected agents on the Agents page.
It has to sign in again within 15 minutes.
If it doesn’t work
- claude.ai can’t connect to the URL: check that the setup step says Relay · connected, or the Gateways page Relay: connected, or see cannot reach the relay. A gateway on your computer must be running, and the computer awake.
- The consent page says it wants access, with no databases: you aren’t a member of the gateway’s project, or the URL isn’t registered. Ask an owner or admin of its organization to invite you.
- The Gateways page shows a URL of your own as not registered: see troubleshooting.
- claude.ai won’t add another connector: the Free plan allows one custom connector.
apps/gateway/test/setup-relay.test.ts (a gateway behind a
stand-in relay), apps/gateway/test/urls.e2e.test.ts (several URLs, and a
tunnel that rewrites Host) and apps/gateway/test/auth.test.ts for the
gateway’s side; the client’s steps by hand, through the relay.