Content
# MCP Server with Clerk & Next.js
A minimal example of an MCP server endpoint using Next.js and Clerk for authentication.
### Setup
- Run `npm i` to install dependencies
- Create a Clerk application, and make sure that dynamic client registration has been toggled on [in the dashboard](https://dashboard.clerk.com/last-active?path=oauth-applications).
- Put [your API keys](https://dashboard.clerk.com/last-active?path=api-keys) in an `.env.local` file in the project
- Run `npm run dev` to start the app
### Connecting to the server
To test in cursor, for example, add the following config to your mcp config file:
```json
"mcp-clerk-next": {
"url": "http://localhost:3000/mcp"
}
```
Examples of other clients coming soon!
Connection Info
You Might Also Like
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
servers
Model Context Protocol Servers
servers
Model Context Protocol Servers
Time
A Model Context Protocol server for time and timezone conversions.
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.