Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MCP Client Tool

ai.mcp_client_tool · version 1 · AI sub-node

Give an agent the tools of a Model Context Protocol server.

Ports

PortKindLabelRequiredMax connections
output 0ai_tool

Credentials

SlotAccepted kindsRequired
httpBearerAuthhttp.bearer
httpHeaderAuthhttp.header
mcpOAuth2Apimcp/oauth2

Parameters

NameTypeDefaultRequiredShown whenDescription
serverTransportoptions"httpStreamable"Transport. One of httpStreamable, sse, stdio.
endpointUrlstringserverTransport = httpStreamable, sseEndpoint. URL of the MCP server endpoint.
commandstringserverTransport = stdioProgram that starts the MCP server; requires exec permission.
argsstringserverTransport = stdioArguments. Arguments for the command, separated by spaces (quotes allowed).
envstringserverTransport = stdioEnvironment. Extra environment variables for the process, one NAME=value per line.
authenticationoptions"none"serverTransport = httpStreamable, sseOne of none, bearerAuth, headerAuth, mcpOAuth2Api.
includeoptions"all"Tools to Include. One of all, selected, except.
includeToolsmulti_optionsinclude = selectedTools to Include.
excludeToolsmulti_optionsinclude = exceptTools to Exclude.
optionscollection{}
options.timeoutnumber60000Timeout (ms). How long to wait for each answer from the server.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
@n8n/n8n-nodes-langchain.mcpClientTool1unverified