Oauth2 Authorization Server
@musabbozkurt
关于 Oauth2 Authorization Server
OAuth2 Authorization Server with MariaDB, Docker OpenTelemetry LGTM, and Redis Integrations with Spring Boot 4, Java 25 and Docker. Integration Tests with Testcontainers and unit Tests with Junit 5, and Mockito
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"oauth2-authorization-server": {
"command": "docker",
"args": [
"compose",
"--profile",
"start_application",
"up",
"-d",
"--build"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Oauth2 Authorization Server?
An OAuth2 Authorization Server built with Spring Boot 4 and Java 25. It provides full OAuth2 authorization flows, supports multiple deployment options (Docker, native image with GraalVM, CRaC), and integrates with databases, Redis, LDAP, and local AI models for development and testing. It targets developers building or testing OAuth2-protected applications.
How to use Oauth2 Authorization Server?
Install Java 25, Maven, and Docker. Set environment variables for AI model API keys (optional). Run tests with mvn clean verify. Start the application with docker compose --profile start_application up -d --build or using ./mvnw spring-boot:run after starting infrastructure services. Access Swagger UI at http://localhost:9000/swagger-ui/index.html with client ID client and secret secret, and login with default users (Developer/password, Admin/password, User/password).
Key features of Oauth2 Authorization Server
- OAuth2 authorization with Spring Boot 4 and Java 25
- Multiple authentication providers (LDAP, database, default users)
- Integration with Redis, MariaDB, and Ollama AI models
- Docker, GraalVM native images, and CRaC support
- Actuator endpoints and Grafana monitoring
- AI model testing via Docker Desktop Model Runner
Use cases of Oauth2 Authorization Server
- Authorization server for microservices and web applications
- Local development and testing of OAuth2 flows with Postman
- Learning Spring Security OAuth2 and Spring Boot 4 patterns
- Running AI models alongside authorization logic for AI‑powered apps
FAQ from Oauth2 Authorization Server
What are the prerequisites?
Java 25, Maven, and Docker must be installed. Postman is recommended for testing.
How to run the application?
Use Docker Compose: docker compose --profile start_application up -d --build for a full stack, or run ./mvnw spring-boot:run after starting infrastructure services (Redis, MariaDB, LDAP, Ollama) with docker compose up -d.
How to test the API?
Import the Postman collection and environment files from the docs/postman folder. Alternatively, use Swagger UI at http://localhost:9000/swagger-ui/index.html with client credentials client:secret.
What infrastructure services are needed?
Redis (port 6379), MariaDB (port 3306), and LDAP are core. For AI features, Ollama and Docker Model Runner are required.
Does this server support AI models?
Yes. It can run AI models locally via Ollama or Docker Desktop Model Runner. The tests and optional features use models like mxbai-embed-large, mistral, and deepseek-r1:7b.
数据库 分类下的更多 MCP 服务器
Elasticsearch/OpenSearch MCP Server
cr7258A Model Context Protocol (MCP) server implementation that provides Elasticsearch and OpenSearch interaction.
mcp-server-duckdb
ktanaka101A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities
mcp_mysql_server
wenb1n-devModel Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
Multi Database MCP Server
FreePeakA powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
MongoDB MCP Server
mongodb-jsA Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
评论