Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 733 Bytes

File metadata and controls

22 lines (15 loc) · 733 Bytes

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.
  • Put your 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:

"mcp-clerk-next": {
  "url": "http://localhost:3000/mcp"
}

Examples of other clients coming soon!