Sponsored by Deepsite.site

n8n MCP Server

Created By
mows217 months ago
MCP server for n8n integration with Claude and other LLMs
Content

n8n MCP Server

This is a Model Context Protocol (MCP) server that allows Large Language Models like Claude to interact with n8n via its REST API.

Features

The server provides tools for:

  • Listing, retrieving, activating, and deactivating workflows
  • Viewing workflow executions
  • Getting credential type schemas

Prerequisites

  • Node.js 16 or higher
  • npm or yarn
  • An n8n instance (self-hosted or cloud)
  • n8n API key

Installation

  1. Clone this repository
  2. Install dependencies:
npm install
  1. Create a .env file based on .env.example:
cp .env.example .env
  1. Edit the .env file with your n8n host URL and API key:
N8N_HOST=http://your-n8n-instance:5678
N8N_API_KEY=your_n8n_api_key_here
  1. Build the project:
npm run build

Running the server

Running locally

npm start

Running with Docker

  1. Build and start the Docker container:
docker-compose up -d
  1. To view logs:
docker-compose logs -f
  1. To stop the server:
docker-compose down

Using with Claude Desktop

To configure Claude Desktop to use this server:

  1. Open your Claude Desktop configuration file located at:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the following configuration:

{
  "mcpServers": {
    "n8n": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/n8n-mcp-server/build/index.js"
      ],
      "env": {
        "N8N_HOST": "http://your-n8n-instance:5678",
        "N8N_API_KEY": "your_n8n_api_key_here"
      }
    }
  }
}
  1. Save the file and restart Claude Desktop.

You can also use Docker to run the server:

{
  "mcpServers": {
    "n8n": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e", "N8N_HOST=http://your-n8n-instance:5678",
        "-e", "N8N_API_KEY=your_n8n_api_key_here",
        "n8n-mcp-server"
      ]
    }
  }
}

Available Tools

Workflows

  • list-workflows: Get a list of workflows from n8n
  • get-workflow: Get a specific workflow by ID
  • activate-workflow: Activate a workflow
  • deactivate-workflow: Deactivate a workflow

Executions

  • list-executions: Get a list of workflow executions
  • get-execution: Get a specific execution by ID

Credentials

  • get-credential-type: Get credential type schema

Example Usage with Claude

Once connected to Claude Desktop, you can interact with n8n using natural language:

  • "Show me all my n8n workflows"
  • "Get details about the workflow with ID abc123"
  • "Activate the workflow called 'Daily Report'"
  • "Deactivate the workflow with ID xyz789"
  • "Show me recent executions of my 'Data Import' workflow"
  • "Get details for the execution with ID 12345"
  • "What fields are required for the Notion credential type?"

Security Considerations

  • This server requires your n8n API key, which provides full access to your n8n instance
  • Store your API key securely and never share it
  • Consider creating a limited-scope API key if your n8n instance supports it
  • The server only implements read operations and limited state changes (activate/deactivate) to limit risk

Limitations

  • This server only implements read operations for many resources to limit risk
  • Some advanced n8n API features may not be implemented
  • The server does not currently support executing workflows or creating new workflows

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Serper MCP ServerA Serper MCP Server
Playwright McpPlaywright MCP server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Amap Maps高德地图官方 MCP Server
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™
Tavily Mcp
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
CursorThe AI Code Editor
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.