apitell Start free
LEARN · CONNECTORS

Claude custom connector API key or bearer token

What auth Claude custom connectors and ChatGPT connectors accept today, and how to put any API key, bearer or basic-auth API behind one OAuth-protected MCP URL.

The short answer

Claude custom connectors and ChatGPT connectors connect to remote MCP servers, not to REST APIs. Both are built around OAuth sign-in. Claude also has a beta option for fixed request headers, available to a limited set of organizations; ChatGPT documents no such option.

So if the API you want only gives you an API key, a bearer token or a username and password, you need something in between: an MCP server that holds that credential and that Claude or ChatGPT can sign in to. This page shows what each client accepts, the trade-offs of the workarounds, and how Apitell puts any key-based API behind one OAuth-protected URL.

What follows was checked against Anthropic’s and OpenAI’s documentation in September 2026. Both change often; the links are at the end of each section.

What Claude custom connectors accept

A custom connector is a remote MCP server added by URL, for example https://mcp.example.com/mcp. It works in Claude on the web, Claude Desktop and Cowork, on the Free (one custom connector), Pro, Max, Team and Enterprise plans. You add one under Customize → Connectors → Add custom connector. On Team and Enterprise, an Owner adds it under Organization settings → Connectors and each member then connects with their own account.

When you add it, you choose how people authenticate:

  • Sign in now. Each user signs in through the server’s OAuth flow before using the connector.
  • Sign in when needed. Claude connects without credentials and asks the user to sign in when the server requires it.
  • No sign-in. Anyone with the server URL can use it.

For OAuth, Claude identifies itself with Anthropic’s published Client ID Metadata Document, registers itself through Dynamic Client Registration, or uses an OAuth client ID you enter. A machine-to-machine client_credentials grant is not supported: there is always a user in the loop.

Request headers (beta). For servers that authenticate with a fixed API key or bearer token, the dialog can show a Request headers section. It is in beta and available to a limited set of organizations, so you may not see it. Where it exists:

  • You pick a header name such as authorization, x-api-key or x-auth-token, up to four headers. Other names need Anthropic’s approval.
  • You enter the full value, scheme included: Bearer your-token, or Basic plus base64 credentials. Claude sends it as written.
  • Claude stores the value, does not show it again, and sends it on every request to the MCP server.
  • It is one credential for the whole organization. Anthropic recommends OAuth when each person needs their own account.
  • Auth settings cannot be edited later; you remove the connector and add it again.

Sources: Add a connector that isn’t in the directory, Authentication for connectors, Get started with custom connectors.

What ChatGPT connectors accept

In ChatGPT, remote MCP servers are added as apps in developer mode, on Plus, Pro, Business, Enterprise and Education accounts on the web. You turn on Developer mode in settings (currently under Security and login), then create an app for your server’s URL. Menu names have moved between rollouts; the steps for today are on our ChatGPT page.

The documented authentication options are:

  • OAuth, with static OAuth client credentials if you provide them, a Client ID Metadata Document when the authorization server supports it, or Dynamic Client Registration.
  • No authentication.
  • Mixed: listing tools needs no auth, and individual tools require OAuth or not.

There is no documented field for an API key or a custom header. For an API that only issues keys, ChatGPT needs an MCP server with OAuth in front of it.

Source: ChatGPT developer mode.

The catch with every workaround

Notice what all of these options authenticate: the MCP server, not the API behind it. Claude’s request headers send your key to an MCP server. ChatGPT’s OAuth signs you in to an MCP server. Neither makes Stripe, your CRM or your internal API speak MCP.

That leaves three common workarounds, each with a cost:

  1. A no-sign-in MCP server with the key baked in. It works in both clients. It also means anyone who learns the URL can use your API with your key, and every user shares one identity. Searches for “MCP server without OAuth” usually end here. Treat the URL as a secret you cannot rotate without breaking every client.
  2. Your own MCP server plus Claude’s request headers. The key goes into the Claude connector as a shared org credential. You still build, host and secure the server, it only works where the beta is enabled, and ChatGPT cannot use it.
  3. Your own MCP server plus your own OAuth. Correct, and a real project: an authorization server, discovery metadata, refresh-token rotation, consent, and a store for the upstream key. The MCP authorization spec also forbids passing the client’s token through to the upstream API, so you need two credentials and a place to keep the second.

Put any API behind one OAuth URL with Apitell

Apitell is that third option, already built, for every API at once. Claude and ChatGPT see one standard OAuth-protected MCP server. The APIs behind it keep whatever auth they have.

Claude / ChatGPT ──(OAuth sign-in: key A)──▶ mcp.apitell.com/mcp ──(API key from the vault: key B)──▶ your API

1. Connect the API in the console

Sign up, add a connector and pick the auth type your API uses: API key, bearer token, basic auth, or OAuth 2.0. Paste the credential once. It is encrypted, bound to that connector and that API’s host, and never shown again. Make it private (only you) or shared with your workspace.

Popular APIs are ready out of the box. Any HTTP API that publishes an AI Context file at <base>/ai works too, including your own.

2. Add one URL to Claude

In Claude, go to Customize → Connectors → Add custom connector and paste:

https://mcp.apitell.com/mcp

Leave the OAuth client ID and secret empty. If your dialog asks how people authenticate, choose Sign in now and Use Claude’s published identity. On Team and Enterprise, the Owner adds it once under Organization settings → Connectors; each member then clicks Connect and signs in with their own Apitell account. No request-header beta needed.

3. Or add it to ChatGPT

Turn on developer mode, create an app with the same URL, and choose OAuth. The same workspace, the same connectors.

4. Sign in and choose what the client may do

The sign-in opens in your browser. You pick which connectors this client may reach and whether it may make changes. Changes are off by default, and you can require a human approval per call, in the chat, in the console or in Slack.

5. Ask

The model sees four tools, ai_discover, ai_search, ai_describe and ai_call, however many APIs you connect. It sees your API as a name:

> ai_discover
  billing-api   connected · key in the vault
  crm           connected · OAuth, renews itself

It never sees the key. The key is added at the last hop, for one call, to one host, and a tool description cannot send it anywhere else.

Why this beats a shared header

  • Per-person identity. Each user signs in as themselves. Activity records who called what, from which client, even when the API itself sees one shared key.
  • Works in every client. The same URL works in Claude, ChatGPT, Cursor, VS Code, Claude Code and your own agent, with no beta flag.
  • Revocable. Disconnect a client or remove a member and the next call is refused. Delete a connector and its grant is revoked at the provider.
  • Controls on writes. Approvals and policies apply before a call leaves the gateway.

Try it

Create a free workspace, add one API key as a connector, and add https://mcp.apitell.com/mcp as a custom connector in Claude. Step-by-step guides: connect Claude and connect ChatGPT. For the security model behind it, read how the credential vault works.