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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/credentials.ts:205-213 (handler)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 } }; } ); - src/tools/credentials.ts:184-204 (registration)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 } },