---
title: "authentication.header support in MCP clients"
description: "Which MCP clients support authentication.header, and how each claim is known. It is not a protocol feature with its own lifecycle, so the registry tracks it on its own terms."
canonical: https://canimcp.io/capabilities/authentication-header
last-updated: 2026-11-27
---

> **Alpha: work in progress. canimcp is an alpha, built by one person and changing often. Statuses, notes and probe results may be incomplete or inaccurate, and pages, data and the API can change without notice. Check the cited source before relying on a claim, and send corrections through the [contact page](https://canimcp.io/contact).**

# `authentication.header` support in MCP clients

Which MCP clients support `authentication.header`, and how each claim is known. It is not a protocol feature with its own lifecycle, so the registry tracks it on its own terms.

## Support

| Client | Kind | Status | Known from | Revisions | Notes |
|---|---|---|---|---|---|
| [Codex CLI](/clients/openai-codex.md) | host | ● full | read | `2025-06-18` | Per-server http_headers, env_http_headers, bearer_token_env_var, and an http_headers_helper command whose stdout supplies headers. |
| [opencode](/clients/opencode.md) | host | ● full | read | `2025-11-25` | A headers map on a remote server is passed through as requestInit headers on the Streamable HTTP transport. The OAuth challenge probe sends them too. |
| [Cline](/clients/cline.md) * | host | ● full | read | `2025-11-25` | A headers map on a remote server is passed through as requestInit headers on both transports. A configured Authorization header suppresses the OAuth prompt: a 401 is reported as a rejected header rather than a sign-in. |
| [fast-agent](/clients/fast-agent.md) | framework | ● full | read | `2026-07-28` | A headers map on a remote server is passed through on both HTTP transports. An Authorization or X-HF-Authorization header suppresses the OAuth escalation entirely. auth.forward: huggingface injects the local HF token as a header for Hugging Face endpoints and disables OAuth for that server. |
| [Kilo Code](/clients/kilocode.md) * | host | ● full | read | `2025-11-25` | A headers map on a remote server is passed as requestInit headers on both transports. |
| [Mastra](/clients/mastra.md) | framework | ● full | read | `2026-07-28` | requestInit.headers on a url entry is passed to the transport for every request. A custom fetch can set headers per request from the caller's request context. |
| [fx (native engine)](/clients/fx.md) | host | ● full | read | `2026-07-28` | headers, header_env and bearer_token_env on an HTTP entry. An entry that names an unset variable, or a value a header cannot carry, is held back with the reason. |
| [libfx (fx JavaScript adapter)](/clients/libfx.md) * | framework | · untested | read | `2025-11-25` | Set on the host's transport, outside libfx. Not read. |
| [eve](/clients/eve.md) | framework | ● full | read | `2026-07-28` | A headers map of static values, promises or callbacks that receive the session context, resolved again for every request. An Authorization key in headers is rejected when auth is also set. forwardPrincipal adds an eve-forwarded-principal header naming the turn's user and makes requests fail on a redirect. |
| [pi](/clients/pi.md) * | host | ● full | read | `2025-11-25` | A headers map is sent on every POST, GET and DELETE. Values may reference ${NAME} or run a command with !cmd. pi mcp add --bearer-token-env-var writes an Authorization: Bearer ${NAME} header. An Authorization header turns OAuth off for that server. An auth block with a provider name sends the current token of that pi /login provider as the bearer token; it is refused in project mcp.json files and needs https or a loopback host. |
| [Strands Agents](/clients/strands.md) | framework | ● full | read | `2026-07-28` | headers on MCPClient(url=...) and on a load_servers entry are sent on every request, for streamable HTTP and SSE. Values in a config entry take ${VAR} and ${env:VAR} interpolation, and an unset variable fails that server. |
| [crewAI](/clients/crewai.md) * | framework | ● full | read | `2025-11-25` | headers on MCPServerHTTP and MCPServerSSE go to the SDK client unchanged. The https:// string form has no place for headers, so it reaches only servers that need none. Stdio credentials go through env. |
| [deepagents](/clients/deepagents.md) * | framework | ● full | read | `2025-11-25` | A headers map on a remote entry is passed to the transport. Values must be strings, and ${VAR} and ${VAR:-default} references are expanded from the environment when the server is activated. An entry cannot combine auth: oauth with an Authorization header, and a static Authorization header takes precedence over stored OAuth tokens. |
| [Google ADK (Python)](/clients/adk-python.md) | framework | ● full | read | `2025-11-25` | Static headers on the connection params, a header_provider callback evaluated per request context, and headers derived from an auth_credential: Bearer, Basic, other HTTP schemes and header API keys. Auth headers win over header_provider on a name collision. ADK adds its own User-Agent and x-goog-api-client tokens. When google-auth would use a client certificate, the HTTP transport switches to mTLS and attaches Application Default Credentials as a Bearer token for https googleapis.com hosts only. |
| [Microsoft Agent Framework](/clients/agent-framework.md) | framework | ● full | read | `2026-07-28` | static_headers and header_provider add headers to requests whose origin matches the configured url, and remove them when a redirect leaves that origin. header_provider receives the run's keyword arguments. The header set used to connect is bound to the session, and a run with a different set reconnects first. .NET: DefaultMcpToolHandler passes the workflow's headers as AdditionalHeaders and rejects a Host header. |
| [Hugging Face Chat UI](/clients/huggingface-chat-ui.md) | host | ● full | read | `2026-07-28` | A headers map on an MCP_SERVERS entry or a user-added server is sent on every request. With MCP_FORWARD_HF_USER_TOKEN=true the signed-in user's Hugging Face token is added as a bearer header to Hugging Face MCP URLs that carry ?login, unless an Authorization header is already set. A server cannot use an OAuth connection and a manual Authorization header together. |
| [Visual Studio Code](/clients/vscode.md) * | host | ● full | read | `2025-11-25` | Configured headers go on every POST, GET and DELETE. A server definition can also name an authentication provider id and scopes, whose token becomes the Authorization header. Configured headers and credentials are stripped on a cross-origin redirect. |
| [n8n](/clients/n8n.md) * | host | ● full | read | `2025-11-25` | Bearer Auth, Header Auth and Multiple Headers Auth credentials. Headers are dropped when a redirect crosses origins. |
| [Langflow](/clients/langflow.md) * | host | ● full | read | `2025-11-25` | Headers come from the server config and from the component's Headers input, which wins on a clash. A header value that names a global variable is replaced by its value. When Langflow itself runs as an MCP server, a header whose value repeats its name, such as x-api-key: x-api-key, forwards the incoming request's header. Names are lowercased and values with CR or LF are dropped. An operator can have an end-user id header added for allowlisted internal hosts only. |
| [mcp-use](/clients/mcp-use.md) | framework | ● full | read | `2025-11-25`, `2026-07-28` | headers on an HTTP entry are sent on every transport request, and authToken adds Authorization: Bearer. Either one turns off the default OAuth provider. Python: headers and a string auth as a bearer token. |
| [Zed](/clients/zed.md) * | host | ● full | read | `2025-11-25` | A headers map on a url server is sent on every POST and on the DELETE. With an Authorization header set, Zed does not start OAuth. |
| [TypeScript SDK Client](/clients/ts-sdk-client.md) | sdk | ◇ opt-in | read | `2025-11-25` | requestInit.headers on either HTTP transport are sent on every request. Authorization, mcp-session-id and mcp-protocol-version set by the transport take precedence, so a static Authorization header is sent only while an authProvider has no token. An AuthProvider of the form { token: async () => key } sends a bearer token without OAuth. |
| [Warp](/clients/warp.md) | host | ● full | read | `2026-07-28` | A URL server's headers map is sent on every request, preflight included. Values can be templated from variables and managed secrets. For managed servers in agent runs the headers can be replaced on an open Streamable HTTP connection (managed_mcp_credential_refresh, on by default). |
| [Reachy Mini conversation app](/clients/reachy-mini-conversation-app.md) | host | ◐ partial | read | `2026-07-28` | One header, chosen by the app: Authorization: Bearer with the Hugging Face token (HF_TOKEN, else the hf auth login cache), sent only to Spaces the Hub reports as private. A person cannot set other headers. |

Not recorded for [goose](/clients/goose.md), [OpenClaw](/clients/openclaw.md), [Hermes Agent](/clients/hermes-agent.md), [Google Antigravity](/clients/antigravity.md), [Claude Code](/clients/claude-code.md), [Claude.ai](/clients/claude-ai.md), [ChatGPT](/clients/chatgpt.md), [Codex Desktop](/clients/codex-desktop.md), [Cursor](/clients/cursor.md). A missing record is not the same as unsupported.

Rows describe each client on `2026-07-28`. A row marked * is for the newest revision the client speaks, because it cannot negotiate `2026-07-28`: `2025-11-25` for 10 clients.

Tiers are not ranked. `read` is a source read at a pinned commit, `verified` is a probe run, `observed` is telemetry, and `declared` is what the client or a curated list says. "Through" names the parent capability whose evidence a row rests on when it has none of its own.

## By protocol revision

No client records a different row on `2025-11-25`, so the rows above hold there too.

[Warp](/clients/warp.md), [Reachy Mini conversation app](/clients/reachy-mini-conversation-app.md) have one set of rows for every revision they speak, not yet split by revision.

The [matrix on `2025-11-25`](/capabilities/revision/2025-11-25.md) shows every capability on that revision.

## Evidence

[Codex CLI](/clients/openai-codex.md):

- *read* at `2025-06-18`: openai/codex at `18c09f20` `codex-rs/rmcp-client/src/http_headers.rs:with_http_headers_helper,run_helper`, 2026-11-27
- *read* at `2025-06-18`: openai/codex at `18c09f20` `codex-rs/config/src/mcp_types.rs`, 2026-11-27. The config fields.

[opencode](/clients/opencode.md):

- *read* at `2025-11-25`: anomalyco/opencode at `5d1f7884` `packages/core/src/mcp/client.ts:open`, 2026-11-27
- *read* at `2025-11-25`: anomalyco/opencode at `5d1f7884` `packages/core/src/mcp/oauth.ts:fetchFn`, 2026-11-27

[Cline](/clients/cline.md):

- *read* at `2025-11-25`: cline/cline at `cbc7d141` `apps/vscode/src/services/mcp/McpHub.ts:McpHub.connectToServer`, 2026-11-27
- *read* at `2025-11-25`: cline/cline at `cbc7d141` `sdk/packages/core/src/extensions/mcp/client.ts:SdkUrlMcpClient.hasStaticAuthorizationHeader`, 2026-11-27

[fast-agent](/clients/fast-agent.md):

- *read* at `2026-07-28`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/mcp/client_gateway.py:_prepare_headers_and_auth`, 2026-11-27
- *read* at `2026-07-28`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/mcp/hf_auth.py`, 2026-11-27

[Kilo Code](/clients/kilocode.md):

- *read* at `2025-11-25`: Kilo-Org/kilocode at `3c7f2659` `packages/opencode/src/mcp/index.ts:connectRemote`, 2026-11-27

[Mastra](/clients/mastra.md):

- *read* at `2026-07-28`: mastra-ai/mastra at `0a31d4d0` `packages/mcp/src/client/types.ts:HttpServerDefinition`, 2026-11-27
- *read* at `2026-07-28`: mastra-ai/mastra at `0a31d4d0` `packages/mcp/src/client/client.ts:InternalMastraMCPClient.connectHttp`, 2026-11-27

[fx (native engine)](/clients/fx.md):

- *read* at `2026-07-28`: vercel-labs/fx at `b4502b01` `src/core/mcp_host/config.zig:transportFor`, 2026-11-27

[libfx (fx JavaScript adapter)](/clients/libfx.md):

- *read* at `2025-11-25`: vercel-labs/fx at `b4502b01` `sdk/types/mcp.d.ts`, 2026-11-27

[eve](/clients/eve.md):

- *read* at `2026-07-28`: vercel/eve at `4545806d` `packages/eve/src/runtime/connections/mcp-client.ts:McpConnectionClient,resolveConnectionHeaders`, 2026-11-27
- *read* at `2026-07-28`: vercel/eve at `4545806d` `packages/eve/src/public/definitions/connections/mcp.ts:McpClientConnectionDefinition`, 2026-11-27

[pi](/clients/pi.md):

- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/coding-agent/src/extensions/mcp/runtime.ts:createDefaultTransport,McpServerConnection`, 2026-11-27
- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/mcp/src/transports/streamable-http.ts:StreamableHttpTransport.buildHeaders`, 2026-11-27
- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/coding-agent/src/core/mcp-servers.ts:checkAuth`, 2026-11-27. The auth.provider check.
- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/coding-agent/src/extensions/mcp/config.ts:readConfigFile`, 2026-11-27. auth is refused in a project file.
- *read* at `2025-11-25`: earendil-works/pi at `cdf74062` `packages/coding-agent/src/extensions/mcp/cli.ts:add`, 2026-11-27

[Strands Agents](/clients/strands.md):

- *read* at `2026-07-28`: strands-agents/harness-sdk at `78855cad` `strands-py/src/strands/tools/mcp/mcp_client.py:_resolve_transport_callable,_config_transport_callable`, 2026-11-27
- *read* at `2026-07-28`: strands-agents/harness-sdk at `78855cad` `strands-py/src/strands/tools/mcp/mcp_client.py:_interpolate_env_vars`, 2026-11-27
- *read* at `2026-07-28`: strands-agents/harness-sdk at `78855cad` `strands-ts/src/mcp/client.ts:McpClient._resolveTransport`, 2026-11-27. TypeScript binding: requestInit headers.

[crewAI](/clients/crewai.md):

- *read* at `2025-11-25`: crewAIInc/crewAI at `77237aec` `lib/crewai/src/crewai/mcp/config.py:MCPServerHTTP,MCPServerSSE`, 2026-11-27
- *read* at `2025-11-25`: crewAIInc/crewAI at `77237aec` `lib/crewai/src/crewai/mcp/transports/http.py:HTTPTransport.connect`, 2026-11-27
- *read* at `2025-11-25`: crewAIInc/crewAI at `77237aec` `lib/crewai/src/crewai/mcp/tool_resolver.py:MCPToolResolver._resolve_external,MCPToolResolver._discover_mcp_tools`, 2026-11-27. The https:// string route builds server_params from the URL alone and calls streamablehttp_client(server_url).

[deepagents](/clients/deepagents.md):

- *read* at `2025-11-25`: langchain-ai/deepagents at `c84eb7f1` `libs/code/deepagents_code/mcp_tools.py:_validate_server_config`, 2026-11-27
- *read* at `2025-11-25`: langchain-ai/deepagents at `c84eb7f1` `libs/code/deepagents_code/mcp_tools.py:_prepare_transport`, 2026-11-27
- *read* at `2025-11-25`: langchain-ai/deepagents at `c84eb7f1` `libs/code/deepagents_code/mcp_config.py`, 2026-11-27

[Google ADK (Python)](/clients/adk-python.md):

- *read* at `2025-11-25`: google/adk-python at `03725e8c` `src/google/adk/tools/mcp_tool/mcp_session_manager.py:MCPSessionManager._merge_headers`, 2026-11-27
- *read* at `2025-11-25`: google/adk-python at `03725e8c` `src/google/adk/tools/mcp_tool/mcp_toolset.py:McpToolset._build_headers`, 2026-11-27
- *read* at `2025-11-25`: google/adk-python at `03725e8c` `src/google/adk/tools/mcp_tool/mcp_tool.py:_merge_auth_and_provider_headers,McpTool._get_headers`, 2026-11-27
- *read* at `2025-11-25`: google/adk-python at `03725e8c` `src/google/adk/tools/mcp_tool/mcp_session_manager.py:MCPSessionManager._get_mtls_transport`, 2026-11-27. mTLS probe and the Application Default Credentials host check.

[Microsoft Agent Framework](/clients/agent-framework.md):

- *read* at `2026-07-28`: microsoft/agent-framework at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py:MCPStreamableHTTPTool.get_mcp_client`, 2026-11-27
- *read* at `2026-07-28`: microsoft/agent-framework at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py:MCPStreamableHTTPTool.__init__`, 2026-11-27
- *read* at `2026-07-28`: microsoft/agent-framework at `f8ade3e9` `dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Mcp/DefaultMcpToolHandler.cs:foreach,nameof`, 2026-11-27

[Hugging Face Chat UI](/clients/huggingface-chat-ui.md):

- *read* at `2026-07-28`: huggingface/chat-ui at `7fc0f672` `src/lib/server/mcp/registry.ts:parseServers`, 2026-11-27
- *read* at `2026-07-28`: huggingface/chat-ui at `7fc0f672` `src/lib/server/textGeneration/mcp/runMcpFlow.ts:runMcpFlow`, 2026-11-27

[Visual Studio Code](/clients/vscode.md):

- *read* at `2025-11-25`: microsoft/vscode at `6737a1cc` `src/vs/workbench/api/common/extHostMcp.ts:McpHTTPHandle._sendStreamableHttp,McpHTTPHandle,McpHTTPHandle._stripCrossOriginHeaders`, 2026-11-27

[n8n](/clients/n8n.md):

- *read* at `2025-11-25`: n8n-io/n8n at `fb1aec9c` `packages/@n8n/nodes-langchain/nodes/mcp/McpClientTool/McpClientTool.node.ts:McpClientTool.transportSelect`, 2026-11-27
- *read* at `2025-11-25`: n8n-io/n8n at `fb1aec9c` `packages/@n8n/nodes-langchain/nodes/mcp/shared/utils.ts:getAuthHeaders`, 2026-11-27

[Langflow](/clients/langflow.md):

- *read* at `2025-11-25`: langflow-ai/langflow at `2b6faa1c` `src/lfx/src/lfx/components/models_and_agents/mcp_component.py:MCPToolsComponent.update_tool_list`, 2026-11-27
- *read* at `2025-11-25`: langflow-ai/langflow at `2b6faa1c` `src/lfx/src/lfx/base/mcp/util.py:validate_headers,_process_headers`, 2026-11-27
- *read* at `2025-11-25`: langflow-ai/langflow at `2b6faa1c` `src/lfx/src/lfx/base/mcp/util.py:_maybe_inject_end_user_header`, 2026-11-27
- *read* at `2025-11-25`: langflow-ai/langflow at `2b6faa1c` `docs/docs/Agents/mcp-client.mdx:Use global variables in MCP server headers {#use-global-variables-in-mcp-server-headers},Propagate `x-api-key` to nested MCP servers {#propagate-x-api-key}`, 2026-11-27

[mcp-use](/clients/mcp-use.md):

- *read* at `2026-07-28`: mcp-use/mcp-use at `bc8fb6f3` `libraries/typescript/packages/client/src/transport/http.ts:HttpConnector`, 2026-11-27
- *read* at `2026-07-28`: mcp-use/mcp-use at `bc8fb6f3` `libraries/typescript/packages/client/src/core/config.ts:HttpServerConfig,shouldAutoProvisionOAuth`, 2026-11-27
- *read* at `2025-11-25`: mcp-use/mcp-use at `bc8fb6f3` `libraries/python/mcp_use/client/connectors/http.py:HttpConnector._set_auth`, 2026-11-27. Python binding. A string auth becomes a bearer header.

[Zed](/clients/zed.md):

- *read* at `2025-11-25`: zed-industries/zed at `da3a2740` `crates/context_server/src/transport/http.rs:HttpTransport.build_request`, 2026-11-27
- *read* at `2025-11-25`: zed-industries/zed at `da3a2740` `crates/project/src/context_server_store.rs:ContextServerStore.create_context_server`, 2026-11-27

[TypeScript SDK Client](/clients/ts-sdk-client.md):

- *read* at `2025-11-25`: modelcontextprotocol/typescript-sdk at `5ee54ee3` `packages/client/src/client/streamableHttp.ts:StreamableHTTPClientTransportOptions`, 2026-11-20
- *read* at `2025-11-25`: modelcontextprotocol/typescript-sdk at `5ee54ee3` `packages/client/src/client/sse.ts:SSEClientTransportOptions`, 2026-11-20

[Warp](/clients/warp.md):

- *read* at `2026-07-28`: warpdotdev/warp at `1c7fda11` `crates/mcp/src/runtime.rs:build_header_map,build_client_with_headers,spawn_server`, 2026-11-27
- *read* at `2026-07-28`: warpdotdev/warp at `1c7fda11` `crates/mcp/src/refreshable_headers.rs`, 2026-11-27
- *read* at `2026-07-28`: warpdotdev/warp at `1c7fda11` `app/src/ai/agent_sdk/driver/managed_mcp_refresh.rs`, 2026-11-27

[Reachy Mini conversation app](/clients/reachy-mini-conversation-app.md):

- *read* at `2026-07-28`: pollen-robotics/reachy_mini_conversation_app at `622a3a67` `src/reachy_mini_conversation_app/tool_spaces.py:615-629,648-667`, 2026-11-26

## Lifecycle

| Revision | Change |
|---|---|

Header-based auth (API keys, bearer tokens) is an implementation/deployment detail, not a spec-gated capability. Applicable at any protocol version.

## Research notes

- [crewAI reaches MCP servers through four entry points on three client code paths](/research/crewai-reaches-mcp-through-four-entry-points.md)
- [eve sends a bearer from a token provider and runs none of the MCP authorization flow itself](/research/eve-leaves-oauth-to-a-token-provider.md)
- [The Reachy Mini conversation app connects only to Hugging Face Gradio Spaces](/research/reachy-mini-conversation-app-reaches-only-gradio-spaces.md)

## Kinds

- framework: A library an application embeds. A capability row is what a default install declares, and the embedding application can change it.
- sdk: An MCP SDK. A capability row is the default every client on it inherits unless it overrides.

## Data

This page as JSON: [`/data/capabilities/authentication-header.json`](/data/capabilities/authentication-header.json). All capabilities: [`/data/capabilities/index.json`](/data/capabilities/index.json), and the [matrix](/capabilities/index.md).

