n8n_get_user
Retrieve user details including ID, email, name, and role from the n8n automation platform using a unique identifier.
Instructions
Get details of a specific user.
Args:
id (string): User ID
Returns: User details with id, email, name, and role.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/users-sourcecontrol.ts:90-118 (handler)Implementation of the n8n_get_user MCP tool handler which fetches user details from the n8n API.
// ============ Get User ============ server.registerTool( 'n8n_get_user', { title: 'Get n8n User', description: `Get details of a specific user. Args: - id (string): User ID Returns: User details with id, email, name, and role.`, inputSchema: IdParamSchema, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async (params: z.infer<typeof IdParamSchema>) => { const user = await get<N8nUser>(`/users/${params.id}`); return { content: [{ type: 'text', text: formatUser(user) }], structuredContent: user }; } );