MCP Server for Multiple Outlook Accounts
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., "@MCP Server for Multiple Outlook Accountslist all connected mailboxes"
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.
MCP Server for Multiple Outlook Accounts
A local, single-connector Model Context Protocol server that lets an AI assistant operate several Outlook / Microsoft 365 mailboxes at once โ searching, reading, drafting, sending, and organising mail โ through one safety-annotated tool surface, with OAuth tokens that never leave your machine.
This is the Outlook / Microsoft Graph provider variant of a provider-neutral specification.
๐
doc/business-specification.mdโ provider-neutral business + functional spec (the contract).๐
doc/provider-mapping.mdโ how neutral requirements bind to Microsoft Graph.๐๏ธ
doc/architecture.mdโ how this variant is designed and built.โ
doc/traceability-matrix.mdโ every requirement โ module โ test.
Project status: phase 1 (auth core + list_accounts)
Built with TypeScript 6.0.3; build, typecheck, tests (29), and format all green. What exists today:
โ Architecture design + requirements traceability matrix (
doc/).โ Neutral domain types + subsystem contracts; tested config loader (
src/domain/,src/config.ts).โ Auth core: Entra credential-source discovery, MSAL public-client (consent + silent refresh), secure token store (
0600/0700, atomic + cross-process-locked), account-selection registry.โ Account-management CLI:
outlook-mcp-auth connect | list | remove.โ C1
list_accountsMCP tool (with behavioural annotations), served over stdio.
Not yet implemented: capabilities C2โC8 (search, read, draft, send, labels, organise) and the
Microsoft Graph client (timeout/retry/error-mapping). These are designed in doc/architecture.md ยง13
(build phases 2โ4) and tracked as Planned in the traceability matrix.
Tests mock Microsoft Graph and MSAL. Live
ยง13acceptance โ real browser consent and Graph calls โ requires an Entra app registration + Outlook mailboxes and is run locally by the operator.
Related MCP server: m365-mcp-server
Planned capabilities (spec ยง5)
Tool | Purpose | Destructive? |
| List connected mailboxes | No |
| Search a mailbox (paged) | No |
| Read a full conversation | No |
| Compose a draft (not sent) | No |
| Send immediately | Yes |
| List categories + folders | No |
| Create a category/folder | No |
| Tag / move / read-state | Yes |
Plus an out-of-band account-management CLI (outlook-mcp-auth connect | list | remove).
Development
Requires Node.js โฅ 18 (developed on Node 22).
npm install
npm run typecheck # tsc --noEmit
npm run build # compile to dist/
npm test # vitest (Graph/MSAL mocked)
npm run format:check # prettierConfiguration
All operational knobs are environment variables (see .env.example):
Env var | Meaning | Default |
| tokens + app-registration configs |
|
| pin one app registration (disables discovery) | unset |
| allow-list for | unset (disabled) |
| token-store lock wait |
|
| per-Graph-call timeout |
|
Connecting a mailbox
Register a public-client app in Entra ID with the redirect URI
http://localhostand the delegated scopesMail.ReadWrite,Mail.Send,User.Read,offline_access.Drop a
credentials*.jsoninto the data dir (or pointOUTLOOK_OAUTH_CREDENTIALSat it):{ "clientId": "<application-client-id>", "tenant": "common" }Multiple
credentials*.jsonfiles are auto-discovered, so accounts under different app registrations each refresh with the client that authorised them.Connect, list, and remove mailboxes:
outlook-mcp-auth connect # opens the browser for consent outlook-mcp-auth connect --source acme # pick a specific app registration outlook-mcp-auth list outlook-mcp-auth remove user@example.com
Security posture
OAuth tokens are stored only on the local machine (file mode 600 in a 700 data dir). Reading
local files by path for attachments is disabled by default and only allowed from an explicit
allow-list. The server never logs tokens, credentials, or message content. See
doc/architecture.md ยง9.
License
MIT โ see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
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/uaixo/MCP-Server-For-Multiple-Outlook-Accounts'
If you have feedback or need assistance with the MCP directory API, please join our Discord server