anisirji_mcp-server-remote-setup-with-jwt-auth
If you are the rightful owner of anisirji_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 through a Bearer Token flow. The server is equipped with dynamic tool registration, allowing for the addition of various tools such as echo, time, and random number generators. Input validation is handled by Zod, and the server is fully tested with the MCP Inspector, ensuring reliability and security. The project is structured to facilitate easy setup and extension, making it ready for production use. It also includes comprehensive logging of request lifecycle events and session management for the /message endpoint.
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
test
Test connection (security check)
echo
Echo back provided message
get-time
Returns current server time
random-number
Returns random number (min/max)