T

entra-id-mcp-server-session-demo

...
Created 3/14/2025bydend

Language:

TypeScript

Stars:

9

Forks:

2

🔒 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).

[!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.

Last updated: 4/4/2025

Publisher info

dend's avatar

Den Delimarsky

Principal Product Engineer, Tinkerer, Nerd, Trail Explorer.

Orion Arm, Milky Way
455
followers
61
following
22
repos

More MCP servers built with TypeScript

mcp-server-ssh-rails-runner

MCP server that facilitates an SSH connection to a deployed Rails app so you can run Rails REPL commands

By tadasant7
mcp-jina-reader

Jina Reader MCP Server

By wong238
postman-mcp-server

An MCP server that provides access to Postman.

By delano64