mcp-auth-servers
๐ Reference MCP servers that demo how authentication works with the current Model Context Protocol spec.
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:
Supported identity providers
| Provider | Scenario | Server Type | Implementation | State |
|---|---|---|---|---|
| Entra ID | API Management gating MCP server. | !Remote MCP Server | `remote-mcp-apim-functions-python` | !State: Prototype |
| Entra ID | Confidential client, mapped to session token. | !Dual-purpose MCP Server | `entra-id-cca-session` | !State: Prototype |
| Entra ID | Public client, using WAM. | !Local MCP Server | `entra-id-local-wam` | !State: Prototype |
| GitHub | GitHub application w/OAuth, mapped to session token. | !Dual-purpose MCP Server | `github-app-session` | !State: Prototype |
| Entra ID | API Management gating an Azure Functions MCP server. | !Remote MCP Server | `remote-auth-mcp-apim-py` | !State: Prototype |
| Entra ID | API 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
๐ Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
๐ฆ Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
AI Agents & MCPs & AI Workflow Automation โข (~400 MCP servers for AI agents) โข AI Automation / AI Agent with MCPs โข AI Workflows & AI Agents โข MCPs for AI Ag...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP