Skip to main content

Clerk Changelog

User search is faster on large applications, and you can now filter users by their metadata.

User search is faster on large applications, and you can now filter users by their metadata.

  • Search runs on a new search index: every search in the Dashboard, and the slowest searches from your backend.
  • Metadata filters work in the Dashboard and from your backend.

Faster search on large applications

Over the past year we shipped incremental optimizations to user search, but some queries stayed slow. We've now built a dedicated search index. At peak traffic, a query to the index takes a median of 19 milliseconds, and 99% of queries take under 250 milliseconds.

From your backend, we now serve the searches that would be slowest in our main database from the index. These are mostly partial-match searches on large applications. We serve their counts from the index too: counting the matches of a search on a large application could time out after 10 seconds, and those counts now return. Other searches still run in our main database, as fast as they did before. Over time, we'll serve more searches from the index.

The Users page in the Dashboard reads from the new index for every search, filter, and page. It also has these changes:

  • Results appear without waiting for the total. A search or filter counts its matches up to 1,000 and shows 1,000+ beyond that.
  • Search no longer needs at least three characters.

Filter users by metadata

Metadata is where you keep your own data about a user, like a plan, a customer ID from your billing system, or an internal flag. Until now you could store that data on a user but not search by it.

The Dashboard Users page has a new Metadata filter. Choose public, private, or unsafe metadata, enter a key, and filter for users whose value for that key is or is not the one you enter. With an empty value, is matches users who have the key, and is not matches users who don't. You can combine several conditions in one filter.

As you type a key, the Dashboard suggests keys from the metadata your users already have, including nested keys such as onboarding.completed, with the number of users who have each one. On large applications, those numbers come from a sample of 5,000 users.

See Filter users by metadata for the steps.

How to get it

The faster search and the Metadata filter are live now for every application. Your existing Backend API calls and SDK methods get the faster search with no changes.

To filter by metadata from your backend, or to skip the total, upgrade to @clerk/backend v3.32.0 or clerk-sdk-go v2.10.0. They add two methods:

  • getUserListWithoutCount() and user.ListWithoutCount return the same page of users as getUserList() and user.List, without the total. The existing methods return an exact total with every page and wait for it, and over many users that total can take much longer than the page. Use these when you don't need the total.
  • searchUsers() and user.Search accept metadata filters and page by cursor, so they also suit exports and syncs that read every user. Their results can trail a recent change by a short time.
const { data, cursor } = await clerkClient.users.searchUsers({
  metadata: [{ scope: 'public', key: 'plan', match: 'equals', value: 'pro' }],
})
page, err := user.Search(ctx, &user.SearchParams{
	Metadata: []user.SearchMetadataFilter{
		{Scope: "public", Key: "plan", Match: "equals", Value: clerk.String("pro")},
	},
})
Contributors
Daniel Moerner
Graham Allan
Henry Snopek
Georgios Komninos

Share this article

clerk init now sets up Clerk in Xcode and Android projects, or creates a new app with Clerk already set up.

The Clerk CLI now sets up native apps. Run clerk init in an Xcode or Android project, and it links your Clerk application, registers your app, and adds the Clerk SDK.

What's new

  • Existing apps. Run clerk init from the folder with your Xcode project, or from your Android project's root. In an Xcode project, it installs the Clerk iOS SDK with Swift Package Manager. In an Android project, it adds the Clerk Android SDK to your Gradle build and initializes Clerk in your Application class.
  • New apps. clerk init --starter with --framework ios, --framework macos, or --framework android creates a SwiftUI or Jetpack Compose app with Clerk set up. Add --prebuilt-auth-ui to include Clerk's prebuilt sign-in screen.
  • Native sign-in. --sign-in-with-apple turns on native Sign in with Apple. --sign-in-with-google turns on native Sign in with Google for Android and lists the Google Cloud steps the CLI can't do for you.
  • clerk doctor. Run it to check your iOS, macOS, or Android setup.
  • Agent mode. Agents can run setup with --mode agent --json. The iOS and Android quickstarts include a prompt you can give your agent.

iOS and macOS setup needs Xcode on a Mac. Android setup works on macOS, Linux, and Windows.

Get started

Use clerk 4.4.0 or later:

npx -y clerk@latest init

Then follow the iOS quickstart or the Android quickstart, or see the Clerk CLI docs.

Contributors
Sean Perez
Sam Wolfand

Share this article

New Dashboard sidebar

Category
Dashboard
Published

Application pages in the Clerk Dashboard now use a sidebar in place of the tabs at the top, and each setting sits next to the feature it configures.

As the Clerk Dashboard added Agents, Protect, and AI Gateway, the Configure tab grew into one long list of settings, separate from the pages they control. Now you manage your users and how they sign in from the same place.

