NH

napthaai/http-oauth-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

110 stars 18 forks 품질 56 트렌드 0MIT

napthaai/http-oauth-mcp-server는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

napthaai/http-oauth-mcp-server는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

서론

이 저장소는 MCP 명세에 따라 OAuth로 승인된 Streamable HTTP 및 SSE 전송을 지원하는 원격 MCP 서버를 생성하는 참조 구현을 제공합니다.

이 저장소의 MCP 서버는 SSE + HTTP 전송을 처리하는 애플리케이션과 논리적으로 분리되어 있으며, OAuth와도 분리되어 있습니다.

따라서 이 저장소를 쉽게 포크하여 자신의 MCP 서버와 OAuth 자격 증명을 연결해 작동하는 SSE/HTTP + OAuth MCP 서버를 만들 수 있습니다.

그런데 왜?

좋은 질문입니다! MCP 명세는 2025년 3월 25일에 OAuth 기반 인증 명세를 추가했습니다. 현재, 2025년 5월 1일 기준:

  • Typescript SDK는 스트리밍 가능한 HTTP를 가진 OAuth 승인 MCP 서버를 구현하는 많은 구성 요소를 포함하고 있으나, 그러한 서버 구축 방법에 대한 문서나 튜토리얼은 없습니다.
  • Python SDK에는 스트리밍 가능한 HTTP 전송의 구현체나 typescript SDK에 포함된 OAuth 빌딩 블록의 구현체가 포함되어 있지 않습니다

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

🌊 HTTP + SSE MCP Server w/ OAuth

Introduction

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

Note that the MCP server in this repo is logically separate from the application that handles the report SSE + HTTP transports, and from OAuth.

As a result, you can easily fork this repo, and plug in your own MCP server and OAuth credentials for a working SSE/HTTP + OAuth MCP server with your own functionality.

But, why?

Great question! The MCP specification added the authorization specification based on OAuth on March 25, 2025. At present, as of May 1, 2025:

  • The Typescript SDK contains many of the building blocks for accomplishing an OAuth-authorized MCP server with streamable HTTP, but there is no documentation or tutorial on how to build such a server
  • The Python SDK contains neither an implementation of the streamable HTTP transport, nor an implementation of the OAuth building blocks that are present in the typescript SDK
  • The Streamable HTTP transport is broadly unsupported by MCP host applications such as Cursor and Claude desktop, though it may be integrated directly into agents written in JavaScript using the JS/TS SDK’s StreamableHttpClientTransport class

At Naptha AI, we really wanted to build an OAuth-authorized MCP server on the streamable HTTP transport, and couldn’t find any reference implementations, so we decided to build one ourselves!

Dependencies

Bun, a fast all-in-one JavaScript runtime, is the recommended runtime and package manager for this repository. Limited compatibility testing has been done with npm + tsc.

Overview

This repository provides the following:

  1. An MCP server, which you can easily replace with your own
  2. An express.js application that manages both the SSE and Streamable HTTP transports and OAuth authorization.

This express application is what you plug your credentials and MCP server into.

Note that while this express app implements the required OAuth endpoints including /authorize and the Authorization Server Metadata endpoint (RFC8414), it does not implement an OAuth authorization server!

This example proxies OAuth to an upstream OAuth server which supports dynamic client registration (RFC7591). To use this example, you will need to bring your own authorization server. We recommend using Auth0; see the “Setting up OAuth” Section below.

Configuring your server

Notes on OAuth & Dynamic Client Registration

GitHub에서 전체 README 보기

설치

npx mcp-remote --transport http-first https://some-domain.server.com/mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →