@Injaan.Dev/Ms365 Email Cli
FreeNot checkedDeprecated MCP server wrapper for ms365-email-cli that exposes Microsoft 365 email operations (list, read, send, reply, search, etc.) as MCP tools. Use the main
About
Deprecated MCP server wrapper for ms365-email-cli that exposes Microsoft 365 email operations (list, read, send, reply, search, etc.) as MCP tools. Use the main ms365-email-cli package instead, which now includes built-in MCP server support.
README
Deprecated Notice
This project is deprecated and discontinued.
Use @injaan.dev/ms365-email-cli instead, which now includes the MCP server feature natively.
Migration target:
npm install -g @injaan.dev/ms365-email-cli
Reason for deprecation: the original @injaan.dev/ms365-email-cli project has embedded MCP support, so this wrapper package is no longer needed.
Model Context Protocol (MCP) server wrapper for ms365-email-cli.
This package exposes mailbox operations as MCP tools and executes the local ms365-email-cli command under the hood.
Prerequisites
- Node.js 18+
ms365-email-cliinstalled and available in your shellPATH- MS365 CLI config already initialized (
ms365-email-cli init)
Install
Local project install:
npm install
Global CLI install from npm:
npm install -g @injaan.dev/ms365-email-cli-mcp
Run
From source:
npm start
From global install:
ms365-email-cli-mcp
The server uses stdio transport and is intended to be launched by an MCP-compatible client.
Configure in AI agents (Claude Code, OpenAI Codex, GitHub Copilot)
This package is an MCP stdio server. Most clients only need a command that starts it.
You can use either:
- Global binary (recommended):
ms365-email-cli-mcp - Source command:
node /absolute/path/to/ms365-email-cli-mcp/index.js
Before configuring any client, verify these are available in the same environment where your AI client runs:
ms365-email-cli-mcpms365-email-cli
1) Claude Code
Add the server (stdio):
# If installed globally
claude mcp add --transport stdio ms365-email-cli -- ms365-email-cli-mcp
# Or run from source
claude mcp add --transport stdio ms365-email-cli -- node /absolute/path/to/ms365-email-cli-mcp/index.js
Useful management commands:
claude mcp list
claude mcp get ms365-email-cli
If you prefer shared project config, Claude Code can also use a project .mcp.json:
{
"mcpServers": {
"ms365-email-cli": {
"type": "stdio",
"command": "ms365-email-cli-mcp"
}
}
}
2) OpenAI Codex (CLI / extension)
Option A - add via CLI:
# If installed globally
codex mcp add ms365-email-cli -- ms365-email-cli-mcp
# Or run from source
codex mcp add ms365-email-cli -- node /absolute/path/to/ms365-email-cli-mcp/index.js
Option B - add in ~/.codex/config.toml (or project .codex/config.toml):
[mcp_servers."ms365-email-cli"]
command = "ms365-email-cli-mcp"
# Alternative source-based form:
# [mcp_servers."ms365-email-cli"]
# command = "node"
# args = ["/absolute/path/to/ms365-email-cli-mcp/index.js"]
Check active servers:
codex mcp --help
3) GitHub Copilot in VS Code
Create .vscode/mcp.json in your workspace (or use MCP: Open User Configuration):
{
"servers": {
"ms365-email-cli": {
"type": "stdio",
"command": "ms365-email-cli-mcp"
}
}
}
Source-based alternative:
{
"servers": {
"ms365-email-cli": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/ms365-email-cli-mcp/index.js"]
}
}
}
Then in VS Code:
- Run MCP: List Servers from Command Palette.
- Start/trust
ms365-email-cli. - Open Chat and use the tools.
Quick verification prompt (any client)
Try asking your agent:
- "List my last 5 emails"
- "Show unread emails"
If tools do not appear, confirm your client process can resolve both ms365-email-cli-mcp and ms365-email-cli in PATH.
Available MCP tools
list_emailslist_unread_emailsread_emailthreadmark_readsearch_emailssend_email(supportsto,cc,subject,body,html,attachments)replyreply_allattachment
Notes
send_email.ccsupports either:- a single string (
"[email protected]") - comma-separated string (
"[email protected],[email protected]") - array of strings (
["[email protected]", "[email protected]"])
- a single string (
- Each CC value is forwarded to the CLI as repeatable
-cflags. - Errors from the CLI are returned to MCP as tool errors.
Example MCP tool call shape (send_email)
{
"name": "send_email",
"arguments": {
"to": "[email protected]",
"cc": ["[email protected]", "[email protected]"],
"subject": "Hello",
"body": "Email body",
"html": false,
"attachments": ["./report.pdf"]
}
}
Publish Checklist
Authenticate with npm:
npm loginVerify the package contents:
npm pack --dry-runPublish:
npm publishFor updates, bump version first:
npm version patch npm publish
npm Deprecation (maintainers)
Mark published versions as deprecated on npm so users see a warning on install:
npm deprecate "@injaan.dev/ms365-email-cli-mcp@*" "Deprecated and discontinued. Use @injaan.dev/ms365-email-cli with built-in MCP server."
If needed, deprecate a specific range instead of all versions:
npm deprecate "@injaan.dev/ms365-email-cli-mcp@<=1.0.7" "Deprecated and discontinued. Use @injaan.dev/ms365-email-cli with built-in MCP server."
Install @Injaan.Dev/Ms365 Email Cli in Claude Desktop, Claude Code & Cursor
unyly install injaan-dev-ms365-email-cli-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add injaan-dev-ms365-email-cli-mcp -- npx -y @injaan.dev/ms365-email-cli-mcpFAQ
Is @Injaan.Dev/Ms365 Email Cli MCP free?
Yes, @Injaan.Dev/Ms365 Email Cli MCP is free — one-click install via Unyly at no cost.
Does @Injaan.Dev/Ms365 Email Cli need an API key?
No, @Injaan.Dev/Ms365 Email Cli runs without API keys or environment variables.
Is @Injaan.Dev/Ms365 Email Cli hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install @Injaan.Dev/Ms365 Email Cli in Claude Desktop, Claude Code or Cursor?
Open @Injaan.Dev/Ms365 Email Cli on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Compare @Injaan.Dev/Ms365 Email Cli with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
