Skip to main content
Glama

Authenticated Next.js MCP Server

MCP Server with Clerk Authentication

A Next.js-based Model Context Protocol (MCP) server with integrated Clerk authentication and user-specific API key management.

Quick Start

  1. Clone and install:
    git clone [repository-url] cd ve-nextjs-mcp-server npm install
  2. Configure Clerk (see PROJECT_DOCUMENTATION.md for detailed instructions):
    • Create Clerk account and application
    • Disable sign-ups in Clerk dashboard
    • Copy environment variables to .env.local
  3. Start development server:
    npm run dev
  4. Access dashboard:

Documentation

Features

  • 🔐 Clerk Authentication - Sign-in only access control
  • 🗝️ API Key Management - User-specific key creation and management
  • ⚙️ MCP Integration - Ready-to-use MCP server with Next.js documentation tool
  • 🛡️ Multiple Auth Methods - User keys, OAuth 2.1 with PKCE (Proof Key for Code Exchange), bearer tokens
  • 📱 Responsive Dashboard - Modern UI for key management

API Usage

# Create API key in dashboard first, then: curl -X POST http://localhost:3000/api/mcp \ -H "Authorization: Bearer mcp_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "get_nextjs_docs", "arguments": {"topic": "app router"} }, "id": 1 }'

Security

  • ✅ Sign-in only access (no public registration)
  • ✅ Admin-controlled user management
  • ✅ User-isolated API keys
  • ✅ Scoped permissions
  • ✅ Secure key generation

For complete documentation, see PROJECT_DOCUMENTATION.md.

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables secure MCP server functionality with Clerk authentication and user-specific API key management. Provides Next.js documentation tools through protected endpoints with multiple authentication methods including OAuth 2.1 with PKCE.

  1. Quick Start
    1. Documentation
      1. Features
        1. API Usage
          1. Security

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              A TypeScript-based MCP server for handling a simple notes system with NextJS that supports creating and summarizing text notes using MCP concepts.
              Last updated -
              4
              5
              • Apple
            • -
              security
              F
              license
              -
              quality
              A personal MCP server for securely storing and accessing API keys across projects using the macOS Keychain, letting AI assistants and applications retrieve credentials through natural language.
              Last updated -
              20
              • Apple
            • -
              security
              F
              license
              -
              quality
              Run your own MCP server for over 2,500 apps and APIs. * Run your own MCP server for over 2,500 APIs * Manage servers for your users, in your own app. * Connect accounts, configure params, and make API requests, all via tools * Fully-managed OAuth and credential storage )
              Last updated -
              198
              10,139
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              A sample MCP server implementation for Next.js projects that uses the Vercel MCP Adapter to handle protocol requests across different transport methods.
              Last updated -
              1
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/vedaterenoglu/ve-nextjs-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server