Link this client to an existing account
link_accountPoint this MCP client at an account you already have, so header-less calls from it stop spending the keyless trial.
This is for clients that cannot set HTTP headers — Claude.ai custom connectors and ChatGPT apps. If your client can set a header, prefer that: it is per-connection, it is not tied to a network address, and it needs no tool call at all.
Only a client with an identity of its own can be linked. A connector added with the shared URL and no client id is recognised by its IP address and User-Agent, and every user of a hosted connector shares those: they call from their vendor's servers. Linking that would link all of them, so it is refused. Add this server with a personal URL instead — https://mcp.galleyrender.com/mcp/c/<id>, with a random <id> of your own (https://galleyrender.com/docs/connect makes one) — or send X-Galley-Client-Id with at least 128 random bits, then link.
Two ways to prove the account is yours. api_key, if you have the key to hand. Or link_code, the one-time code mailed to the account's own address — call create_account with that address to have one sent, and nobody has to paste a key into a chat window.
Either way the credential is used once, checked, and dropped: what is stored is the account id and a key minted for this client, which unlink_account revokes.
Whoever has the client id acts as the account. A personal connector URL or a client id header is a credential once linked: keep it like a key, and unlink_account when you are done on a machine that is not yours. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | A Galley API key, starting `glr_sk_`. It is checked against the API and then discarded — the binding that is stored is by account id, and this server keeps no copy of the key. Give either this or `link_code`. | |
| link_code | No | The one-time code mailed to the account's address, like `GLR-4F7K-9QX2`. Ten minutes, one use. Ask for one by calling `create_account` with the address: if it already has an account, a code is what comes back. Use this when the person would rather not paste a key into a chat. Case, spaces and dashes do not matter. |