Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Tools

MCP server by clerk Verified · npm:@clerk

MCP Tools is a TypeScript library built on the MCP TypeScript SDK. It helps developers add MCP with auth to clients and servers, including servers built with Express, Hono, or Next.js.

  • Score 91
  • 57 stars
  • 313k a week
  • MIT
  • Updated

Install MCP Tools

Built from the published package, never by AI.

claude mcp add mcp-tools -- npx -y @clerk/mcp-tools

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Tools in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-tools block.

About

MCP Tools is a library built on top of the MCP TypeScript SDK. It makes it easier to implement MCP with auth in an MCP client, an MCP server, or both. For servers, it provides helpers that generate protected resource metadata under RFC 9728, fetch authorization server metadata under RFC 8414, and build draft Server Cards. Server helpers are imported from @clerk/mcp-tools/server, and framework subpaths are available for Express, Hono, and Next.js.

Developers first decide whether they are building a client or a server, then follow the matching guide. Helpers such as generateProtectedResourceMetadata accept a Clerk publishable key, and the authorization server is derived from that key. The library is aimed at developers who want to connect AI applications to private data and services through MCP, with the user kept in control of what the assistant can access.

Written from the project's README and checked against it.

Tools it gives your assistant

  • generateProtectedResourceMetadataLibrary helper that generates protected resource metadata as defined by RFC 9728.
  • fetchAuthorizationServerMetadataLibrary helper that fetches authorization server metadata from a Clerk Frontend API for a publishable key.
  • generateServerCardLibrary helper that builds a draft MCP Server Card describing the server and where to connect.
  • serverCardHandlerAdapter handler that serves a generated Server Card over GET and HEAD with caching headers.
  • authorizationServerMetadataHandlerAdapter handler that relays Clerk's authorization server metadata, optional for most deployments.

What you need

  • Clerk publishable key, if using Clerk for authentication
  • MCP TypeScript SDK

Try asking

  • Generate protected resource metadata for my MCP server at /mcp using my Clerk key.
  • Add a Server Card handler to my Express MCP server.
  • Fetch Clerk authorization server metadata for my Next.js app's OAuth metadata route.

Good to know

  • Server Card support follows a draft MCP extension pinned at a specific commit.
  • Publishing a Server Card does not mean every MCP host will find or use it.
  • Server Cards are public and cached, so they must not contain credentials, tokens, or user data.
  • Clerk-specific helpers require a Clerk publishable key.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to MCP Tools

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

MCP Tools: common questions

Is MCP Tools for building MCP clients or servers?

It provides tools for both. The source says developers should first decide whether they are building a client or a server, since each has its own guide.

Which frameworks does MCP Tools support?

The source documents Express.js, Hono, and Next.js integrations, with framework subpaths that also export the server helpers.

Does MCP Tools require Clerk?

No. The source says that with Clerk you can pass a publishable key, and otherwise you can pass an authServerUrl for protected resource metadata.

How do I install MCP Tools?

In Claude Code run claude mcp add mcp-tools -- npx -y @clerk/mcp-tools. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Tools the official server?

MCP Tools is published by npm:@clerk from its verified domain in the official MCP Registry.

Is MCP Tools free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MCP Tools safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MCP Tools?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does MCP Tools work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP Tools Install

Add to stack

Loading.