Streamable HTTP MCP server with browser-based GitHub OAuth

Streamable HTTP MCP server with browser-based GitHub OAuth

mcp_oauth_server_web•byasibyl

An example implementation of a Streamable HTTP MCP server that authenticates clients through a GitHub-based OAuth flow and handles authorized requests.

License: Not specified•Runtime: Awaiting documentation review•Category: auth security

WHAT IT DOES

  • •Runs a Streamable HTTP MCP server that accepts POST requests on the /mcp endpoint and manages session-based transport connections.
  • •Verifies access tokens in the Authorization header and rejects expired or unrecognized tokens.
  • •Provides OAuth authorization endpoints backed by a GitHub OAuthProvider implementation with PKCE.
  • •Exchanges the GitHub authorization code for a GitHub access token, stores it with the clientId, and issues its own access token to the client via the token endpoint.

BEST FOR

  • •Developers wanting a working example of OAuth-secured MCP client authorization through a GitHub provider.
  • •Teams building a Streamable HTTP MCP server that manages sessions and authorized client requests.

ABOUT MCP_OAUTH_SERVER_WEB

Streamable HTTP MCP server with browser-based GitHub OAuth is cataloged as an MCP server attributed to asibyl. An example implementation of a Streamable HTTP MCP server that authenticates clients through a GitHub-based OAuth flow and handles authorized requests. It is categorized under auth security. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Streamable HTTP MCP server with browser-based GitHub OAuth are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server handle authorization when a client connects?

Clients authorize through the /authorize and /token endpoints, which are served by a class implementing OAuthServerProvider. The server generates PKCE values, redirects to GitHub, then issues its own access token to the client.

What happens when a client requests without a session ID?

The server creates a new transport connection with a new sessionId and uses it to handle the request.

上游原版 README

在 GitHub 查看同一版本原文

README.md · f6e4d81e623e · 采集于 2026-11-13 12:21:53 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Implementing Streamable HTTP MCP Server with Browser-based OAuth

Overview

The purpose of this project is to support MCP Client requested authorization through the MCP Server. This requires implementing a custom OAuthProvider for GitHub.

As such, this project provides:

  1. An StreamableHTTP Server
  2. Browser-based client authorization using GitHub's OAuth
  3. Handling authorized client requests

High-level Execution Flow

The flow proceeds as follows:

  1. The client sends POST request to /mcp endpoint.
  2. The server verifies the access token included in the Authorization header. If it's expired (or not recognized), server returns an error. If the access token is valid, the server proceeds to the next step.
  3. If the client request contains a valid sessionId, the server uses an existing transport connection. If not, it creates a transport connection with a new sessionId. The server uses the transport connection to handle the request.

Authorization

The server receives client requests for authorization through the /authorize and /token endpoints. These are supported through a class that implements the OAuthServerProvider.

For requests to the /authorize endpoint, the server auth provider:

  1. Generates the PKCE verifier and challenge
  2. Redirects to the GitHub OAuth endpoint (GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET env variables must be set)
  3. As part of the callback,
    • uses the code returned in callback to fetche its access token from GitHub
    • stores this access token along with the clientId
    • generates a new auth code and returns this to the client

When the client hits the /token endpoint with this auth code, the server provides the client it's own access token.

How to use

  1. Clone this repository
  2. Install the dependencies npm install
  3. Go to your Developer Settings on GitHub (under Settings) and create an OAuth app. Note the Client ID and Client Secret.
  4. Set the GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET environment variables in your local dev environment.
  5. Start the MCP Server npx tsx server/index_streamable.ts

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Streamable HTTP MCP server with browser-based GitHub OAuth from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp_oauth_server_web)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related auth security MCP Servers

Alternative and complementary servers in the same category

View all in auth security →

A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

Repository stats unavailable
Security & Secrets
Keycloak MCP Server
keycloak-mcp-server•sshaaf

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

Repository stats unavailable
Security & Secrets

An MCP server for LLM-driven penetration testing that wraps Kali tools and adds scope enforcement, engagement tracking, and structured output.

Repository stats unavailable
Security & Secrets