Help on attaching a Remote MCP Server as 'MCP Client Tool' to the AI Agent node

Describe the problem/error/question

I created a simple email agent that connects to a Remote MCP server that exposes several tools. I can run the agent and it also answers, but it fails to do dynamic MCP tool calls, it always fails during the parameter mapping in the MCP Client Tool node.

Now my question, is this MCP Client Tool node even able to do dynamic tool invocations? Or is there a specific AI Node that I need to use for that?

I am used from LangGraph agent configs that I just let the agent know my Remote MCP server and the agent does the tool execution planning.

I did set the environment variable for executing tools:

  • N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE = true

What is the error message (if any)?

MCP error -32602: Received unexpected input arguments: [toolCallId]; Please check your request

Please share your workflow

Share the output returned by the last node

McpError: MCP error -32602: Received unexpected input arguments: [toolCallId]; Please check your request at Client._onresponse (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]/node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:450:27) at StreamableHTTPClientTransport._transport.onmessage (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]/node_modules/@modelcontextprotocol/sdk/src/shared/protocol.ts:295:22) at StreamableHTTPClientTransport.send (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]/node_modules/@modelcontextprotocol/sdk/src/client/streamableHttp.ts:497:39) at processTicksAndRejections (node:internal/process/task_queues:105:5)

Information on your n8n setup

  • n8n version: 1.119.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker self hosted
  • Operating system: Docker