Claude Hotmail Connector
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., "@Claude Hotmail Connectorlist my unread emails from today"
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.
Claude Hotmail Connector
A locally hosted Model Context Protocol (MCP) server that lets
Claude read email and read/write calendar events in a personal Microsoft account
(@hotmail.com / @outlook.com / @live.com) via the Microsoft Graph API.
Claude's official Microsoft 365 connector only supports work/school (Microsoft Entra) accounts and rejects personal Microsoft accounts. This project fills that gap for a single user, running entirely on your own machine.
Deployment model — Mode A: local stdio
Per the local-hosting investigation, this connector is built as a local stdio MCP server: Claude Desktop or VS Code / Claude Code launches it as a subprocess and talks to it over stdin/stdout. There is no public URL, no tunnel, and no hosting cost — and the entire downstream OAuth machinery (PRM/DCR/PKCE for the Claude ↔ server hop) drops away. Only the upstream Microsoft sign-in is needed, done via a native public-client OAuth 2.0 authorization-code + PKCE flow with a loopback redirect.
Claude Desktop / VS Code ──stdio──▶ this server ──HTTPS──▶ Microsoft Graph (personal account)
(MCP client) (local subprocess) graph.microsoft.com/v1.0Related MCP server: Outlook MCP Server
Tools
Tool | Purpose | Graph permission |
| Confirm the connected account |
|
| Search/list mail (find booking confirmations) |
|
| Read one email as text |
|
| Read the calendar over a date range |
|
| Add a calendar event (timezone-correct, idempotent) |
|
| Edit a calendar event |
|
Mail is read-only (no Mail.Send). There is no hard-delete tool. cancel_event (event
deletion) is deliberately deferred as a gated/destructive action pending explicit approval.
Install (recommended)
The easy path — no Node, no Azure, no config files. On Windows, download the latest
HotmailConnectorSetup.exe (or the portable hotmail-connector.exe) from
Releases and run it. The installer
auto-configures Claude Desktop and runs the one-time Microsoft sign-in for you — the build embeds a
shared public-client id, so there's nothing to register or configure.
Windows shows an "unknown publisher" warning (the build is unsigned, by design) — click More info → Run anyway.
After it finishes, fully quit Claude Desktop from the system tray (closing the window only minimises it) and reopen it.
See docs/installer.md for the details, the SmartScreen note, and how the
packages are built. Want to build or run it yourself instead? Use the developer setup below.
Manual / developer setup
Prerequisites
Node.js 20+ (
node --version).A personal Microsoft account (
@hotmail.com/@outlook.com/@live.com).Claude Desktop and/or VS Code (with MCP support) on the same machine.
A one-time Microsoft Entra app registration (free — see below).
1. Register a Microsoft Entra application (one-time, optional)
You can skip this — the build ships with a bundled shared client id. Only do it to bring your own Entra registration. (Maintainers:
scripts/register-app.ps1automates it; seedocs/installer.md.)
The connector signs in as a public/native client — no client secret is ever used or stored.
Go to the Entra admin center → App registrations → New registration.
Name: e.g.
Claude Hotmail Connector.Supported account types: choose “Accounts in any organizational directory (Any Microsoft Entra ID tenant – Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox).” This is what allows
hotmail.com/outlook.comsign-in.Redirect URI: select platform “Public client/native (mobile & desktop)” and enter
http://localhost. (Microsoft allows any loopback port for native clients, so a specific port is not required.)Click Register, then copy the Application (client) ID.
Under Authentication, confirm the platform is Mobile and desktop applications with
http://localhost, and that “Allow public client flows” is Yes. Do not create a client secret.Under API permissions → Add a permission → Microsoft Graph → Delegated permissions, add:
openid,profile,email,offline_access,User.Read,Mail.Read,Calendars.ReadWrite. (Admin consent is not required for a personal account — you consent at first sign-in.)
2. Install & build
git clone https://github.com/TGoodhew/Claude-Hotmail-Connector.git
cd Claude-Hotmail-Connector
npm install
npm run build # produces dist/index.js3. Configure (optional)
The build ships with a bundled shared client id, so this is optional. To use your own Entra
registration (step 1), set it via a local .env:
cp .env.example .env
# edit .env and set MICROSOFT_CLIENT_ID=<the Application (client) ID from step 1>Configurable environment variables (see .env.example):
Variable | Default | Notes |
| (required) | Entra app registration client id. |
|
|
|
|
| IANA zone for calendar reads/writes. |
|
|
|
| least-privilege set | Space/comma-separated override. |
| per-OS profile dir | Where the encrypted token cache lives. |
4. Sign in once
node dist/index.js loginThis opens your system browser to Microsoft. Sign in with your personal account and consent to
the requested permissions. The refresh token is stored encrypted in your user profile (see
Security); subsequent runs refresh silently. node dist/index.js logout clears it.
Verify:
node dist/index.js whoami # should print your name <tony_goodhew@hotmail.com>5. Wire it into a client
The quickest way is to let the connector configure Claude Desktop for you — the same engine the installer uses:
node dist/index.js setup # detects Claude Desktop (incl. the Microsoft Store build) and wires it upOr configure a client manually — the server is launched as a stdio subprocess. Pass
MICROSOFT_CLIENT_ID via the client's env only if you're bringing your own registration (otherwise
the bundled default is used).
VS Code / Claude Code
Use Command Palette → “MCP: Add Server…” → Command (stdio), pointing node at the built
dist/index.js. Or commit-adjacent, copy .vscode/mcp.json.example to
.vscode/mcp.json and edit the path/client id:
{
"servers": {
"hotmail-connector": {
"type": "stdio",
"command": "node",
"args": ["C:\\Users\\Tony\\Source\\Repos\\Claude-Hotmail-Connector\\dist\\index.js"],
"env": { "MICROSOFT_CLIENT_ID": "<your-entra-app-client-id>" },
},
},
}Claude Desktop
Edit claude_desktop_config.json (see
examples/claude_desktop_config.example.json):
{
"mcpServers": {
"hotmail-connector": {
"command": "node",
"args": ["C:\\Users\\Tony\\Source\\Repos\\Claude-Hotmail-Connector\\dist\\index.js"],
"env": { "MICROSOFT_CLIENT_ID": "<your-entra-app-client-id>" },
},
},
}Restart the client. The connector's tools should appear. If you have not run login yet, do so once
in a terminal first (the server does not pop a browser on its own).
Usage example
“Find my Monsoon Aquatics and Macadamias Australia booking confirmation emails, then add each to my calendar with 15-minute travel-time blocks before and after.”
Claude will use list_messages / get_message to read the confirmations, confirm the details with
you, then call create_event for each booking (and the travel blocks) at the correct
Australia/Brisbane local times — with no duplicates if it retries.
Security
Least privilege:
Mail.Read(read-only) +Calendars.ReadWrite. NoMail.Send, no hard-delete,cancel_eventdeferred.No client secret: public/native client using PKCE.
Token storage: the refresh token is encrypted with AES-256-GCM in your user profile (
%LOCALAPPDATA%\claude-hotmail-connectoron Windows,~/.claude-hotmail-connectorotherwise), with the key in a sibling owner-only file. Never committed, never logged, never returned to the client.Logging: structured logs go to stderr only (stdout is reserved for MCP JSON-RPC) and are scrubbed of tokens,
Authorizationheaders, OAuth codes, and secrets.Timezone-correct writes: events are sent as local wall-clock + IANA time zone (never a UTC
Zwith a named zone), so they land at the intended local time.
Troubleshooting
AADSTS50020/ “account does not exist in tenant” / personal-account rejected: the app registration is not set to multitenant + personal accounts, or you used a tenant other thancommon. Recreate/adjust per step 1.3 and keepMICROSOFT_TENANT=common.AADSTS7000218/ “client_assertion or client_secret required”: the app is registered as a confidential/web client. Register it as a public client with “Allow public client flows” = Yes (step 1.6).redirect_urimismatch: addhttp://localhostunder the Mobile & desktop platform.Event lands an hour off: always pass local wall-clock
dateTime(e.g.2026-07-20T10:00:00) with an IANAtimeZone; never aZ-suffixed value. The connector rejectsZ/offset values for event times.“Not signed in” from a tool: run
node dist/index.js loginonce; if it persists,logoutthenloginagain to reset the token cache.npm installtimes out / hangs (dead IPv6 route): force IPv4 —NODE_OPTIONS="--dns-result-order=ipv4first --no-network-family-autoselection" npm install.
Development
npm run dev # rebuild on change (tsup --watch)
npm run typecheck # tsc --noEmit
npm run lint # eslint
npm run format # prettier --write
npm test # vitest (unit + in-memory + built-subprocess smoke)
npm run build:exe # Windows: Node SEA single executable (postject via npx)
npm run build:installer # Windows: Inno Setup installer (needs iscc on PATH)Layout: src/auth (Microsoft OAuth + encrypted token cache), src/graph (Graph client + mail /
calendar / user modules), src/tools (zod schemas + thin handlers), src/setup (client auto-config
the
setup/unsetupcommands),src/util(time, logging, errors, html),src/mcp.ts+src/index.ts(server assembly + stdio entry).
Requirements & design
The authoritative specifications live in docs/:
docs/personal-outlook-mcp-connector-requirements.md— the main build spec (tools, Graph, security, timezone).docs/local-hosting-investigation-and-requirements.md— why/how to host locally (Mode A stdio, chosen here).docs/installer.md— the packaged Windows installer: auto-config engine, one-timeregister-app, and the SEA/Inno build.
License
MIT © 2026 Tony Goodhew
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
- Flicense-qualityDmaintenanceConnects Claude with Microsoft Outlook through the Graph API, providing comprehensive email, calendar, folder management, and rules creation capabilities.19
- Alicense-qualityCmaintenanceConnects Claude to Microsoft Outlook through the Microsoft Graph API, enabling email management (list, search, read, send) and calendar operations (list, create, accept, decline, delete events) via OAuth 2.0 authentication.1MIT
- Flicense-qualityCmaintenanceProvides Claude Desktop and Claude Code with access to Microsoft 365 email and calendar services via the Microsoft Graph API. It enables users to manage emails, search folders, schedule calendar events, and check availability through natural language commands.
- Alicense-qualityBmaintenanceConnects Claude with Microsoft 365 services such as Email, Calendar, Teams, OneDrive, and more through the Microsoft Graph API.7116MIT
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.
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/TGoodhew/Claude-Hotmail-Connector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server