Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_transfer_workflow

Move a workflow from one project to another within n8n automation platform. Specify workflow ID and target project ID to complete the transfer.

Instructions

Transfer a workflow to a different project.

Args:

  • workflowId (string): Workflow ID to transfer

  • destinationProjectId (string): Target project ID

Returns: Confirmation of transfer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesWorkflow ID to transfer
destinationProjectIdYesTarget project ID

Implementation Reference

  • The asynchronous handler function that performs the PUT request to transfer the workflow to the specified project.
    async (params: { workflowId: string; destinationProjectId: string }) => {
      await put(`/workflows/${params.workflowId}/transfer`, {
        destinationProjectId: params.destinationProjectId
      });
      
      return {
        content: [{ type: 'text', text: `✅ Workflow transferred to project ${params.destinationProjectId}` }],
        structuredContent: { transferred: true, workflowId: params.workflowId, projectId: params.destinationProjectId }
      };
    }
  • The registration of the 'n8n_transfer_workflow' tool with its title, description, and input schema.
      server.registerTool(
        'n8n_transfer_workflow',
        {
          title: 'Transfer Workflow to Project',
          description: `Transfer a workflow to a different project.
    
    Args:
      - workflowId (string): Workflow ID to transfer
      - destinationProjectId (string): Target project ID
    
    Returns:
      Confirmation of transfer.`,
          inputSchema: z.object({
            workflowId: z.string().min(1).describe('Workflow ID to transfer'),
            destinationProjectId: z.string().min(1).describe('Target project ID')
          }).strict(),
          annotations: {
            readOnlyHint: false,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false
          }
        },
  • The Zod schema definition for the 'n8n_transfer_workflow' input parameters, including workflowId and destinationProjectId.
    inputSchema: z.object({
      workflowId: z.string().min(1).describe('Workflow ID to transfer'),
      destinationProjectId: z.string().min(1).describe('Target project ID')
    }).strict(),
    annotations: {

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DrBalls/n8n-mcp-server-v2'

If you have feedback or need assistance with the MCP directory API, please join our Discord server