Back to Home
oalles icon

springai-mcp-gateway

Verified Safe

by oalles

Overview

An OAuth 2.1 secured Spring AI MCP gateway enabling ChatGPT Connectors to interact with local development tools via a streamable HTTP endpoint.

Installation

Run Command
mvn -q -pl mcp-gateway spring-boot:run

Environment Variables

  • SERVER_PORT
  • SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI
  • SPRING_AI_*

Security Notes

The project is explicitly labeled as a 'learning and integration reference' and 'not meant to be a production-grade gateway'. Security relaxations are made for simplicity, including disabled CSRF protection and broadly configured CORS (allowing all origins, methods, and headers with credentials). It uses a hardcoded in-memory user ('omar/secret') and a client ID ('springai-gateway-client') for the Authorization Server demo, with explicit warnings against using these in production. While transparent about these known issues, they represent significant vulnerabilities if deployed without modification. The use of Cloudflare Tunnel for exposure offers some network security benefits.

Similar Servers

Stats

Interest Score35
Security Score6
Cost ClassLow
Stars4
Forks0
Last Update2025-11-27

Tags

Spring AIMCP GatewayOAuth 2.1ChatGPT ConnectorCloudflare Tunnel