Microsoft 365 Mail
CommunityMCP server by mindstone · updated · ★ 13
Microsoft 365 Outlook mail via Graph: read, search, send, reply, forward, draft, move, delete. Microsoft 365 Mail is a community project by mindstone, not verified by a company domain.
Last commit 7 days ago
No licence found, so reuse rights are unclear
Clear description, published package or server URL, original repository
Not checked yet. What we check
What you need
| Setting | Needed | What it is |
|---|---|---|
MS_Environment variable | Required | Microsoft Entra (Azure AD) application client ID |
MS_Environment variable | Required | Path to the per-user Microsoft config directory (credentials/, accounts.json) |
MS_Environment variable | Optional | Account email when running in multi-account per-instance mode (falls back to the first account in accounts.json) |
MS_Environment variable | Optional | Logical package ID surfaced in error responses Default: Microsoft365Mail |
MICROSOFT_Environment variable | Optional | Override the upstream Microsoft Graph request timeout in milliseconds (max 300000 = 5 min) Default: 60000 |
MCP_Environment variable | Optional | Workspace root where download_attachment saves files (falls back to the OS temp directory when unset) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Install Microsoft 365 Mail
Built from the published package, never by AIclaude mcp add microsoft-365-mail -e MS_CLIENT_ID=YOUR_MS_CLIENT_ID -e MS_CONFIG_DIR=YOUR_MS_CONFIG_DIR -- npx -y @mindstone/mcp-server-microsoft-mailRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"microsoft-365-mail": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-mail"
],
"env": {
"MS_CLIENT_ID": "YOUR_MS_CLIENT_ID",
"MS_CONFIG_DIR": "YOUR_MS_CONFIG_DIR"
}
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"microsoft-365-mail": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-mail"
],
"env": {
"MS_CLIENT_ID": "YOUR_MS_CLIENT_ID",
"MS_CONFIG_DIR": "YOUR_MS_CONFIG_DIR"
}
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"microsoft-365-mail": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-mail"
],
"env": {
"MS_CLIENT_ID": "YOUR_MS_CLIENT_ID",
"MS_CONFIG_DIR": "YOUR_MS_CONFIG_DIR"
}
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add microsoft-365-mail --env MS_CLIENT_ID=YOUR_MS_CLIENT_ID --env MS_CONFIG_DIR=YOUR_MS_CONFIG_DIR -- npx -y @mindstone/mcp-server-microsoft-mail{
"mcpServers": {
"microsoft-365-mail": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-mail"
],
"env": {
"MS_CLIENT_ID": "YOUR_MS_CLIENT_ID",
"MS_CONFIG_DIR": "YOUR_MS_CONFIG_DIR"
}
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add microsoft-365-mail npx -y @mindstone/mcp-server-microsoft-mailGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the microsoft-365-mail block.
Weekly newsletter
Like Microsoft 365 Mail? Get the best new MCP servers every week
The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.
Alternatives to Microsoft 365 Mail
All alternatives →Connect AI agents to Exa for web search, content fetching, and multi-step research.
Search and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server.
Visit https://brave.com/search/api/ for a free API key. Search the web, local businesses, images,…
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
Search, read, annotate, and add to your Zotero research library, local or web.
Digital asset manager - upload, organize, search, and generate on-brand images and videos
Microsoft 365 Mail: common questions
How do I install Microsoft 365 Mail?
In Claude Code run claude mcp add microsoft-365-mail -e MS_CLIENT_ID=YOUR_MS_CLIENT_ID -e MS_CONFIG_DIR=YOUR_MS_CONFIG_DIR -- npx -y @mindstone/mcp-server-microsoft-mail. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Microsoft 365 Mail the official server?
Microsoft 365 Mail is a community project by mindstone, not verified by a company domain.
Is Microsoft 365 Mail free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Microsoft 365 Mail safe to use?
It scores 58 of 100. Grades: maintenance A, licence F, quality C. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to Microsoft 365 Mail?
Similar MCP servers: exa, Agent Skills Search Server, brave, Atlassian Rovo MCP Server.
Does Microsoft 365 Mail work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
