MCPSERV.CLUB
omar-steam

Local MCP Server with HTTPS & GitHub OAuth

MCP Server

Secure local MCP server using HTTPS and GitHub authentication

Stale(50)
6stars
2views
Updated Aug 30, 2025

About

A Node.js Express-based local MCP server that encrypts traffic with self‑signed HTTPS certificates and authenticates users via GitHub OAuth. It includes rate limiting, secure session handling, and HTTP header protection for robust security.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Overview

The MCP Server With HTTPS and GitHub OAuth is a secure, locally hosted Model Context Protocol (MCP) server designed to give developers a reliable foundation for building AI‑assistant integrations. By wrapping the MCP interface in HTTPS and tying access to GitHub’s OAuth, it eliminates two common pain points for local AI workflows: secure communication and identity management. Developers can now expose MCP endpoints to Claude or other assistants without exposing plain‑text traffic or hard‑coding credentials.

At its core, the server exposes the same MCP capabilities as any other implementation—resources, tools, prompts, and sampling—but adds a layer of authentication that is both familiar to developers (GitHub accounts) and auditable. Once authenticated, a user receives a signed session cookie that the MCP client can present with each request. The server validates this token before allowing any action, ensuring that only authorized users can query or modify the model context. This is especially valuable when multiple developers collaborate on a shared AI prototype or when an assistant needs to access sensitive data stored in the MCP.

Key features include:

  • HTTPS encryption via self‑signed certificates, guaranteeing that all traffic between the client and server is encrypted.
  • GitHub OAuth integration that uses Passport.js to authenticate users against their existing GitHub accounts, providing a single‑sign‑on experience.
  • Rate limiting and helmet‑based HTTP header protection to guard against brute‑force attacks and common web vulnerabilities.
  • Secure session management with encrypted cookies, ensuring that session data cannot be tampered with or hijacked.
  • A minimal yet expressive API surface, keeping the server lightweight while still exposing full MCP functionality.

Typical use cases include:

  • Local AI prototyping: Teams can spin up a local MCP server, authenticate with GitHub, and share a consistent context across their assistants.
  • Secure data access: When an assistant must retrieve or modify sensitive configuration files, the server ensures only authenticated users can do so.
  • DevOps pipelines: CI/CD jobs that invoke AI assistants can authenticate programmatically via GitHub tokens, enabling automated context updates without exposing secrets.
  • Educational environments: Instructors can provide students with a sandboxed MCP instance that requires GitHub login, ensuring accountability and preventing misuse.

By integrating seamlessly into existing Node.js workflows—leveraging Express, Passport, and Helmet—the server allows developers to focus on building AI logic rather than reinventing security layers. Its open‑source nature means you can customize the authentication flow, swap out HTTPS certificates for Let's Encrypt, or extend rate‑limiting rules to fit your organization’s policies. This makes the MCP Server With HTTPS and GitHub OAuth a practical, production‑ready foundation for any project that needs secure, authenticated access to an MCP backend.