Back to Home
datalayer icon

mcp-compose

Verified Safe

by datalayer

Overview

This server provides a robust example of OAuth2 authentication for MCP (Model Context Protocol) servers, using GitHub as the identity provider. It demonstrates secure multi-server management, protocol translation, and integration with AI agents for tool invocation.

Installation

Run Command
make start

Environment Variables

  • ANTHROPIC_API_KEY
  • JWT_SIGN_KEY

Security Notes

The project demonstrates good security practices such as PKCE, state parameter for CSRF protection, resource indicators for token binding, and token validation for every request. Bearer tokens are correctly used in headers. However, for development, a JWT signing key is hardcoded ('dev_sign_key_change_in_production') and CORS allows all origins ('*'), which should be updated for production environments. SSL verification is also optionally bypassed for localhost development. These are explicitly noted in the code and documentation as development-specific or TODOs for production.

Similar Servers

Stats

Interest Score36
Security Score8
Cost ClassMedium
Avg Tokens200
Stars7
Forks2
Last Update2026-01-16

Tags

OAuth2GitHubMCPAI AgentServer OrchestrationAuthenticationFastAPI