SA

spring-ai-community/mcp-security

Developer tools

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

122 stars 34 forks 품질 64 트렌드 24Apache-2.0

spring-ai-community/mcp-security는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

spring-ai-community/mcp-security는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

Spring AI의 모델 컨텍스트 프로토콜에 대한 보안 및 권한 부여 지원.

⚠️ mcp-security 버전 0.1.x는 Spring AI의 2.0.x 브랜치만 작동합니다. Spring AI 1.1.x의 경우 버전 0.0.6를 사용하세요.

목차

  • 개요
  • MCP 서버 보안
  • MCP 클라이언트 보안
  • 인증 서버
  • 샘플
  • 통합 (커서, 클로드 데스크톱 등)
  • 면허

개요

이 저장소는 다음을 제공합니다 권한 지원 Spring AI와 모델 컨텍스트 프로토콜(MCP)의 통합. MCP 클라이언트, MCP 서버, Spring 모두를 커버합니다 인증 서버.

이 프로젝트는 개발자들이 다음을 가능하게 합니다:

  • OAuth 2.0 인증이 적용된 보안 MCP 서버
  • OAuth 2.0 인증 플로우로 MCP 클라이언트를 구성
  • MCP 워크플로우를 위해 특별히 설계된 인증 서버 구축
  • MCP 도구 및 자원에 대한 세밀한 접근 제어 구현

MCP 서버 보안

OAuth 2.0 리소스 서버 기능을 제공합니다 Spring AI의 MCP 서버용입니다. 또한 API 키 기반 서버에 대한 기본 지원도 제공합니다. OAuth2와 API 키 인증은 Spring WebMVC 기반 서버와만 호환됩니다. Origin 검증은 Spring WebFlux도 지원합니다.

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

README

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

MCP Security

Security and Authorization support for Model Context Protocol in Spring AI.

⚠️ Versions 0.1.x of mcp-security only work Spring AI’s 2.0.x branch. For Spring AI 1.1.x, use version 0.0.6.

Table of Contents

Overview

This repository provides Authorization support for Spring AI integrations with the Model Context Protocol (MCP). It covers both MCP Clients, MCP Servers, and Spring Authorization Server.

The project enables developers to:

  • Secure MCP servers with OAuth 2.0 authentication
  • Configure MCP clients with OAuth 2.0 authorization flows
  • Set up authorization servers specifically designed for MCP workflows
  • Implement fine-grained access control for MCP tools and resources

MCP Server Security

Provides OAuth 2.0 resource server capabilities for Spring AI’s MCP servers. It also provides basic support for API-key based servers. OAuth2 and API-key authentication are compatible with Spring WebMVC-based servers only. Origin validation additionally supports Spring WebFlux.

Quick start with mcp-server-security-spring-boot (recommended)

The easiest way to add OAuth2 security to your MCP server is with the Boot auto-configuration module. It provides a default SecurityFilterChain that secures all endpoints, with no additional configuration required beyond setting the issuer URI.

Maven


    
        org.springaicommunity
        mcp-server-security-spring-boot
        0.1.14
    

Gradle

implementation("org.springaicommunity:mcp-server-security-spring-boot:0.1.14")

Then configure your application.properties:

spring.ai.mcp.server.name=my-cool-mcp-server
spring.ai.mcp.server.protocol=STREAMABLE

# The issuer URI of the authorization server
spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:9000

That’s it. When spring.security.oauth2.resourceserver.jwt.issuer-uri is set, the auto-configuration creates a SecurityFilterChain that secures all endpoints using the McpServerOAuth2Configurer.

For a complete working example, see the

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →