Skip to main content
Glama
mikusnuz

umami-mcp

create_user

Add new users to Umami Analytics with specified roles and credentials for team access management.

Instructions

Create a new user (admin only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesUsername for the new user
passwordYesPassword for the new user
roleNoUser role: 'admin' or 'user' (default: 'user')

Implementation Reference

  • The 'create_user' tool definition and handler implementation using the UmamiClient to make a POST request to /api/users.
    server.tool(
      "create_user",
      "Create a new user (admin only)",
      {
        username: z.string().describe("Username for the new user"),
        password: z.string().describe("Password for the new user"),
        role: z.string().optional().describe("User role: 'admin' or 'user' (default: 'user')"),
      },
      async ({ username, password, role }) => {
        const body: Record<string, unknown> = { username, password };
        if (role) body.role = role;
        const data = await client.call("POST", "/api/users", body);
        return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
      }
    );

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/mikusnuz/umami-mcp'

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