
Clerk MCP Tools
by clerk
Developer library for building secure MCP integrations with built-in authentication and store adapters.
What it does
Clerk MCP Tools is a comprehensive library designed to simplify the implementation of the Model Context Protocol (MCP) with a strong focus on security and authentication. It provides the necessary plumbing for both MCP clients and servers to handle identity, session management, and protected resource metadata, significantly reducing the boilerplate required to integrate AI applications with private data sources.
Tools
Since this is a developer library rather than a standalone server, it exposes utilities for developers:
generateProtectedResourceMetadata: Creates RFC 9728 compliant metadata for resource servers.createDynamicallyRegisteredMcpClient: Implements OAuth 2.0 Dynamic Client Registration for clients.completeAuthWithCode: Handles the final step of the OAuth handshake to establish a session.getClientBySessionId: Retrieves a configured MCP client instance from a persistent store.
Installation
Install the package via npm:
npm install @clerk/mcp-tools
To expose the required .well-known/oauth-protected-resource endpoint, use the generateProtectedResourceMetadata helper within your server route (Express, Hono, or Next.js).
Supported hosts
Confirmed for use with any MCP-compliant host, including Claude Desktop and custom AI applications.
Quick install
npm install @clerk/mcp-toolsInformation
- Pricing
- free
- Published
- 7/28/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Claude Desktop
This is a library; implement as a server using the provided adapters in the documentation.






