- Explore MCP Servers
- entra-id-mcp-server-session-demo
Entra Id Mcp Server Session Demo
What is Entra Id Mcp Server Session Demo
The entra-id-mcp-server-session-demo is a demonstration project that showcases how to implement Entra ID authentication with MCP servers without passing access tokens directly. It utilizes a confidential client within the MCP server and employs session mapping to manage session assignments through a JWT-like token.
Use cases
Use cases for this demo include testing Entra ID authentication with MCP servers, developing secure applications that require session management without using cookies, and understanding the integration of Entra ID in server environments.
How to use
To use the entra-id-mcp-server-session-demo, first install the necessary dependencies by running ‘npm install’. Then, build the project with ‘npm run build’ and start the server using ‘npm run start’. For testing, utilize the MCP Inspector or any tool that supports HTTP+SSE transport for MCP servers and authentication.
Key features
Key features include minimal server implementation, Entra ID authentication integration, the use of HTTP+SSE transport, session mapping for session assignments, and a focus on security practices for token handling.
Where to use
undefined
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Entra Id Mcp Server Session Demo
The entra-id-mcp-server-session-demo is a demonstration project that showcases how to implement Entra ID authentication with MCP servers without passing access tokens directly. It utilizes a confidential client within the MCP server and employs session mapping to manage session assignments through a JWT-like token.
Use cases
Use cases for this demo include testing Entra ID authentication with MCP servers, developing secure applications that require session management without using cookies, and understanding the integration of Entra ID in server environments.
How to use
To use the entra-id-mcp-server-session-demo, first install the necessary dependencies by running ‘npm install’. Then, build the project with ‘npm run build’ and start the server using ‘npm run start’. For testing, utilize the MCP Inspector or any tool that supports HTTP+SSE transport for MCP servers and authentication.
Key features
Key features include minimal server implementation, Entra ID authentication integration, the use of HTTP+SSE transport, session mapping for session assignments, and a focus on security practices for token handling.
Where to use
undefined
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
🔒 Minimal Entra ID-authenticated MCP Server
Minimal server showing how to implement Entra ID authentication with MCP and HTTP+SSE transport. Unlike the previous server implementation, this relies on a confidential client living inside the MCP server, and then using “session mapping” to make sure that the client gets a session assignment through, what looks like, a JWT token (since we can’t use cookies).
[!IMPORTANT]
This repository has been archived. Refer to the reference collection for latest samples and best practices.
[!WARNING]
This is not intended for production use. If you are to adopt any of the practices in this implementation, ensure that you are implementing proper caching and secure token/credential handling practices.
Run server
npm install npm run build npm run start
Testing
You will need to use MCP Inspector or a tool that supports HTTP+SSE transport for MCP servers and authentication.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










