Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_delete_credential

Remove a credential from the n8n MCP Server to manage automation security. Note: This action may disrupt workflows that depend on the deleted credential.

Instructions

Delete a credential.

⚠️ WARNING: This will break any workflows using this credential!

Args:

  • id (string): Credential ID to delete

Returns: Confirmation of deletion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the resource

Implementation Reference

  • The handler implementation for n8n_delete_credential that performs a DELETE request to /credentials/{id}.
      async (params: z.infer<typeof IdParamSchema>) => {
        await del(`/credentials/${params.id}`);
        
        return {
          content: [{ type: 'text', text: `✅ Credential ${params.id} deleted successfully.` }],
          structuredContent: { deleted: true, id: params.id }
        };
      }
    );
  • The MCP registration of n8n_delete_credential.
      server.registerTool(
        'n8n_delete_credential',
        {
          title: 'Delete n8n Credential',
          description: `Delete a credential.
    
    ⚠️ WARNING: This will break any workflows using this credential!
    
    Args:
      - id (string): Credential ID to delete
    
    Returns:
      Confirmation of deletion.`,
          inputSchema: IdParamSchema,
          annotations: {
            readOnlyHint: false,
            destructiveHint: true,
            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