MCP.so
登录

SSE MCP Server with JWT Authentication

@anisirji

基本信息

分类

开发工具

传输方式

stdio

作者

anisirji

关于 SSE MCP Server with JWT Authentication

Secure middleware server implementing Model Context Protocol (MCP) over SSE with JWT authentication. Enables standardized communication between AI tools and clients with dynamic tool registration, request logging, and session management. Perfect for building production-ready AI s

SSE MCP Server with JWT Authentication 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-remote-setup-with-jwt-auth": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector"
      ]
    }
  }
}

SSE MCP Server with JWT Authentication 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is 🔐 SSE MCP Server with JWT Authentication?

This server is a Model Context Protocol (MCP) SSE server that provides JWT‑based authentication for exposing multiple AI tools over an SSE transport. It is designed for developers needing secure remote access to MCP tools with flexible token management.

How to use 🔐 SSE MCP Server with JWT Authentication?

Clone the repository, install dependencies with npm install, create a .env file with a JWT_SECRET, and run npm run dev to start the server on http://localhost:3001/sse. Generate a JWT token via GET /auth/token?username=<username>&scope=mcp:access. Then connect to the SSE endpoint using the token in the Authorization header.

Key features of 🔐 SSE MCP Server with JWT Authentication

  • Secure SSE connection with Bearer JWT token
  • Dynamic tool registration (echo, time, random number)
  • Tested with @modelcontextprotocol/inspector
  • Session management for /message endpoint
  • Ready to extend for production use

Use cases of 🔐 SSE MCP Server with JWT Authentication

  • Expose multiple AI tools over SSE with JWT authentication
  • Test MCP tools using @modelcontextprotocol/inspector
  • Prototype and extend a secure MCP server for production

常见问题

1

What transport does this server use?

It uses SSE (Server‑Sent Events) with JWT Bearer token authentication.

2

How do I generate an authentication token?

Send a GET request to `/auth/token?username=<username>&scope=mcp:access`.

3

What tools are included by default?

Default tools are `test`, `echo`, `get-time`, and `random-number`.

4

What are the runtime requirements?

Node.js, Express, @modelcontextprotocol/sdk, JWT, and Zod.

5

Is this server ready for production?

It is designed to be extended for production use; upcoming changes include token revocation, role‑based access, and rate limiting.

评论

开发工具 分类下的更多 MCP 服务器