> ## Documentation Index
> Fetch the complete documentation index at: https://docs.connectkey.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect n8n workflows to ConnectKey over MCP

> Untested draft for adding ConnectKey to an n8n workflow with the MCP Client Tool node. A real n8n instance was not tested, so compatibility is unverified.

**Checks recorded on 2026-11-25 without signing in.** No n8n instance was run against ConnectKey, so this page claims no client compatibility.

* **Vendor documentation, retrieved 2026-11-25.** n8n's MCP Client Tool node page and MCP credentials page, plus the pinned `McpClientTool.node.ts` at n8n commit `1d16ca2dfa154f16c782eda106b20478572cf43a`. The node attaches to an AI Agent. Its versions run 1 through 1.4 with 1.4 as the default: version 1 uses the SSE Endpoint field with no transport picker, 1.1 renames it to Endpoint and adds a transport picker defaulting to SSE, and 1.2 and later default to HTTP Streamable. Authentication offers Bearer, Header and None before 1.2 and adds Multiple Headers, generic OAuth2 and MCP OAuth2 from 1.2. The credentials page documents Dynamic Client Registration as on by default and Resource URL as optional for MCP OAuth2.
* **ConnectKey source inspection, development commit `f7c8d23`, read only and not a client run.** `apps/api/src/agent-keys/` defines `ck_live_` key helpers bound to one workspace. Only the integration test imports `createAgentKeyRequestVerifier` outside that directory, so no runtime code mounts HTTP routes for workspace agent key issuance or verification. `apps/mcp/src/issuer/register.ts` verifies OAuth bearer tokens only.
* **Public unauthenticated probes, 2026-11-25, no credentials and GET only.** On the staging MCP host, `GET /healthz` and `GET /readyz` returned HTTP 200. `GET /mcp`, `GET /.well-known/oauth-protected-resource`, `GET /.well-known/oauth-protected-resource/mcp` and `GET /.well-known/oauth-authorization-server` returned HTTP 404. `mcp.connectkey.ai` did not resolve in DNS (NXDOMAIN).

1. Add `https://mcp.connectkey.ai/mcp` to your client.
2. Send your workspace agent key in the request header: `Authorization: Bearer <agent-key>`.

> [!WARNING]
>
> **Not yet verified on staging:** Every step here that needs an account, a workspace key or a live MCP connection is untested, including credential setup, tool discovery and key rotation. No ConnectKey tool is confirmed available in n8n.
>
> **Untested (step 2 and any `/mcp` connection).** Workspace agent keys cannot be issued or verified on ConnectKey yet, and `/mcp` returned 404 on staging on 2026-11-25. This page does not say n8n is supported or that setup works today.

```text Copy the MCP URL for the n8n MCP Client Tool theme={null}
https://mcp.connectkey.ai/mcp
```

## Prerequisites

* An n8n workflow with an AI Agent node.
* A ConnectKey workspace agent key. Planned and unimplemented (verified in app source `f7c8d23bdb14f941114de11c70809b22328a3b97` on 2026-11-25): `apps/api/src/agent-keys/` defines key helpers bound to one workspace, but no HTTP issuance route is mounted and `apps/mcp/src/issuer/register.ts` verifies OAuth bearer tokens only. On the staging MCP host probed 2026-11-25, `GET /healthz` and `GET /readyz` returned HTTP 200 while `GET /mcp` and the three OAuth metadata paths listed at the top of this page returned HTTP 404, and the production MCP host did not resolve.

## Steps

1. Verified against vendor docs and pinned node source (2026-11-25): add the MCP Client Tool node to the workflow and attach it to the AI Agent node.
2. Set the endpoint to `https://mcp.connectkey.ai/mcp`. On node version 1 the field is labelled SSE Endpoint and the node is SSE-only; version 1.1 renames the field to Endpoint and adds a transport picker defaulting to SSE; version 1.2 and later (default 1.4 in the pinned source) default to HTTP Streamable. Check the node version you have.
3. Create an n8n credential of type Bearer Auth and paste the workspace agent key there, not into the workflow or the URL (Untested: ConnectKey cannot issue or verify workspace agent keys yet, and `GET /mcp` returned HTTP 404 on staging on 2026-11-25).
4. Use Tools to Include to choose which tools the agent can use. n8n documents All, Selected and All Except.

