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

@frustrated/ms-graph-mcp

v0.1.12

Published

A JSR-based TypeScript MCP package for personal Microsoft Graph access via CLI

Readme

A TypeScript MCP (Model Context Protocol) package for personal Microsoft Graph access via CLI. This package enables AI agents to interact with personal Microsoft Graph APIs (Outlook, Calendar, etc.) through a local CLI interface.

Overview

Features

  • Local-First: Prioritizes local execution and user data control.
  • Multi-Tenant Support: Works with both personal Microsoft accounts and enterprise tenants.
  • Secure Authentication: Implements OAuth 2.0 Authorization Code Flow with PKCE.
  • Secure Token Storage: Stores the MSAL token cache at ~/.config/ms-graph-mcp/msal_cache.json with restricted file permissions (0600).
  • User Control: Provides CLI commands for permission management and revocation.
  • MCP Standard: Adheres to the Model Context Protocol for broad agent compatibility.
  • OneDrive Support: Lists, inspects, searches, and creates OneDrive files and folders.

Usage with Manus Agents

This package is designed to be integrated as a connection within the Manus UI, allowing AI agents to directly invoke its functionalities. It communicates via stdio, sending and receiving JSON payloads.

Installation and Initialization

Before using the MCP CLI, you need to initialize it once to authenticate with your Microsoft account. This process will guide you through granting necessary permissions.

bunx --bun @frustrated/ms-graph-mcp init

This will:

  1. Start a local HTTP server to receive the OAuth callback.
  2. Print an authentication URL — open it in your browser to sign in.
  3. Grant consent for the requested scopes.
  4. Save the MSAL token cache to ~/.config/ms-graph-mcp/msal_cache.json.

Running the MCP Server

Once initialized, Manus agents will typically run the MCP server to interact with Microsoft Graph. The server listens for JSON requests on stdin and outputs JSON responses to stdout.

bunx --bun @frustrated/ms-graph-mcp run

Top-Level Tools

The Microsoft Graph MCP CLI exposes the following tools:

  • mail_list_messages: Manage email communications (e.g., list messages).
  • calendar_create_event: Organize calendar events (e.g., create events).
  • onedrive_*: Work with OneDrive files and folders.

For detailed information on specific tools and their functionalities, refer to the Tools Documentation.

Managing Permissions

To view the currently configured Client ID, Tenant ID, and enabled/disabled tools:

bunx --bun @frustrated/ms-graph-mcp permissions

Revoking Access

To revoke authentication and clear all stored tokens:

bunx --bun @frustrated/ms-graph-mcp revoke

Documentation

Security Considerations

  • The MSAL token cache is stored at ~/.config/ms-graph-mcp/msal_cache.json with 0600 permissions (owner read/write only).
  • All communication with Microsoft Graph is over HTTPS.
  • Input validation is performed on all incoming MCP requests.
  • Output from Microsoft Graph is sanitized before being passed to AI agents.

License

MIT

Contributing

Refer to the CONTRIBUTING.md guide for details on how to contribute to this project.