npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kotauth/mcp

v0.2.0

Published

MCP server for managing KotAuth identity platform — users, roles, groups, applications, sessions, audit logs, user attributes, and claim mappers via AI assistants

Downloads

47

Readme

@kotauth/mcp

MCP (Model Context Protocol) server for KotAuth — manage users, roles, groups, applications, sessions, audit logs, user attributes, and claim mappers from AI assistants like Claude, Cursor, and any MCP-compatible client. 25 tools across 8 domains.

Quick Start

npx @kotauth/mcp

Configuration

The server requires three environment variables:

| Variable | Description | Example | |---|---|---| | KOTAUTH_BASE_URL | Your KotAuth instance URL | https://auth.example.com | | KOTAUTH_TENANT_SLUG | Workspace slug to operate on | my-workspace | | KOTAUTH_API_KEY | API key with required scopes | kauth_my-workspace_abc... |

Create an API key in the KotAuth Admin Console under Settings → API Keys. Grant the scopes you need (e.g. users:read, users:write, roles:read).

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "kotauth": {
      "command": "npx",
      "args": ["-y", "@kotauth/mcp"],
      "env": {
        "KOTAUTH_BASE_URL": "https://auth.example.com",
        "KOTAUTH_TENANT_SLUG": "my-workspace",
        "KOTAUTH_API_KEY": "kauth_my-workspace_..."
      }
    }
  }
}

Claude Code

claude mcp add kotauth -- npx -y @kotauth/mcp \
  --env KOTAUTH_BASE_URL=https://auth.example.com \
  --env KOTAUTH_TENANT_SLUG=my-workspace \
  --env KOTAUTH_API_KEY=kauth_my-workspace_...

Available Tools

Users

  • list_users — List users, optionally filter by username/email/name
  • get_user — Get a specific user by ID
  • create_user — Create a new user with username, email, and password
  • update_user — Update a user's email or display name
  • disable_user — Disable a user account (soft delete)
  • assign_user_role — Assign a role to a user
  • remove_user_role — Remove a role from a user

Roles

  • list_roles — List all roles (tenant and client scoped)
  • create_role — Create a new role
  • delete_role — Delete a role

Groups

  • list_groups — List all groups with hierarchy
  • create_group — Create a group (optionally nested under a parent)
  • delete_group — Delete a group
  • manage_group_member — Add or remove a user from a group

Applications

  • list_applications — List OAuth2/OIDC clients
  • update_application — Update an application's settings

Sessions

  • list_sessions — List active sessions
  • revoke_session — Force-terminate a session

Audit

  • query_audit_logs — Query immutable audit events with filters

User Attributes

  • list_user_attributes — List all custom attributes for a user
  • set_user_attribute — Set a key-value attribute on a user (creates or updates)
  • delete_user_attribute — Remove an attribute from a user

Claim Mappers

  • list_claim_mappers — List all claim mappers for the workspace
  • set_claim_mapper — Map a user attribute to a JWT claim name
  • delete_claim_mapper — Remove a claim mapper

Required API Key Scopes

Each tool requires specific scopes on the API key:

| Tools | Scope | |---|---| | list_users, get_user | users:read | | create_user, update_user, disable_user, assign/remove role | users:write | | list_roles | roles:read | | create_role, delete_role | roles:write | | list_groups | groups:read | | create_group, delete_group, manage_group_member | groups:write | | list_applications | applications:read | | update_application | applications:write | | list_sessions | sessions:read | | revoke_session | sessions:write | | query_audit_logs | audit_logs:read | | list_user_attributes | user_attributes:read | | set_user_attribute, delete_user_attribute | user_attributes:write | | list_claim_mappers | claim_mappers:read | | set_claim_mapper, delete_claim_mapper | claim_mappers:write |

Development

git clone https://github.com/kotauth/kotauth-mcp.git
cd kotauth-mcp
npm install
npm run build

Test locally with the MCP inspector:

KOTAUTH_BASE_URL=http://localhost:8080 \
KOTAUTH_TENANT_SLUG=master \
KOTAUTH_API_KEY=kauth_master_... \
npx @modelcontextprotocol/inspector node dist/index.js

License

MIT — see LICENSE.