- n8n MCP Server
n8n MCP Server
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
- Clone this repository
- Install dependencies:
npm install
- Create a
.envfile based on.env.example:
cp .env.example .env
- Edit the
.envfile with your n8n host URL and API key:
N8N_HOST=http://your-n8n-instance:5678
N8N_API_KEY=your_n8n_api_key_here
- Build the project:
npm run build
Running the server
Running locally
npm start
Running with Docker
- Build and start the Docker container:
docker-compose up -d
- To view logs:
docker-compose logs -f
- To stop the server:
docker-compose down
Using with Claude Desktop
To configure Claude Desktop to use this server:
-
Open your Claude Desktop configuration file located at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
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"
}
}
}
}
- 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 n8nget-workflow: Get a specific workflow by IDactivate-workflow: Activate a workflowdeactivate-workflow: Deactivate a workflow
Executions
list-executions: Get a list of workflow executionsget-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.
ChatWiseThe second fastest AI chatbot™
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"
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
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.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Tavily Mcp
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
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.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.