{"type":"mcp_server","name":"n8n-mcp-server","description":"The n8n MCP Server enables AI assistants to interact with n8n workflows using natural language. It allows assistants to manage workflows, execute them, and access related information, facilitating AI-driven automation.","category":"Productivity","language":"TypeScript","stars":1629,"forks":12,"owner":"leonardsellem","github_url":"https://github.com/leonardsellem/n8n-mcp-server","homepage":null,"setup":"## Setup\n\n1.  **Prerequisites:** Node.js 18 or later, and an n8n instance with API access enabled.\n2.  **Install from npm:**\n\n    ```bash\n    npm install -g n8n-mcp-server\n    ```\n\n3.  **Install from source:**\n\n    ```bash\n    # Clone the repository\n    git clone https://github.com/leonardsellem/n8n-mcp-server.git\n    cd n8n-mcp-server\n\n    # Install dependencies\n    npm install\n\n    # Build the project\n    npm run build\n\n    # Optional: Install globally\n    npm install -g .\n    ```\n\n4.  **Configuration:** Create a `.env` file using `.env.example` as a template and configure the environment variables.\n\n    ```bash\n    cp .env.example .env\n    ```\n\n    Configure the following environment variables:\n\n    | Variable | Description | Example |\n    |----------|-------------|---------|\n    | `N8N_API_URL` | URL of the n8n API | `http://localhost:5678/api/v1` |\n    | `N8N_API_KEY` | API key for authenticating with n8n | `n8n_api_...` |\n    | `N8N_WEBHOOK_USERNAME` | Username for webhook authentication | `username` |\n    | `N8N_WEBHOOK_PASSWORD` | Password for webhook authentication | `password` |\n    | `DEBUG` | Enable debug logging (optional) | `true` or `false` |\n\n5.  **Generating an n8n API Key:** Follow the instructions to create and copy an API key from your n8n instance to your `.env` file.\n6.  **Running the Server:** Execute `n8n-mcp-server` from the installation directory or globally.\n7.  **Integrating with AI Assistants:** Register the server with your AI assistant platform, using the MCP installer as an example.\n\n    ```bash\n    npx @anaisbetts/mcp-installer\n    ```\n\n    Then register the server:\n\n    ```\n    install_local_mcp_server path/to/n8n-mcp-server\n    ```","tools":"## Available Tools\n\n1.  **Using Webhooks** (Execute workflows through n8n webhooks with Basic Authentication).\n2.  **`workflow_list`** (List all workflows).\n3.  **`workflow_get`** (Get details of a specific workflow).\n4.  **`workflow_create`** (Create a new workflow).\n5.  **`workflow_update`** (Update an existing workflow).\n6.  **`workflow_delete`** (Delete a workflow).\n7.  **`workflow_activate`** (Activate a workflow).\n8.  **`workflow_deactivate`** (Deactivate a workflow).\n9.  **`execution_run`** (Execute a workflow via the API).\n10. **`run_webhook`** (Execute a workflow via a webhook).\n11. **`execution_get`** (Get details of a specific execution).\n12. **`execution_list`** (List executions for a workflow).\n13. **`execution_stop`** (Stop a running execution).","faq":null,"created_at":"2025-03-12T15:56:12+00:00","updated_at":"2025-03-28T23:10:01+00:00","source_url":"https://model-context-protocol.com/servers/n8n-api-ai-workflow-automation-server","related_articles":[]}