OM

oidebrett/mcpauth

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

32 stars 4 forks 品質 67 トレンド 15NOASSERTION

MCPの特長 外部認証と認証のためのゲートウェイ

概要

MCPAuth MCPAuth:セキュアエンタープライズMCPのゲートウェイ認証 ソリューション 紙で説明する概念(PoC)の証明および承認コンポーネントです。 エンタープライズAIインテグレーションビューペーパー(2025年)のMCPゲートウェイの簡素化とセキュア化 このリポジトリは、より広範な取り組みの一部であり、 . ウェブサイトSelfHostedMCP.comを参照してください。 2025-03-26 MCP 仕様に準拠して、バックエンド MCP サーバーからアイデンティティ、認可、ポリシー管理をオフロードする拡張可能な OAuth2.1 ベースの認証ゲートウェイを提供します。 McpAuth は、MCP サーバーから OAuth 2. を使用するように設計されています.

概要(AI 翻訳)

MCPAuthについて MCPAuth:セキュアなエンタープライズMCPのゲートウェイ認証 ソリューション

#MCPAuth:セキュアなエンタープライズMCPのゲートウェイ認証 ソリューション

McpAuth は、MCP Gateway の認証および認証コンポーネントです。

  • エンタープライズAIインテグレーションのMCPゲートウェイの簡素化とセキュア化* **Ivo Brett、CISSP、B.Eng、MSc ** 紙を見る (2025)

このリポジトリは、**Model Context Protocol (MCP)**で、**secure、スケーラブル、および迎合的な企業統合を有効にするための広範な取り組みの一部です。 ウェブサイトSelfHostedMCP.comを参照してください。 2025-03-26 MCP 仕様に準拠して、バックエンド MCP サーバーからアイデンティティ、認可、ポリシー管理をオフロードする拡張可能な OAuth2.1 ベースの認証ゲートウェイを提供します。

お問い合わせ

目的

McpAuth は次のように設計しています。

  • MCPサーバーからの完全なセキュリティロジック -** OAuth 2.1 および OIDC を使用してアイデンティティ管理を集中化**
  • サポートダイナミッククライアント登録
  • 強化する細かいトークンスコープとポリシー制御
  • 企業レベルのゼロトラストアーキテクチャで**対応するモジュールとして機能する

お問い合わせ

背景

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCPAuth: Gateway Authentication for Secure Enterprise MCP Integrations

McpAuth is the authentication and authorization component of the MCP Gateway Proof of Concept (PoC) described in the paper:

Simplified and Secure MCP Gateways for Enterprise AI Integration
Ivo Brett, CISSP, B.Eng, MSc
View Paper (2025)

This repository is part of a broader initiative to enable secure, scalable, and compliant enterprise integration with the Model Context Protocol (MCP). See the website SelfHostedMCP.com. It provides an extensible OAuth2.1-based authentication gateway that offloads identity, authorization, and policy management from backend MCP servers—ensuring conformance with the 2025-03-26 MCP Specification.


Purpose

McpAuth is designed to:

  • Decouple security logic from MCP servers
  • Centralize identity management using OAuth 2.1 & OIDC
  • Support dynamic client registration
  • Enforce fine-grained token scopes and policy controls
  • Act as a composable module in enterprise-grade Zero Trust architectures

Background

This implementation is part of a larger PoC that validates:

  • A reference MCP Gateway architecture for secure deployments
  • Threat model mapping aligned with frameworks such as MAESTRO and Narajala & Habler
  • Real-world compatibility with tools like Cloudflare Tunnels, WireGuard, Traefik, and CrowdSec

The full proof of concept includes:

  • Two isolated MCP servers (local and cloud-based)
  • Secure tunneling via WireGuard and Pangolin
  • Centralized intrusion detection and observability
  • Seamless integration with Anthropic’s MCP Inspector

Features

  • OAuth2 authentication with PKCE via Traefik forwardAuth
  • Seamless integration with MCP Gateway SSE endpoints
  • Email whitelisting for controlled access
  • Docker-ready, easy to deploy
  • Includes a Python-based test server

Quick Start (assuming a completely standalone working environment)

Set Up Google OAuth

Go to the Google Cloud Console Navigate to APIs & Services > Credentials Click Create Credentials → OAuth client ID Choose Web Application Add an Authorized redirect URI — you’ll get this later when you set up Traefik, but it will look like: https://oauth.yourdomain.com/callback

GitHub で README 全文を見る

インストール

docker run -p 127.0.0.1:9080:8080 \
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "protected-server": { "url": "https://your-mcp-server.com" } } }