Connect n8n-mcp to Cursor - quick setup guide
2 min read
7 months ago
Published on Aug 22, 2025
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
This tutorial provides a step-by-step guide on how to connect n8n-mcp to Cursor. This integration allows users to automate workflows between n8n and Cursor, enhancing productivity. Follow the instructions carefully to set up the connection successfully.
Step 1: Install n8n-mcp
- Clone the Repository: Start by cloning the n8n-mcp repository from GitHub. Open your terminal and run the following command:
git clone https://github.com/czlonkowski/n8n-mcp.git - Navigate to the Directory: Change into the project directory:
cd n8n-mcp - Install Dependencies: Ensure you have Node.js installed, then run the following command to install the required dependencies:
npm install
Step 2: Configure n8n-mcp
- Create a Configuration File: You need to set up a configuration file to define your connection settings. Create a
.envfile in the root directory of your cloned repository with the following format:CURSOR_API_KEY=your_cursor_api_key - Obtain the API Key: Go to your Cursor account to get your API key. This key is crucial for authenticating your requests.
Step 3: Run n8n-mcp
- Start the Application: Use the following command in your terminal to start the n8n-mcp application:
npm run start - Access the Interface: Open your web browser and navigate to
http://localhost:5678to access the n8n interface.
Step 4: Set Up Cursor Integration
- Create a New Workflow: In the n8n interface, click on "New Workflow".
- Add Cursor Node: Search for the Cursor node in the node panel and drag it to your workflow.
- Configure the Node: Click on the Cursor node to configure it. Enter your API key from the .env file and set up the necessary parameters for your workflow.
Step 5: Test the Integration
- Execute the Workflow: Save your workflow and click on "Execute Workflow" to test the integration.
- Check Results: Monitor the output from the Cursor node to ensure that data flows correctly between n8n and Cursor.
Conclusion
You have successfully connected n8n-mcp to Cursor, allowing you to automate your workflows. Remember to keep your API keys secure and regularly check for updates in the n8n-mcp repository. As a next step, explore additional nodes and functionalities within n8n to further enhance your automation capabilities.