http-oauth-mcp-server

http-oauth-mcp-server

3.5

If you are the rightful owner of http-oauth-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This repository provides a reference implementation for creating a remote MCP server that supports Streamable HTTP & SSE Transports, authorized with OAuth based on the MCP specification.

The repository offers a comprehensive setup for an MCP server that integrates Streamable HTTP and SSE transports with OAuth authorization. It includes an express.js application that manages both transports and OAuth, allowing users to plug in their own MCP server and OAuth credentials. The implementation proxies OAuth to an upstream server supporting dynamic client registration, such as Auth0. The server can be run in either a stateless or stateful mode, with the former suitable for serverless deployment. The setup is designed to facilitate the integration of OAuth-authorized MCP servers into various applications, although current support is limited to JavaScript/TypeScript environments due to SDK limitations.

Features

  • Streamable HTTP and SSE Transports: Supports both transport methods for flexible communication.
  • OAuth Authorization: Integrates OAuth for secure authorization, with support for dynamic client registration.
  • Express.js Application: Manages transports and OAuth, allowing easy integration with custom MCP servers.
  • Stateless and Stateful Modes: Offers both modes for different deployment needs, including serverless options.
  • Auth0 Integration: Recommends using Auth0 for OAuth, supporting dynamic client registration and IDP connections.