Skip to content

https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4#

title: MCP Client Tool 节点文档 description: 学习如何在 n8n 中使用 MCP Client Tool 节点。遵循技术文档将 MCP Client Tool 节点集成到您的工作流中。 contentType: [integration, reference]


MCP 客户端工具节点#

MCP 客户端工具节点是一个模型上下文协议 (MCP) 客户端,允许您使用外部 MCP 服务器提供的工具。您可以将 MCP 客户端工具节点连接到模型,通过 n8n 代理调用外部工具。

凭据

MCP 客户端工具节点同时支持 Bearer 认证和通用请求头认证方式。

节点参数#

通过以下参数配置节点:

  • SSE 端点:要连接的 MCP 服务器的 SSE 端点地址。
  • 认证方式:连接 MCP 服务器的认证方法。支持 Bearer 认证和通用请求头认证。选择 可尝试无认证连接。
  • 包含的工具:选择要暴露给 AI 代理的工具:
    • 全部:暴露 MCP 服务器提供的所有工具。
    • 选定:激活 包含工具 参数,可指定要暴露给 AI 代理的工具。
    • 全部排除:激活 排除工具 参数,可指定不共享给 AI 代理的工具。AI 代理将能访问所有未被选中的 MCP 服务器工具。

模板与示例#

Build an MCP Server with Google Calendar and Custom Functions

by Solomon

View template details
Build your own N8N Workflows MCP Server

by Jimleuk

View template details
💥🛠️Build a Web Search Chatbot with GPT-4o and MCP Brave Search

by Joseph LePage

View template details
Browse MCP 客户端工具 integration templates, or search all templates

相关资源#

n8n 还提供了一个 MCP 服务器触发器节点,允许您将 n8n 工具暴露给外部 AI 代理。

有关该协议、服务器和客户端的更多详细信息,请参阅 MCP 文档MCP 规范

请参考 LangChain 关于工具的文档 获取更多关于 LangChain 中工具的信息。

查看 n8n 的高级 AI 文档。

AI glossary#

  • completion: Completions are the responses generated by a model like GPT.
  • hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
  • vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
  • vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.