## What to check

* Run the node and check that the tool list is returned (Untested: requires agent key issuance/verification or OAuth and a serving `/mcp` endpoint).
* App source (`f7c8d23bdb14f941114de11c70809b22328a3b97`) confirms `apps/api/src/agent-keys/` is not mounted on any API route and `apps/mcp/src/issuer/register.ts` has no workspace agent key verifier yet. Do not treat the key path as working.

## If it fails

* The pinned node source offers Bearer Auth, Header Auth, Multiple Headers Auth, generic OAuth2 and MCP OAuth2 on node version 1.2 and later, and Bearer Auth, Header Auth and None on earlier versions. n8n documents Dynamic Client Registration as on by default for MCP OAuth2 and Resource URL as optional. Neither MCP OAuth2 nor workspace agent keys have been tested against ConnectKey.
* Do not paste an agent key into a workflow or share it. Regenerate it from ConnectKey if it is exposed; that flow is planned.
* Probed 2026-11-25: on the staging MCP host, `GET /mcp`, `GET /.well-known/oauth-protected-resource`, `GET /.well-known/oauth-protected-resource/mcp` and `GET /.well-known/oauth-authorization-server` returned HTTP 404, and the production MCP host did not resolve. These GET probes did not test MCP initialization or n8n connectivity.

## Which n8n node lets a workflow agent use a remote MCP server?

n8n documents the MCP Client Tool as the node attached to the workflow agent. The MCP Server Trigger serves the opposite role: it is not the client for a remote endpoint.

## Does the n8n MCP Client Tool require a bearer key?

No. n8n documents Bearer, generic header, multiple headers and OAuth2 authentication for the node. The pinned node source puts Bearer Auth, Header Auth and None on node version 1.1 and earlier and adds Multiple Headers Auth, generic OAuth2 and MCP OAuth2 from node version 1.2. n8n's MCP credentials documentation notes that Dynamic Client Registration is on by default for MCP OAuth2. A workspace-bound agent key is the planned ConnectKey automation path, not a limit of the n8n client; neither path has been tested with ConnectKey.

## Where does the proposed n8n connection keep the workspace key?

The key belongs in an n8n credential, separate from the workflow JSON and the server URL. ConnectKey has not verified key rotation or revocation in n8n.

## Does the SSE Endpoint label mean n8n only supports SSE?

Not for every node version. The pinned n8n implementation shows that version 1 of the node is SSE-only. Version 1.1 adds a transport picker that defaults to SSE, and version 1.2 and later in that implementation default to HTTP Streamable.

## Is the installed n8n version enough to identify a workflow's MCP transport?

No. The n8n application version and the MCP Client Tool node version are distinct. The node version determines which transport settings are available; the selected transport can differ from its default.

## Does the n8n tool selector change what a ConnectKey key authorizes?

No. The selector limits which tools n8n exposes to the workflow agent. It does not change the workspace that the ConnectKey key is meant to authorize.

## Evidence

* Status: unverified
* Vendor documentation retrieved: 2026-11-25
* Real-client result: None recorded. Vendor documentation (n8n docs and pinned node source) and app source (`f7c8d23bdb14f941114de11c70809b22328a3b97`) were checked 2026-11-25; workspace agent keys are not mounted, staging `GET /mcp` returned HTTP 404 on 2026-11-25, and this method cannot be tried yet.
* [n8n: MCP Client Tool node](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolmcp)
* [n8n: MCP credentials (MCP OAuth2)](https://docs.n8n.io/integrations/builtin/credentials/mcp)
* [n8n: MCP Client Tool transport settings at a pinned revision](https://raw.githubusercontent.com/n8n-io/n8n/1d16ca2dfa154f16c782eda106b20478572cf43a/packages/@n8n/nodes-langchain/nodes/mcp/McpClientTool/McpClientTool.node.ts)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.