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

@seangsisg/onenote-mcp

v1.0.2

Published

Modern MCP server for Microsoft OneNote with device-code authentication

Readme

OneNote MCP Server

A stdio Model Context Protocol server for Microsoft OneNote. It uses Microsoft Graph delegated permissions and Microsoft device-code authentication.

Requirements

  • Node.js 20 or newer
  • A Microsoft account with OneNote access
  • An MCP client such as Codex

Install

git clone https://github.com/seanGSISG/onenote-mcp.git
cd onenote-mcp
npm install
npm test

The MCP SDK is installed from npm. A separate SDK checkout and build are no longer required.

Codex configuration

Add this to ~/.codex/config.toml, replacing the path with the absolute path to onenote-mcp.mjs:

[mcp_servers.onenote]
type = "stdio"
command = "node"
args = ["C:/absolute/path/to/onenote-mcp.mjs"]
enabled = true
startup_timeout_sec = 30

Restart Codex after changing MCP configuration.

Authentication

  1. Call authenticationStatus.
  2. If unauthenticated, call authenticate.
  3. Open the returned Microsoft device-login URL and enter the returned code. Use force: true to replace a stale or unwanted login.
  4. Call authenticationStatus again to confirm completion.

Authentication starts in the background, so the authenticate tool returns the device code immediately. The delegated access token is stored at ~/.onenote-mcp/access-token.json. Set ONENOTE_TOKEN_PATH to override that location, or supply GRAPH_ACCESS_TOKEN in the server environment. ONENOTE_CLIENT_ID and ONENOTE_TENANT_ID override the default public client and common tenant.

The server requests the delegated Notes.ReadWrite and User.Read scopes.

Tools

| Tool | Purpose | | --- | --- | | authenticationStatus | Check authentication state and expiration | | authenticate | Start device-code authentication | | listNotebooks | List up to maxResults notebooks | | getNotebook | Get one notebook by exact ID | | listSections | List up to maxResults sections, optionally in a notebook | | listPages | List up to maxResults pages, optionally in a section | | getPage | Get page metadata and optionally its HTML | | createPage | Create a titled XHTML page in an exact section | | searchPages | Search page titles |

All resource-specific operations use explicit IDs. The server never silently chooses the first notebook, section, or page.

Development

npm run check
npm test
npm audit

The test suite covers token migration and expiration, asynchronous device-code flow, Graph request construction and errors, XHTML title escaping, and a real MCP stdio handshake.