New:Socket for Asana Is Now Available.Learn more
Get Started

@insightsentry/ms-mcp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@insightsentry/ms-mcp

MCP server for Microsoft Outlook, To Do, and Calendar via Graph API - provides AI-accessible tools for email, task management, and calendar events

npmnpm
Version
2.0.1
Version published
Weekly downloads
6
-40%
Maintainers
1
Weekly downloads
 
Created
Source

@insightsentry/ms-mcp

MCP (Model Context Protocol) server for Microsoft Outlook, To Do, and Calendar via the Microsoft Graph API.

Gives AI assistants direct access to your Outlook mailbox — read, search, send, draft, and reply to emails, manage To Do tasks, and manage calendar events. Uses OAuth2 client credentials flow so no interactive login is needed.

Setup

Prerequisites

You need a Microsoft Entra (Azure AD) app registration with the following application permissions:

  • Mail.ReadWrite
  • Mail.Send
  • Tasks.ReadWrite
  • Calendars.ReadWrite

Gather these values from your app registration:

VariableDescription
GRAPH_API_CLIENT_IDApplication (client) ID
GRAPH_API_CLIENT_SECRETClient secret value
GRAPH_API_TENANT_IDDirectory (tenant) ID
GRAPH_API_USER_IDObject ID or UPN of the mailbox user

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "microsoft": {
      "command": "npx",
      "args": ["@insightsentry/ms-mcp"],
      "env": {
        "GRAPH_API_CLIENT_ID": "your-client-id",
        "GRAPH_API_CLIENT_SECRET": "your-client-secret",
        "GRAPH_API_TENANT_ID": "your-tenant-id",
        "GRAPH_API_USER_ID": "your-user-id"
      }
    }
  }
}

Claude Code

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "microsoft": {
      "command": "npx",
      "args": ["@insightsentry/ms-mcp"],
      "env": {
        "GRAPH_API_CLIENT_ID": "your-client-id",
        "GRAPH_API_CLIENT_SECRET": "your-client-secret",
        "GRAPH_API_TENANT_ID": "your-tenant-id",
        "GRAPH_API_USER_ID": "your-user-id"
      }
    }
  }
}

Available Tools (18)

Email

ToolDescription
search_emailsSearch emails across all folders using KQL syntax
list_emailsList emails with pagination, filtering, and search
read_emailRead full email content by ID
create_draftCreate a draft email
send_emailSend a new email directly
reply_emailReply or reply-all to an email

To Do

ToolDescription
search_tasksSearch tasks across all lists by keyword
list_task_listsList all To Do task lists
list_tasksList tasks in a task list with filtering
create_taskCreate a task with title, body, due date, importance
update_taskUpdate task title, body, due date, importance, or status
delete_taskDelete a task

Calendar

ToolDescription
search_eventsSearch calendar events using KQL syntax
list_eventsList upcoming calendar events in a time range
get_eventGet full details of a calendar event
create_eventCreate an event with attendees, location, Teams meeting
update_eventUpdate event details
delete_eventDelete a calendar event

Token Caching

Access tokens are cached to ~/.ms-mcp/token.json and reused across invocations until they expire. No interactive login is required.

Development

npm install
npm run build     # Compile TypeScript
npm run dev       # Run with tsx (no build needed)

License

MIT

Keywords

mcp

FAQs

Package last updated on 24 Mar 2026

Related posts