trackmcp
Back to directory
Azure-Samples

mcp-auth-servers

View on GitHub

๐Ÿ”’ Reference MCP servers that demo how authentication works with the current Model Context Protocol spec.

36 stars TypeScriptAI & Machine Learning Updated Oct 11, 2025

Documentation

๐Ÿ”’ MCP Server Authentication Reference Collection

Reference servers that demo how authentication works with the current Model Context Protocol spec.

>[!WARNING]

>Code presented here is for demo purposes only. Your specific scenarios (including rules inside your enterprise, specific security controls, or other protection mechanisms) may differ from the ones that are outlined in this repository. Always conduct a security audit and threat modeling for any production and customer-facing assets that require authentication and authorization.

Scenarios

Servers above are designed for various runtime scenarios. They are tagged as follows:

Remote MCP Server
Local MCP Server
Dual-purpose MCP Server

Supported identity providers

ProviderScenarioServer TypeImplementationState
Entra IDAPI Management gating MCP server.!Remote MCP Server`remote-mcp-apim-functions-python`!State: Prototype
Entra IDConfidential client, mapped to session token.!Dual-purpose MCP Server`entra-id-cca-session`!State: Prototype
Entra IDPublic client, using WAM.!Local MCP Server`entra-id-local-wam`!State: Prototype
GitHubGitHub application w/OAuth, mapped to session token.!Dual-purpose MCP Server`github-app-session`!State: Prototype
Entra IDAPI Management gating an Azure Functions MCP server.!Remote MCP Server`remote-auth-mcp-apim-py`!State: Prototype
Entra IDAPI Management gating an App Service MCP server with Protected Resource Metadata (PRM)!Remote MCP Server`remote-mcp-apim-oauth-prm`!State: Prototype

Frequently asked questions

What is mcp-auth-servers?

mcp-auth-servers is ๐Ÿ”’ Reference MCP servers that demo how authentication works with the current Model Context Protocol spec.

How do I install mcp-auth-servers?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is mcp-auth-servers open source?

Yes โ€” it is hosted on GitHub at https://github.com/Azure-Samples/mcp-auth-servers and has 36 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP