get_credentials
List all credential names stored in n8n to view available integrations without exposing sensitive data.
Instructions
List available credentials (names only, no sensitive data)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_credentials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/n8n-client.ts:160-163 (handler)Actual implementation: calls n8n API GET /api/v1/credentials and returns the response data.
async getCredentials() { const response = await this.client.get("/api/v1/credentials"); return response.data; } - src/handlers.ts:157-159 (handler)Handler dispatcher: routes the 'get_credentials' tool call to N8nClient.getCredentials()
case "get_credentials": { return await client.getCredentials(); } - src/tools.ts:307-313 (schema)Tool schema/registration definition: name, description, and input schema (no parameters required).
{ name: "get_credentials", description: "List available credentials (names only, no sensitive data)", inputSchema: { type: "object", properties: {}, }, - src/index.ts:23-32 (registration)The tools array (including get_credentials) is registered via ListToolsRequestSchema handler in the MCP server.
); // Initialize n8n client const n8nClient = new N8nClient( process.env.N8N_URL || "http://localhost:5678", process.env.N8N_API_KEY || "" ); // Register tool list handler server.setRequestHandler(ListToolsRequestSchema, async () => {