Databases, automation and workflows · Advanced automation
n8n
Manage n8n through the API and expose your workflows as tools for an AI.
- REST API
- Key or personal token
- Official MCP server
- 1
Paramètres, API n8n, Créer une clé d'API.
- 2
Copiez-la : elle s'envoie dans l'en-tête
X-N8N-API-KEY. - 3
L'API vit sur votre instance :
https://votre-instance/api/v1.
X-N8N-API-KEY: <key>
curl https://votre-instance/api/v1/workflows \
-H "X-N8N-API-KEY: $N8N_CLE"Worth knowing. When self-hosted, n8n keeps your data in-house: it’s often the best bridge between an AI and tools that have no MCP server.
No documented OAuth flow for n8n: the key from tab 1 is enough for your own data.
Official MCP server
There are two official routes: the MCP Server Trigger node exposes a workflow as a tool, at the URL the node provides; and instance-level MCP access, which since version 2.14 lets you create and edit workflows.
- Claude
Settings, Connectors, Add custom connector: paste the production URL shown by the MCP Server Trigger node (protect it with the node’s authentication), then sign in to n8n.
- ChatGPT
Settings, Apps: turn on developer mode in the advanced settings, then Create, with the production URL shown by the MCP Server Trigger node (protect it with the node’s authentication).
- Mistral’s Le Chat
Intelligence, Connectors, Add custom connector: paste the address, then authorise access.
Worth knowing. The connector acts with your permissions. Start in read-only mode and review every write action the AI proposes before approving it. Depending on the plan, the workspace administrator must allow custom connectors.