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.
Install MCP Tools
Built from the published package, never by AI.
claude mcp add mcp-tools -- npx -y @clerk/mcp-toolsRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-tools": {
"args": [
"-y",
"@clerk/mcp-tools"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-tools": {
"args": [
"-y",
"@clerk/mcp-tools"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-tools": {
"args": [
"-y",
"@clerk/mcp-tools"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-tools -- npx -y @clerk/mcp-tools{
"mcpServers": {
"mcp-tools": {
"args": [
"-y",
"@clerk/mcp-tools"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-tools npx -y @clerk/mcp-toolsGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
