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.
节点参数(Node parameters)#
使用以下参数配置节点:
🌐 Configure the node with the following parameters.
- SSE 端点:你想要连接的 MCP 服务器的 SSE 端点。
- 身份验证:用于连接到你的 MCP 服务器的身份验证方法。MCP 工具支持 Bearer、通用 Header 和 OAuth2 身份验证。选择 无 以尝试在不进行身份验证的情况下连接。
- 要包含的工具:选择你希望向 AI 代理暴露的工具:
- 所有人:公开 MCP 服务器提供的所有工具。
- 已选择:激活一个 包含工具 参数,你可以在其中选择要向 AI 代理开放的工具。
- 全部除外:激活一个排除工具参数,你可以在其中选择不希望与 AI 代理共享的工具。AI 代理将可以访问所有未被选择的 MCP 服务器工具。
模板和示例(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.