API、CLI 与扩展
Connect to the n8n docs MCP server
The n8n documentation publishes two Model Context Protocol (MCP) servers. Connect an AI tool to a server to let it search n8n's knowledge and answer your questions as you work.
The two servers draw on different sources, so pick the one that fits how you want your AI tool to answer:
| Server | Sources | Best for |
|---|---|---|
| GitBook docs server | The published n8n docs only | Searching and reading exact documentation pages. The docs are the single, authoritative source. |
| Kapa.ai server | The docs, the community forum, and the n8n blog | Broader questions that the docs alone don't cover, such as troubleshooting and real-world examples. This is the same engine that powers the AI Assistant on the docs site. |
You can connect both. Use the GitBook server when you want answers grounded in the docs, and the Kapa.ai server when you want answers drawn from n8n's wider knowledge base.
Both servers use HTTP transport, so your AI tool needs to support remote MCP servers over HTTP. Neither supports stdio or SSE.
MCP server URLs
Use the endpoint for the server you want:
| Server | URL |
|---|---|
| GitBook docs server | https://docs.n8n.io/~gitbook/mcp |
| Kapa.ai server | https://n8n.mcp.kapa.ai |
Connect your AI tool
The steps differ by tool, but each one needs a server URL from above. The following examples set up both servers. To connect only one, keep the entry you want and remove the other.
Claude Code
Run these commands in your terminal:
claude mcp add --transport http n8n-docs https://docs.n8n.io/~gitbook/mcp
claude mcp add --transport http n8n-kapa https://n8n.mcp.kapa.aiCursor
Add the servers to your mcp.json file:
{
"mcpServers": {
"n8n-docs": {
"url": "https://docs.n8n.io/~gitbook/mcp"
},
"n8n-kapa": {
"url": "https://n8n.mcp.kapa.ai"
}
}
}VS Code
Add the servers to your mcp.json file:
{
"servers": {
"n8n-docs": {
"type": "http",
"url": "https://docs.n8n.io/~gitbook/mcp"
},
"n8n-kapa": {
"type": "http",
"url": "https://n8n.mcp.kapa.ai"
}
}
}Other tools
For any other MCP client, add a new remote (HTTP) server in its MCP settings and enter a server URL:
https://docs.n8n.io/~gitbook/mcp
https://n8n.mcp.kapa.aiAfter you connect, your tool can search n8n's knowledge as you work.
官方原文和授权
本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。