Outlook MCP

Outlook MCP

A local stdio MCP server that enables reading, sending, and searching emails, as well as listing calendar events via Microsoft Graph API, using device-code authentication.

Category
Visit Server

README

Outlook MCP

Blank repo no more — this is a local stdio MCP server for Microsoft Outlook via Microsoft Graph.

What you need on your PC

  1. Node.js 18+ (node -v)
  2. Your Azure app Application (client) ID and Directory (tenant) ID
  3. Azure app settings:
    • AuthenticationAllow public client flows = Yes (required for device-code login)
    • API permissions → Microsoft Graph Delegated:
      • User.Read
      • Mail.ReadWrite
      • Mail.Send
      • Calendars.Read
      • offline_access (usually included automatically)
    • Grant admin consent if your tenant requires it

A client secret is not required for this server (device-code / public client). If you previously pasted a secret in chat, rotate/delete it in Azure anyway.

Install (on your Windows machine)

From this folder (MCPProject / this repo):

npm install

Optional one-time login test in a terminal:

$env:MS_CLIENT_ID="your-client-id"
$env:MS_TENANT_ID="your-tenant-id"
npm run login

Open the URL printed in the terminal, enter the code, sign in with your Microsoft account.

Cursor mcp.json config

Use this (Desktop). Point at the folder (uses package.json "main") or the entry file:

{
  "mcpServers": {
    "outlook-mcp": {
      "command": "node",
      "args": ["C:\\Users\\lance\\OneDrive\\MCPProject\\src\\index.js"],
      "env": {
        "MS_CLIENT_ID": "your-client-id",
        "MS_TENANT_ID": "your-tenant-id"
      }
    }
  }
}

Keep your OrCAD / MATLAB entries as they are. Do not put client secrets in chat or commit them.

After saving:

  1. Cursor → Settings → Tools & MCP
  2. Confirm outlook-mcp is connected (green)
  3. Ask the agent to run outlook_login (or call any mail tool — first use triggers device code on stderr)
  4. Complete the browser sign-in when prompted

Tokens are cached at %USERPROFILE%\.outlook-mcp\msal-cache.json.

Tools

Tool Purpose
outlook_login Device-code sign-in
outlook_auth_status Check sign-in
outlook_sign_out Clear cached tokens
outlook_get_profile Who am I
outlook_list_emails List folder messages
outlook_get_email Read one message
outlook_search_emails Search mailbox
outlook_send_email Send mail
outlook_create_draft Create draft
outlook_list_calendar Upcoming events

Cloud Agents note

This stdio server runs on your Windows PC. Cursor Cloud Agents will not see it unless you also add a separate Cloud/HTTP MCP. For Desktop Agent chat on your machine, this config is enough.

Troubleshooting

Symptom Fix
Missing MS_CLIENT_ID Add it under env in mcp.json
Device code never appears Check MCP server logs in Cursor; run npm run login in a terminal
AADSTS7000218 / public client errors Enable Allow public client flows on the app
AADSTS65001 / consent Add Graph delegated permissions; admin consent if needed
Wrong account type Set tenant to common or consumers for personal Microsoft accounts

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured