MCP 客户端工具节点#
¥MCP Client Tool node
MCP 客户端工具节点是一个 模型上下文协议(MCP) 客户端,允许你使用外部 MCP 服务器公开的工具。你可以将 MCP 客户端工具节点连接到你的模型,以便使用 n8n 代理调用外部工具。
¥The MCP Client Tool node is a Model Context Protocol (MCP) client, allowing you to use the tools exposed by an external MCP server. You can connect the MCP Client Tool node to your models to call external tools with n8n agents.
Credentials
MCP 客户端工具节点支持 Bearer、通用 header 和 OAuth2 身份验证方法。
¥The MCP Client Tool node supports Bearer, generic header, and OAuth2 authentication methods.
节点参数#
¥Node parameters
使用以下参数配置节点:
¥Configure the node with the following parameters.
- SSE 端点:要连接的 MCP 服务器的 SSE 端点。
¥SSE Endpoint: The SSE endpoint for the MCP server you want to connect to.
¥Authentication: The authentication method for authentication to your MCP server. The MCP tool supports bearer, generic header, and OAuth2 authentication. Select None to attempt to connect without authentication.
- 要包含的工具:选择要向 AI 代理公开的工具:
¥Tools to Include: Choose which tools you want to expose to the AI Agent:
-
全部:公开 MCP 服务器提供的所有工具。
¥All: Expose all the tools given by the MCP server.
-
已选:激活“要包含的工具”参数,你可以在其中选择要向 AI 代理公开的工具。
¥Selected: Activates a Tools to Include parameter where you can select the tools you want to expose to the AI Agent.
-
除以下情况外:激活“要排除的工具”参数,你可以在其中选择要避免与 AI 代理共享的工具。AI 代理可以访问 MCP 服务器中所有未被选中的工具。
¥All Except: Activates a Tools to Exclude parameter where you can select the tools you want to avoid sharing with the AI Agent. The AI Agent will have access to all MCP server's tools that aren't selected.
模板和示例#
¥Templates and examples
相关资源#
¥Related resources
n8n 还包含一个 MCP 服务器触发器 节点,允许你将 n8n 工具暴露给外部 AI 代理。
¥n8n also has an MCP Server Trigger node that allows you to expose n8n tools to external AI Agents.
请参阅 MCP 文档 和 MCP 规范 文档,了解有关协议、服务器和客户端的更多详细信息。
¥Refer to the MCP documentation and MCP specification for more details about the protocol, servers, and clients.
Refer to LangChain's documentation on tools for more information about tools in LangChain.
View n8n's Advanced AI documentation.