To find a page by name, select Find or press ⌘+K (Mac) or Ctrl+K (Windows/Linux) to open the command menu.

Where settings moved

Settings from the Configure tab now live under the feature they belong to:

Previously in ConfigureNow in the sidebar under
User & authenticationUsers
AgentsAgents
OrganizationsOrganizations
ProtectProtect
FeaturesFeatures
BillingBilling
Developers, Sessions, Account Portal, Customization, AI Gateway, and instance and application settingsDeveloper

The tabs on the users and organizations lists, like Invitations and Verified domains, are now pages under Users and Organizations.

The switchers at the top left of the page moved too. The application switcher is at the top of the sidebar, the menu for workspaces, invitations, and your account is at the bottom, and the instance switcher is at the top right of the page.

Dashboard URLs haven't changed, so existing links and bookmarks still work.

Using the sidebar

  • To see all top-level items without leaving the current page, select Back.
  • To go back to a list from one of its items, like a single user, select the list in the breadcrumbs at the top of the page.
  • To collapse or expand the sidebar, select the button at the top or press [. While it's collapsed, hover over it to open it temporarily.

Share feedback on our feedback portal.

Contributors
Andrew Tam
Nate Watkin

Share this article

Protect your MCP server with Clerk

Category
SDK
Published

Build MCP servers that follow the current MCP authorization spec, open chosen tools before sign-in, and publish Server Cards.

@clerk/mcp-tools 1.0.0, Clerk's improved MCP SDK, can now handle authorization for your MCP server end to end. Users sign in with Clerk, your server accepts only tokens issued for it, and clients get the challenges the current MCP authorization spec (revision 2026-07-28) expects.

To serve the 2026-07-28 protocol itself, use @modelcontextprotocol/server 2.3.0 or later.

What's new

  • Discoverable by default: anyone can connect to your MCP server and list its tools, but calling them still needs sign-in, so users sign in only when they reach something protected. Name the tools anyone can call with publicAccess, or set discoverable: false to keep the server fully private.
  • Audience-checked tokens: your server rejects tokens issued for another resource, even on the same Clerk instance.
  • Server Cards and AI Catalogs: publish an MCP Server Card and an AI Catalog so clients and registries can discover your server. See Publish a Server Card and an AI Catalog.
  • Built-in feedback tool: submit_feedback now asks agents to report problems as soon as they find them, then continue the task.
  • Security floors: the MCP SDK peers now require versions with upstream security fixes, and MCP clients keep OAuth credentials bound to the authorization server that issued them.

Upgrading

1.0.0 is a breaking release:

  • MCP servers are discoverable by default: a client without an access token can connect and list your tools, resources, resource templates, and prompts, but calling them still needs sign-in. To require a token for every request, as in 0.9, set discoverable: false.
  • Exports drop the Clerk suffix, and the old names are gone with no aliases.
  • Clerk-verified tokens must carry your resourceUrl as their audience, and custom token verifiers get stricter checks.
  • The minimum Clerk SDK and MCP SDK versions go up.
  • Sessions stored by MCP clients before 1.0 must reconnect once.

To upgrade from 0.9, follow Upgrade to @clerk/mcp-tools 1.0.

To get started, see Build an MCP server and Allow public access to your MCP server before sign-in. For Hono, see the @clerk/mcp-tools/hono README.

Contributors
Wyatt Johnson
Bryce Kalow

Share this article

List organizations and memberships, and update user profiles and metadata from your agent.

Five new Clerk MCP server tools let your agent inspect organizations and memberships and update existing users in your application's development or production instance.

  • list_organizations: List or search organizations with filters and pagination.
  • list_organization_memberships: List an organization's members with their roles and permissions.
  • list_user_organization_memberships: List the organizations a user belongs to, with their role and permissions in each.
  • update_user: Update a user's first or last name, username, external ID, locale, or timezone. You can also set whether they bypass Device Trust (bypass_client_trust).
  • update_user_metadata: Add or change a user's public, private, or unsafe metadata.

Existing connections may not have the new organizations:read permission. Ask your agent to run whoami to check. If the permission is missing, sign out of the Clerk MCP server and connect again.

See the Clerk MCP server guide for setup instructions and the full tool list.

Contributor
Josh Rowley

Share this article

Browser sessions for agents

Category
Product
Published

Your MCP server can give an agent a one-time link that opens a browser already signed in as the user.

Agents that use a browser can now get past your app's sign-in page without asking the user for a password. By default, Clerk's Frontend API refuses sign-out, Organization switches, and profile changes from the session.

See Sign agents in to your app with a one-time link to get started.

Contributors
Mitch Vostrez
Bryce Kalow

Share this article