Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_get_active_webhooks

Retrieve all active webhook endpoints and their linked workflows from an n8n automation server to monitor and manage incoming data triggers.

Instructions

Get a list of all active webhooks in the n8n instance.

Returns: List of active webhooks with their paths and associated workflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for 'n8n_get_active_webhooks' that fetches active webhooks from the n8n API.
    async () => {
      const webhooks = await get<Array<{ webhookPath: string; method: string; workflowId: string; node: string }>>('/active-webhooks');
      
      const formatted = webhooks.map(wh => 
        `- **${wh.method}** \`${wh.webhookPath}\`\n  Workflow: ${wh.workflowId}, Node: ${wh.node}`
      ).join('\n\n');
      
      const text = webhooks.length > 0
        ? `**Active Webhooks (${webhooks.length})**\n\n${formatted}`
        : 'No active webhooks found.';
      
      return {
        content: [{ type: 'text', text }],
        structuredContent: { count: webhooks.length, webhooks }
      };
    }
  • Registration of the 'n8n_get_active_webhooks' tool.
      server.registerTool(
        'n8n_get_active_webhooks',
        {
          title: 'Get Active Webhooks',
          description: `Get a list of all active webhooks in the n8n instance.
    
    Returns:
      List of active webhooks with their paths and associated workflows.`,
          inputSchema: EmptySchema,
          annotations: {
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false
          }
        },

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