API、CLI 与扩展
Connect
Connect to n8n from code, scripts, and AI tools.
Use this documentation when you want to work with n8n outside the editor. You can call the public API, script against it with the CLI, or connect MCP-compatible clients.
This section includes the n8n API guides and reference material, the n8n CLI reference, and the docs for the built-in n8n MCP server. It also covers authentication, connection setup, and client-specific instructions for connecting tools and agents to n8n.
n8n API
Manage n8n programmatically over HTTP.
Best for:
- Building platforms and tooling on top of n8n
- Triggering and monitoring executions from external systems
- Automating workflow and credential management
Start with n8n API.
n8n CLI
Control n8n directly from your terminal.
Best for:
- Importing and exporting workflows
- Running executions in scripts and CI pipelines
- Local development and debugging
Start with n8n CLI.
MCP server
Connect AI agents and MCP clients directly to your n8n instance.
Best for:
- Claude Code, Claude Desktop, Lovable, and similar tools
- Discovering and executing workflows from an AI agent
- Managing workflows through an MCP client
Start with Connect to n8n MCP server.
官方原文和授权
本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。