Skip to main content
Glama
Authenticated Next.js MCP Server

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:

Related MCP server: ServeMyAPI

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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      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.
      25
      ISC
    • F
      license
      Not graded
      quality
      B
      maintenance
      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 )
      198 npm
      11,797
      -