Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, },
  • Input schema definition for the list_credentials tool (no required parameters).
    inputSchema: { type: 'object', properties: {}, },
  • 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; }

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/get2knowio/n8n-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server