loop-reader-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@loop-reader-mcpfind my recent meeting notes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
loop-reader-mcp
A read-only, remote Model Context Protocol (MCP) server that lets an AI assistant search and read Microsoft Loop content through the Microsoft Graph API — with per-user permission trimming, so each person only ever sees the Loop pages they already have access to.
Microsoft Loop has no official content API. This project reads Loop through the Graph file layer using the documented
?format=htmlconversion for.loop/.fluidfiles, and layers on an authorization model that keeps every user strictly inside their own permissions.
Read-only by construction. The Graph client permits only GET plus
POST /search/query. No create/update/delete tools exist.
Why this is interesting
Loop workspace pages live in SharePoint Embedded (SPE) containers, which do not accept delegated (per-user) tokens for content downloads — only an app-only identity can fetch the bytes. Naively using that app identity for everything would flatten permissions: any connected user could read any Loop page. This server avoids that with a two-identity, capability-based design:
Assistant ──/.well-known discovery──▶ server → "log in with Microsoft Entra"
Assistant ──OAuth (Entra sign-in)───▶ user authenticates (must be app-assigned)
Assistant ──Bearer <user token>─────▶ server validates it (jose + Entra JWKS)
│
├─ discovery tools ── On-Behalf-Of ─▶ Graph as the USER
│ (Microsoft security-trims results)
│ └─ each hit → signed capability handle
│
└─ loop_get_page(ref)
├─ verify handle: HMAC signature + principal + expiry
└─ fetch via APP identity (?format=html) → sanitized HTMLThe authorization decision is Microsoft's, not this code's. A user can only discover pages they may access (search runs as them), and can only read a page via a signed handle minted for their own principal. The app identity is used only to retrieve bytes the user already proved they can see.
Related MCP server: M365 MCP
Tools (all read-only)
Tool | Identity | Description |
| user (OBO) | Full-text search across Loop, trimmed to the caller |
| user (OBO) | The caller's most recently modified Loop pages |
| user (OBO) | Best-effort meeting-notes finder (name/path heuristic) |
| user (OBO) | Loop workspaces the caller can access, recency-sorted |
| user (OBO) |
|
| app (handle-gated) | A page as sanitized HTML, read by |
Security model
The app is its own OAuth resource server: it validates each Entra JWT (signature via JWKS, audience, issuer, expiry,
scp=access_as_user, rejects ID tokens) and publishes discovery docs pointing clients at Entra. No reverse- proxy auth needed.Signed, stateless capability handles:
loop_searchreturns an opaqueref(HMAC-signed, carrying item id + principal + expiry).loop_get_pagereads only byref— the model never handles raw identifiers, handles can't be forged or replayed across users/clients, and there's no server-side state to lose across restarts/instances.Per-user trimming via On-Behalf-Of; app identity reachable only through a verified handle.
Injection-resistant: user queries are sanitized and results are re- filtered server-side to
.loop/.fluid, so a crafted query can neither escape the file-type scope nor exceed the user's own access.Structured audit logging of every search/read (principal + item ids, never tokens or content). Optional App Insights telemetry redacts item ids.
See
SECURITY.mdfor the full model and residual risks.
Setup (overview)
Requires a Microsoft 365 tenant with Loop and rights to register an Entra app.
Register an Entra application with Microsoft Graph Application permissions (
Files.Read.All,Sites.Read.All,FileStorageContainer.Selected) and Delegated (Files.Read.All,Sites.Read.All) for OBO; expose anaccess_as_userscope; add your MCP client's OAuth redirect URI; require user assignment via a security group.Register the app as a guest on Loop's SPE container type (one-time, SharePoint Online Management Shell, Windows PowerShell):
Set-SPOApplicationPermission ` -OwningApplicationId "a187e399-0c36-4b98-8f04-1edc167a0996" ` -GuestApplicationId "<your-client-id>" ` -PermissionAppOnly "readcontent"(
a187e399-…is Microsoft Loop's container type ID, constant across tenants.)Host it on any platform running a persistent Node.js 20+ HTTP process, reachable over HTTPS. Set the env vars from
.env.example. Enable "always on" so it doesn't cold-start. If you don't use App Insights, install withnpm install --omit=optionalto keep the deploy small.Add it to your MCP client as a custom/remote connector (server URL + OAuth client id/secret). Each user connects individually so their own sign-in drives the trimming.
Configuration
See .env.example. Required: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET (or certificate), PUBLIC_URL. Recommended:
HANDLE_SIGNING_KEY. Optional: VERIFY_TTL_MINUTES (15), REQUIRE_SCOPE
(true), STRICT_REVOCATION (false), MAX_CONTENT_BYTES, PORT,
APPLICATIONINSIGHTS_CONNECTION_STRING.
Status & caveats
Built against Microsoft Graph and MCP as of 2026. The ?format=html
conversion and SPE guest registration are documented, but "Loop via the file
layer" is not an official Loop API — behavior may change. Community code, not a
certified product: review it and run npm audit before production. See
CHANGELOG.md for version history and SECURITY.md for the security model.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceA production-ready MCP server that provides secure, delegated access to Microsoft 365 services including Email, SharePoint, OneDrive, and Calendar. It enables AI models to search messages, browse files, manage calendar events, and parse document contents using OAuth 2.1 authentication.MIT
- Alicense-qualityAmaintenanceMCP server for Microsoft 365 via the Microsoft Graph API, providing read-only access to profile, calendar, email, Teams chats, OneDrive files, and meeting transcripts from any MCP client.182MIT
- AlicenseAqualityCmaintenanceMCP server that provides read access to Microsoft Loop workspaces and pages by reusing your Loop web session, enabling listing, reading, and searching across Loop content without app registration.8261MIT
- Alicense-qualityCmaintenanceRead-only MCP server for accessing GitBook content, including spaces, pages, and search, through AI assistants.524MIT
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DenizV/loop-reader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server