list_credentials
Retrieve all stored credentials from the n8n automation platform to manage authentication for workflow connections and integrations.
Instructions
List all n8n credentials
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:565-575 (handler)The main handler function for the 'list_credentials' MCP tool. It calls N8nClient.listCredentials() and returns a formatted JSON response.private async handleListCredentials() { const credentials = await this.n8nClient.listCredentials(); return { content: [ { type: 'text', text: JSON.stringify(jsonSuccess(credentials), null, 2), }, ], }; }
- src/index.ts:160-167 (registration)Tool registration in the listTools response, including name, description, and input schema (empty object since no parameters).{ name: 'list_credentials', description: 'List all n8n credentials', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:163-166 (schema)Input schema definition for the list_credentials tool (no required parameters).inputSchema: { type: 'object', properties: {}, },
- src/n8n-client.ts:233-236 (helper)Core implementation in N8nClient that performs the actual API GET request to /credentials endpoint to fetch the list of credentials.async listCredentials(): Promise<N8nCredential[]> { const response = await this.api.get<N8nCredentialsListResponse>('/credentials'); return response.data.data; }