Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_transfer_credential

Transfer credentials between projects in n8n to manage access and organize automation resources.

Instructions

Transfer a credential to a different project.

Args:

  • credentialId (string): Credential ID to transfer

  • destinationProjectId (string): Target project ID

Returns: Confirmation of transfer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
credentialIdYesCredential ID to transfer
destinationProjectIdYesTarget project ID

Implementation Reference

  • The implementation of the 'n8n_transfer_credential' tool, including its registration, description, schema definition, and the handler function that calls the /credentials/{credentialId}/transfer endpoint.
        server.registerTool('n8n_transfer_credential', {
            title: 'Transfer Credential to Project',
            description: `Transfer a credential to a different project.
    
    Args:
      - credentialId (string): Credential ID to transfer
      - destinationProjectId (string): Target project ID
    
    Returns:
      Confirmation of transfer.`,
            inputSchema: z.object({
                credentialId: z.string().min(1).describe('Credential ID to transfer'),
                destinationProjectId: z.string().min(1).describe('Target project ID')
            }).strict(),
            annotations: {
                readOnlyHint: false,
                destructiveHint: false,
                idempotentHint: true,
                openWorldHint: false
            }
        }, async (params) => {
            await put(`/credentials/${params.credentialId}/transfer`, {
                destinationProjectId: params.destinationProjectId
            });
            return {
                content: [{ type: 'text', text: `✅ Credential transferred to project ${params.destinationProjectId}` }],
                structuredContent: { transferred: true, credentialId: params.credentialId, projectId: params.destinationProjectId }
            };
        });

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