MCP-Server-with-HTTPS-and-GitHub-OAuth
0
This project is a secure local MCP server using Node.js and Express, featuring HTTPS, GitHub OAuth, and enhanced security measures. It provides an easy setup for constructing protected routes with client authentication.
Local MCP-Server-with-HTTPS-and-GitHub-OAuth
This project is a secure local MCP server built with Node.js and Express. Key features include:
- HTTPS Encryption: Ensures secure communication between clients and the server.
- GitHub OAuth Authentication: Allows users to log in using their GitHub accounts.
- Rate Limiting & Secure Session Management: Protects against abuse and uses secure cookies.
- HTTP Header Security: Utilizes helmet to protect against vulnerabilities.
Prerequisites
- Node.js (v16 or later)
- npm
- OpenSSL (for SSL certificates)
Setup Instructions
- Clone the repository.
- Install dependencies via npm.
- Generate SSL certificates with OpenSSL.
- Configure environment variables in a
.env
file. - Start the server to run securely on localhost.
Usage
Navigate to https://localhost:3000
in your browser. Authenticate with GitHub via /auth
. Access secure routes like /secure-data
once authenticated.
Troubleshooting
- For port issues, ensure port 3000 is free or change it.
- Address certificate warnings by using a trusted Certificate Authority.