n8n's official Claude Code connector can now create and edit workflows! This goes way beyond plugging an API into MCP. It's purpose built for LLMs. Includes a new workflow TypeScript SDK so workflows are written as code instead of JSON, with more reliable validation. Works anywhere MCPs are supported (n8n 2.18.5+). 🔗 Full video: https://t.co/9D8H2VgHaY
n8n Updates Claude Code Connector to Build and Edit Workflows
· Updated
n8n, an open-source workflow automation platform, updated its official Claude Code connector to allow AI agents to create and edit workflows. The connector uses a TypeScript SDK to define logic via the Model Context Protocol (MCP), complementing n8n's production AI framework.
- Minimum version
- n8n 2.18.5
- Protocol
- Model Context Protocol (MCP)
- Workflow definition
- TypeScript SDK
- Agent capabilities
- Create, edit, and execute workflows
- Supported clients
- Claude Code, Cursor, and other MCP hosts
This update addresses the difficulty LLMs face when generating large, nested JSON files for complex automations. By providing a purpose-built SDK, n8n enables agents to reason about workflow steps as structured code. It mirrors a trend where platforms like Atlassian's Rovo MCP server and Unity's AI agent connectivity use MCP to grant agents direct control.
You can use these capabilities in any environment that supports MCP, including Claude Code and Cursor. The feature requires n8n version 2.18.5 or higher. This allows you to describe an automation in natural language and have the agent generate the production-ready workflow without manual configuration.
n8n.io
@n8n_io
85retweets709likes
View on XStill wondering? A few quick answers below.
It is an official Model Context Protocol server that allows AI agents like Claude Code to interact with an n8n instance. While it previously only allowed agents to execute existing workflows, the updated connector enables them to create and modify automation logic directly from a terminal or IDE.
The new SDK allows workflows to be written as code rather than complex JSON structures. This approach is purpose-built for large language models, providing more reliable validation and making it easier for agents to reason about automation steps. It ensures that the generated workflows are structurally sound and functional.
To use the ability to create and edit workflows via an AI agent, you must be running n8n version 2.18.5 or higher. The connector works across any platform or tool that supports the Model Context Protocol, including the Claude Code terminal agent and the Cursor code editor.
Yes, the n8n connector is built on the Model Context Protocol, which is an open standard for connecting AI models to external data and tools. This means it is compatible with any client that supports MCP, such as Cursor, allowing various AI agents to manage your workflows.
n8n is an open-source and self-hostable workflow automation platform. The official Claude Code connector and the associated TypeScript SDK are part of this open ecosystem, designed for technical teams who require code-level flexibility and the ability to integrate AI solutions with any application or API.

