mcp-server-remote-setup-with-jwt-auth

mcp-server-remote-setup-with-jwt-auth

3.3

If you are the rightful owner of mcp-server-remote-setup-with-jwt-auth and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is a Model Context Protocol (MCP) SSE server with JWT-based authentication, allowing secure exposure of multiple AI tools over an SSE transport.

The SSE MCP Server with JWT Authentication is a robust server built using Node.js and Express, designed to securely expose AI tools over a Server-Sent Events (SSE) transport. It employs JSON Web Tokens (JWT) for authentication, ensuring secure communication. The server is fully tested with the MCP Inspector, providing a reliable environment for dynamic tool registration and session management. The project is structured to facilitate easy setup and extension for production use, with a focus on security and scalability.

Features

  • Secure SSE connection using Bearer JWT token
  • Dynamic Tool registration (echo, time, random number, etc.)
  • Tested with MCP Inspector
  • Logs all request lifecycle events
  • Session management for /message endpoint

Tools

  1. test

    Test connection (security check)

  2. echo

    Echo the provided message

  3. get-time

    Return to the current server time

  4. random-number

    Returns random number (min/maximum)