- Clone the repository: git clone https://github.com/anisirji/mcp-server-remote-setup-with-jwt-auth
- Install dependencies: npm install
- Create environment file with secret key: echo "JWT_SECRET=your-secret-key" > .env
- Run the server: npm run dev
- Generate a JWT token using: curl "http://localhost:3001/auth/token?username=yourname&scope=mcp:access" and connect via MCP Inspector using the provided URL and token.