New Tool Radar

AI Agents & Automation

How to Connect an MCP Server as a Tool for an n8n AI Agent

Attach an MCP Client Tool to an n8n AI Agent node so the agent can call tools from an MCP server.

Schematic diagram with three steps: Pick a registry server, Attach MCP Client Tool, then Test a server tool call.

An n8n agent can already call the tools you attach, and an MCP Client Tool adds a whole server of tools at once. The n8n documentation notes that a registry MCP server can be connected as a tool with one click, and the tutorial lists the MCP Client Tool among the agent tools.

Before you start

You need a working n8n AI Agent node and an MCP server you are allowed to use. Check the server tool list first, and only connect servers you trust with the data the agent will send.

Attach the MCP Client Tool to the agent

On the AI Agent node, attach an MCP Client Tool sub-node and select the MCP server to connect. The server tools become options the model can call, alongside the other tools. Write the system message to say when the agent should use the MCP tools and when it should use its own tools.

Test with a question that needs a server tool

Ask the agent a question that only a server tool can answer, and check the execution log shows the MCP tool call with the right arguments. If the agent ignores the MCP tools, their descriptions are probably too vague: the model only sees the tool name and description when it decides.

Worked example: One server tool for a fictional support agent

Northwind Support is a fictional help desk. Its agent calls a docs search tool from an MCP server. The table shows the call.

Step What happens
1 User asks where the refund policy is documented
2 Agent calls the MCP docs search tool
3 Tool returns the policy page path
4 Agent replies with the page path

Expected result (UNTESTED): the question produces one MCP tool call in the execution log and a reply naming the policy page. We checked the n8n AI Agent documentation, which mentions connecting a registry MCP server as a tool, but we did not attach the tool on a live n8n instance.

Limits

An MCP server hands the agent every tool it exposes, so a broad server is a broad permission. Prefer a server with few tools, keep its credentials private, and check the tool list after each server update.

Sources

See all