Back to Home
gmantri icon

protected-mcp-server-demo

Verified Safe

by gmantri

Overview

Exposing secure, role-based tools to LLMs via the Model Context Protocol (MCP) using ASP.NET Core and Azure Entra ID.

Installation

Run Command
cd ProtectedMcpServerDemo && dotnet run

Environment Variables

  • AzureAd__Instance
  • AzureAd__Domain
  • AzureAd__TenantId
  • AzureAd__ClientId
  • ApiEndpoint
  • ASPNETCORE_ENVIRONMENT

Security Notes

The server explicitly prioritizes security by integrating Azure Entra ID (OAuth2/OpenID Connect) for authentication and granular Role-Based Access Control (RBAC) for tool authorization. JWT Bearer token authentication is used. Configuration relies on appsettings.json or environment variables for sensitive Azure AD details, preventing hardcoding. The deployment script (`deploy.sh`) uses standard Azure CLI commands for secure configuration and deployment. No `eval` or obvious malicious patterns were found. The primary security model is robust, relying on established Microsoft security practices.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens1
Stars0
Forks0
Last Update2025-12-06

Tags

MCPASP.NET CoreAzure ADRBACLLM ToolsSecurity