Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

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
NameRequiredDescriptionDefault
idYesThe unique identifier of the resource

Implementation Reference

  • 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
          };
        }
      );

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