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

@leonardocrdso/office365-mcp-server

v1.1.2

Published

MCP server for Microsoft 365 — Outlook, Calendar, OneDrive, SharePoint & Teams via Graph API

Readme

@leonardocrdso/office365-mcp-server

An MCP (Model Context Protocol) server for Microsoft 365 integration. Interact with Outlook, Calendar, OneDrive, SharePoint and Teams via Microsoft Graph API.

Installation

Using npx (recommended)

AZURE_CLIENT_ID=your-client-id npx @leonardocrdso/office365-mcp-server

Adding to Claude Code

claude mcp add office365-mcp-server -e AZURE_CLIENT_ID=your-client-id -- npx @leonardocrdso/office365-mcp-server

Manual configuration

Add to your MCP client settings:

{
  "mcpServers": {
    "office365-mcp-server": {
      "command": "npx",
      "args": ["@leonardocrdso/office365-mcp-server"],
      "env": {
        "AZURE_CLIENT_ID": "your-client-id",
        "AZURE_TENANT_ID": "common"
      }
    }
  }
}

Azure AD Setup

  1. Go to Azure Portal > Microsoft Entra ID > App registrations
  2. Click New registration:
    • Name: Office 365 MCP Server
    • Supported account types: Accounts in any organizational directory (multi-tenant)
    • Redirect URI: leave empty
  3. In Authentication: set Allow public client flows to Yes
  4. In API permissions > Add permissions > Microsoft Graph > Delegated permissions, add:
    • User.Read
    • Mail.Read, Mail.Send, Mail.ReadWrite
    • Calendars.Read, Calendars.ReadWrite
    • Files.Read.All, Files.ReadWrite.All
    • Sites.Read.All, Sites.ReadWrite.All
    • Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Send
    • Chat.Read, Chat.ReadWrite
  5. Copy the Application (client) ID and use as AZURE_CLIENT_ID

Tools

Auth

| Tool | Description | |------|-------------| | login | Start Device Code Flow authentication — returns a code and URL | | auth-status | Check authentication status and show logged-in user info | | logout | Sign out and remove cached tokens |

Mail

| Tool | Description | |------|-------------| | list-emails | List emails from Outlook (inbox or specific folder) | | search-emails | Search emails by KQL query | | read-email | Read full email content by ID | | send-email | Send a new email | | reply-email | Reply to an existing email | | list-mail-folders | List email folders |

Calendar

| Tool | Description | |------|-------------| | list-events | List calendar events in a date range | | create-event | Create a new event or meeting | | update-event | Update an existing event | | delete-event | Delete an event | | find-free-slots | Check availability for meeting attendees |

OneDrive

| Tool | Description | |------|-------------| | list-drive-files | List files and folders | | read-file-content | Read text file content | | upload-file | Upload a file (up to 4MB text) | | search-files | Search files by text | | share-file | Create a sharing link |

SharePoint

| Tool | Description | |------|-------------| | list-sites | List SharePoint sites | | get-site | Get site details | | list-document-libraries | List document libraries | | list-library-items | List library items | | search-sharepoint | Search SharePoint content |

Teams

| Tool | Description | |------|-------------| | list-teams | List joined teams | | list-channels | List team channels | | list-channel-messages | List channel messages | | send-channel-message | Send a channel message | | list-chats | List direct chats | | send-chat-message | Send a chat message |

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | AZURE_CLIENT_ID | Yes | — | App registration client ID | | AZURE_TENANT_ID | No | common | Tenant ID or common for multi-tenant |

Development

# Install dependencies
bun install

# Run in development mode
bun run dev

# Build
bun run build

License

MIT