Labsco
nikolausm logo

n8n MCP Server

โ˜… 4

from nikolausm

Automate workflows with n8n, a powerful workflow automation tool.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

n8n MCP Server

MCP n8n

MCP (Model Context Protocol) server for n8n workflow automation. This server enables AI assistants like Claude to interact with n8n instances via the REST API.

Features

  • ๐Ÿ”„ Workflow Management: List, create, update, and delete workflows
  • โ–ถ๏ธ Execution Control: Execute workflows and monitor executions
  • ๐Ÿท๏ธ Tag Management: Organize workflows with tags
  • ๐Ÿ“Š Execution History: Access workflow execution history and results
  • ๐Ÿ”‘ Credential Management: List available credentials (read-only)
  • ๐ŸŒ Webhook Management: Create and manage webhooks
  • ๐Ÿ” Search: Search workflows by name or tags

Available Tools

Workflow Management

  • list_workflows - List all workflows with optional filtering
  • get_workflow - Get detailed information about a specific workflow
  • create_workflow - Create a new workflow from JSON
  • update_workflow - Update an existing workflow
  • delete_workflow - Delete a workflow
  • activate_workflow - Activate a workflow
  • deactivate_workflow - Deactivate a workflow

Execution

  • execute_workflow - Execute a workflow with optional input data
  • get_executions - Get execution history with filtering options
  • get_execution - Get details of a specific execution
  • delete_execution - Delete an execution
  • retry_execution - Retry a failed execution

Tags

  • get_tags - List all available tags
  • create_tag - Create a new tag
  • update_tag - Update a tag
  • delete_tag - Delete a tag

Other

  • get_credentials - List available credentials (names only)
  • search_workflows - Search workflows by name or tags
  • get_workflow_webhooks - Get webhook URLs for a workflow

Development

Setup

npm install

Build

npm run build

Test locally

N8N_URL=https://your-instance.com N8N_API_KEY=your-key npm start

Run tests

npm test

Security Notes

  • Never commit your API keys
  • Use environment variables for sensitive data
  • The MCP server has the same permissions as your API key
  • Consider using a restricted API key if possible

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT - see LICENSE file

Support

Author

Michael Nikolaus - GitHub