Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_activate_workflow

Activate a workflow to enable automated execution based on its triggers. Use this tool to start automated processes in n8n.

Instructions

Activate a workflow so it can run automatically based on its triggers.

Args:

  • id (string): Workflow ID to activate

Returns: The activated workflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the resource

Implementation Reference

  • Handler function for the n8n_activate_workflow tool.
      async (params: z.infer<typeof IdParamSchema>) => {
        const workflow = await post<N8nWorkflow>(`/workflows/${params.id}/activate`);
        
        return {
          content: [{ type: 'text', text: `✅ Workflow activated!\n\n${formatWorkflow(workflow)}` }],
          structuredContent: workflow
        };
      }
    );
  • Tool registration for n8n_activate_workflow.
      server.registerTool(
        'n8n_activate_workflow',
        {
          title: 'Activate n8n Workflow',
          description: `Activate a workflow so it can run automatically based on its triggers.
    
    Args:
      - id (string): Workflow ID to activate
    
    Returns:
      The activated workflow.`,
          inputSchema: IdParamSchema,
          annotations: {
            readOnlyHint: false,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false
          }
        },
        async (params: z.infer<typeof IdParamSchema>) => {
          const workflow = await post<N8nWorkflow>(`/workflows/${params.id}/activate`);
          
          return {
            content: [{ type: 'text', text: `✅ Workflow activated!\n\n${formatWorkflow(workflow)}` }],
            structuredContent: workflow
          };
        }
      );

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