---
title: "Connect to n8n MCP"
description: "Connect n8n as an MCP server in meinGPT"
canonical_url: "https://meingpt.com/en/docs/integrations/connect-n8n-mcp"
language: en
---

# Connect to n8n MCP

## Overview

There are two ways how n8n workflows can be triggered via MCP in n8n:

1. Instance-level MCP  - **recommended**
2. MCP Server Trigger node ([more details](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-langchain.mcptrigger/))

In the following we focus on the more flexible instance-level MCP access. The differences are described in the [official n8n documentation](https://docs.n8n.io/advanced-ai/accessing-n8n-mcp-server/#difference-between-instance-level-mcp-access-and-mcp-server-trigger-node):

> Instance-level MCP access lets you create one connection per n8n instance, use centralized authentication, and choose which workflows to enable for access. Enabled workflows are easy to find and run without extra setup for each workflow.
>
> In comparison, you configure an MCP Server Trigger node inside a single workflow. This node exposes tools only from that workflow, a useful approach when you want to craft a specific MCP server behavior within one workflow.

## Setup

### 1. Get MCP URL

- In the n8n Settings, enable the instance level MCP Server for your n8n server. Then click on "Connection details".

- The [official n8n documentation](https://docs.n8n.io/advanced-ai/accessing-n8n-mcp-server/#enabling-mcp-access) provides detailed instructions.

![How to get your MCP server URL](/images/integrations/n8n-mcp/mcp-url.png)

### 2. Example Workflow

For the workflow to be visible for the instance-level MCP server of your n8n instance, it must be  **published** and have one of the following trigger nodes `Webhook`, `Schedule`, `Chat` or `Form`.

- Below is an example workflow. With a very basic setup: A [chat trigger node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/) and an [HTTP request node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/).
- To try HTTP requests you can use [webhook.site](https://webhook.site/) for example, which is a free tool to register calls to a webhook.

![Example Workflow in n8n](/images/integrations/n8n-mcp/example-workflow.png)

### 3. Enable Workflow MCP access

- In n8n "Settings > Instance-level MCP" click "Enable workflow

![Enable Workflow MCP access step 1](/images/integrations/n8n-mcp/enable-workflow-1.png)

- Select a workflow that fulfills the aforementioned conditions (published and one of the four required trigger types).
- Click "Enable"

![Enable Workflow MCP access step 2](/images/integrations/n8n-mcp/enable-workflow-2.png)

- Your workflow should be listed in this view:

![Enable Workflow MCP access step 3](/images/integrations/n8n-mcp/enable-workflow-3.png)

### 4. Create Assistant

- In your meinGPT workspace, create an assistant and click on "Add Tool".

![Creation of an assistant in meinGPT](/images/integrations/n8n-mcp/create-assistant.png)

### 5. Add Tool

- Click on "Add Tool" and select "Custom MCP".

- Paste the URL of your n8n instance in the "URL" field.

![Adding a tool to an assistant in meinGPT](/images/integrations/n8n-mcp/add-tool.png)

### 6. Connect Tool

- Save your assistant and start a chat with it

- You'll be prompted to setup the OAuth connection with your n8n MCP server.

![Tool authentication required in meinGPT](/images/integrations/n8n-mcp/start-assistant-chat.png)

- Click on "Connect" and do the OAuth flow

![Tool authentication successful in meinGPT](/images/integrations/n8n-mcp/oauth-flow.png)

### 7. Verify Connection

- When the connection was successfully established, you'll be presented this screen:

![Verify tool connection in meinGPT](/images/integrations/n8n-mcp/oauth-flow-success.png)

### 8. Use the MCP Server

- Now you can start using your workflows via an assistant. Prompts you can try:
    - "What workflows do you see?"
    - "Run workflow xyz"

![Use n8n MCP server via assistant in meinGPT](/images/integrations/n8n-mcp/use-tool.png)
