Provides OAuth 2.1 authentication integration with GitHub, allowing secure access to GitHub services through the MCP server's authentication flow
MCP Redirect Server
Servidor MCP (Model Context Protocol) construído com NestJS e autenticação OAuth integrada.
🚀 Características
🔐 Autenticação OAuth 2.1 com GitHub
🛠️ MCP Tools - Exponha métodos como ferramentas MCP
📡 SSE Transport - Server-Sent Events para comunicação em tempo real
🔒 Guard-based Security - Proteção de rotas com JWT
💉 Dependency Injection - Sistema DI completo do NestJS
📦 Instalação
⚙️ Configuração
1. Criar GitHub OAuth App
Clique em "New OAuth App"
Preencha:
Application name:
mcp-redirect-serverHomepage URL:
http://localhost:3000Authorization callback URL:
http://localhost:3000/auth/callback
Copie o Client ID e Client Secret
2. Configurar variáveis de ambiente
Crie um arquivo .env baseado no .env.example:
Edite o .env e adicione suas credenciais:
🏃 Executar o projeto
O servidor estará disponível em: http://localhost:3000
🔌 Endpoints OAuth
GET /.well-known/oauth-authorization-server- Metadata do servidor OAuth (RFC 8414)GET /.well-known/oauth-protected-resource- Metadata MCP (RFC 9728)POST /auth/register- Registro dinâmico de cliente (RFC 7591)GET /auth/authorize- Endpoint de autorizaçãoGET /auth/callback- Callback OAuthPOST /auth/token- Endpoint de tokenPOST /auth/revoke- Revogação de token
🧪 Testar com MCP Inspector
MCP Inspector
- npx @modelcontextprotocol/nspector
Configure o Inspector:
Transport Type: SSE
URL:
http://localhost:3000/sseConnection Type: Via Proxy
Clique em Authentication para configurar OAuth
Clique em Connect
🛠️ Tools Disponíveis
tool
📚 Documentação
📝 Licença
Description
Nest framework TypeScript starter repository.
Project setup
Compile and run the project
Deployment
When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the deployment documentation for more information.
If you are looking for a cloud-based platform to deploy your NestJS application, check out Mau, our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.
Resources
Check out a few resources that may come in handy when working with NestJS:
Visit the NestJS Documentation to learn more about the framework.
For questions and support, please visit our Discord channel.
To dive deeper and get more hands-on experience, check out our official video courses.
Deploy your application to AWS with the help of NestJS Mau in just a few clicks.
Visualize your application graph and interact with the NestJS application in real-time using NestJS Devtools.
Need help with your project (part-time to full-time)? Check out our official enterprise support.
To stay in the loop and get updates, follow us on X and LinkedIn.
Looking for a job, or have a job to offer? Check out our official Jobs board.
Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
Author - Kamil Myśliwiec
Website - https://nestjs.com
Twitter - @nestframework
License
Nest is MIT licensed.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server built with NestJS that provides OAuth 2.1 authentication with GitHub and exposes MCP tools through Server-Sent Events transport. Enables secure, real-time communication with JWT-based protection and dependency injection.