What is SSE MCP Server with JWT Authentication?
SSE MCP Server with JWT Authentication is a secure server that exposes multiple AI tools over Server-Sent Events (SSE) using JSON Web Tokens (JWT) for authentication. It is built with Node.js and Express, allowing for dynamic tool registration and secure connections.
How to use SSE MCP Server?
To use the SSE MCP Server, clone the repository, install the dependencies, create a .env file with your JWT secret, and run the server. You can then connect to the server using the MCP Inspector to test the available tools.
Key features of SSE MCP Server?
- Secure SSE connection using Bearer JWT token
- Dynamic tool registration (e.g., echo, time, random number)
- Fully tested with MCP Inspector
- Logs all request lifecycle events
- Session management for active sessions
Use cases of SSE MCP Server?
- Exposing AI tools for real-time data processing.
- Securely managing user sessions and authentication.
- Testing and debugging AI tools using the MCP Inspector.
FAQ from SSE MCP Server?
-
What is JWT?
JWT (JSON Web Token) is a compact, URL-safe means of representing claims to be transferred between two parties. -
How do I generate a token?
You can generate a token by making a GET request to/auth/tokenwith your username and desired scope. -
Is this project open-source?
Yes! This project is open-source and free to use.