npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@disocodes/server-email-beta

v1.0.9

Published

MCP server for Microsoft Outlook/Microsoft 365 email and calendar integration (Beta)

Readme

MCP Email Server (Beta)

A Model Context Protocol (MCP) server for Microsoft 365/Outlook email and calendar integration. This beta version enables Claude to read emails, draft responses, search for attachments, and manage calendar events through Microsoft Graph API.

Beta Status

This is a beta release. While functional, it may have:

  • Incomplete features
  • Breaking changes in future updates
  • Need for additional error handling
  • Areas for performance optimization

Please report any issues or suggestions through the repository's issue tracker.

Features

  • Read emails from any Outlook folder
  • Draft email responses
  • Search email content
  • Manage calendar events and meetings
  • Integrate with filesystem MCP for attachments

Installation

For Users

The server is automatically managed by Claude Desktop through the configuration. You don't need to run it manually.

# The package will be installed and run automatically by Claude Desktop
# You only need to set up the configuration directory and credentials

For Development

# Clone the repository
git clone [repository-url]
cd email-server

# Install dependencies
npm install

# Build the project
npm run build

# Run locally
node build/index.js

Setup

  1. Register an Azure AD Application:

    • Go to Azure Portal
    • Navigate to Azure Active Directory > App registrations
    • Create a new registration
    • Add Microsoft Graph API permissions:
      • Mail.ReadWrite
      • Mail.Send
      • Calendars.ReadWrite
      • User.Read
  2. Get Credentials:

    • Copy Application (client) ID
    • Generate a new client secret
    • Copy Directory (tenant) ID
  3. Create Configuration Directory and .env File:

# Create a directory in your home folder
mkdir ~/email-config  # Mac/Linux
mkdir %USERPROFILE%\email-config  # Windows

# Navigate to the directory
cd ~/email-config  # Mac/Linux
cd %USERPROFILE%\email-config  # Windows

# Create .env file
touch .env  # Mac/Linux
copy nul .env  # Windows

# Add your credentials to .env:
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
TENANT_ID=your_tenant_id
  1. Generate Access Token:
# Make sure you're in the email-config directory
cd ~/email-config  # Mac/Linux
cd %USERPROFILE%\email-config  # Windows

# Generate token (this will use credentials from your .env file)
npx @disocodes/server-email-beta/get-token.js

# The token will be displayed in the terminal - copy it for the next step
  1. Configure Claude Desktop:
# Configuration file location:
# Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%\Claude\claude_desktop_config.json
# Linux: ~/.config/Claude/claude_desktop_config.json

# Add this to your configuration:
{
  "mcpServers": {
    "email": {
      "command": "npx",
      "args": ["-y", "@disocodes/server-email-beta"],
      "env": {
        "MS_ACCESS_TOKEN": "token_from_get_token",
        "MS_EMAIL": "[email protected]"
      }
    }
  }
}

Token Management

The access token expires periodically (usually after 1 hour). When it expires:

  1. Generate a new token:
# Navigate to your config directory
cd ~/email-config  # Mac/Linux
cd %USERPROFILE%\email-config  # Windows

# Generate new token
npx @disocodes/server-email-beta/get-token.js

# Copy the new token displayed in the terminal
  1. Update the MS_ACCESS_TOKEN in your Claude Desktop configuration
  2. Restart Claude Desktop

Usage

Example commands in Claude:

  • "Show my recent emails"
  • "Search emails about project updates"
  • "Draft a response to the latest email"
  • "Schedule a meeting for tomorrow"
  • "Find and attach the budget report"

Security

  • Never share your client secret or access tokens
  • Store credentials securely in .env file
  • Regularly rotate client secrets
  • Keep access tokens private
  • Monitor Azure AD application activity

Beta Feedback

We welcome your feedback on this beta release! Please:

  • Report bugs through GitHub issues
  • Suggest features or improvements
  • Share your experience using the server
  • Help us improve documentation

License

MIT

Contributing

Contributions welcome! Please read our Contributing Guide for details.