@softeria/ms-365-mcp-server) exposes Microsoft Graph—mail, calendar, Teams, OneDrive—as MCP tools. Portkey MCP Gateway adds centralized authentication, per-user access control, and observability.
This integration example is an opensource MS365 server from softeria and not the official microsoft MS365 MCP server.
When should you use this server
- Summarize, search, and draft Outlook mail or calendar events from agents
- Read and post Teams messages with human-in-the-loop review
- Work with OneDrive/SharePoint content during agent workflows
Key features
- Per-user Microsoft sign-in (actions attributed to individual users)
- Works with the hosted/self-hosted MS365 MCP server in
--org-mode - Centralized governance via Portkey access control and observability
Authentication
- Method: OAuth 2.1.
- Recommended: let the MS365 MCP server handle Microsoft sign-in itself and leave Portkey Advanced Configuration empty. The server manages the Microsoft sign-in flow, and Portkey stores and refreshes the resulting tokens per user.
Endpoint
Your MS365 MCP server’s MCP endpoint, e.g.:Register the URL with the
/mcp suffix so it matches the server’s advertised protected-resource metadata. Registering the bare host produces: Protected resource <url>/mcp does not match expected <url>.Connect via Portkey MCP Gateway
The MS365 MCP server acts as its own OAuth authorization server and handles the Microsoft sign-in flow for each user.Step 1: Run / obtain the MS365 MCP server
Run with org-mode and dynamic registration enabled, fronted by HTTPS:MS365_MCP_CLIENT_ID, MS365_MCP_TENANT_ID, MS365_MCP_CLIENT_SECRET) per the server’s docs. Ensure ingress forwards the Host header so its discovery advertises the public URL.
Step 2: Register the integration in Portkey
- MCP Registry → Add MCP Integration.
- Set:
- Leave Advanced Configuration empty.
- Configure workspace access and save.
Step 3: Verify discovery
resource field must be the public …/mcp URL (not an internal cluster URL). If it shows an internal URL, fix ingress to forward the Host header.
Step 4: Connect from an agent
Claude Desktop / Cursor
Troubleshooting
For broader gateway issues, see MCP Gateway: Common issues and resolutions.
Tools provided
Tools depend on the MS365 MCP server build and the Graph scopes you consent to (mail, calendar, Teams, OneDrive/SharePoint, contacts). Use the client’s tool inspector or
tools/list on the gateway URL as the source of truth.For self-hosted gateways, replace
mcp.portkey.ai with your gateway host.
